diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-01-02 16:25:10 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-01-02 16:25:10 +0100 |
commit | 14dd87205ecf76cd892582271353c7a09202e4cb (patch) | |
tree | b9ec537c96e70db389682ee8fcfd11be6f028fb5 | |
parent | 74a6e855136367f1de78ed7d113255ecdce39967 (diff) | |
download | firstaidkit-14dd87205ecf76cd892582271353c7a09202e4cb.tar.gz firstaidkit-14dd87205ecf76cd892582271353c7a09202e4cb.tar.xz firstaidkit-14dd87205ecf76cd892582271353c7a09202e4cb.zip |
Add the files necesary to create a package.
-rw-r--r-- | firstaidkit.spec | 51 | ||||
-rw-r--r-- | setup.py | 14 |
2 files changed, 65 insertions, 0 deletions
diff --git a/firstaidkit.spec b/firstaidkit.spec new file mode 100644 index 0000000..4c33859 --- /dev/null +++ b/firstaidkit.spec @@ -0,0 +1,51 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: firstaidkit +Version: 0.1.0 +Release: 1%{?dist} +Summary: System Rescue Tool + +Group: Applications/System +License: GPLv2 +URL: http://fedorahosted.org/firstaidkit +Source0: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: python-devel + +BuildArch: noarch + +%description +A tool that automates simple and common system recovery tasks. + + +%prep +%setup -q + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{__install} -d $RPM_BUILD_ROOT/%{_libexecdir}/firstaidkit/plugins +%{__cp} -rf plugins/* $RPM_BUILD_ROOT/%{_libexecdir}/firstaidkit/plugins + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING GPL doc/README doc/PLUGINS +# For noarch packages: sitelib +%{python_sitelib}/pyfirstaidkit +%{_bindir}/firstaidkit +%{_libexecdir}/firstaidkit/plugins/* + + +%Changelog +* Wed Jan 02 2008 Joel Granados <jgranado@redhat.com> 0.1.0-1 +- Initial spec diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..5ed1900 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from distutils.core import setup +import glob + +setup(name='firstaidkit', + version='0.1.0', + description='System Rescue Tool', + author='Joel Andres Granados', + author_email='jgranado@redhat.com', + url='http://fedorahosted.org/firstaidkit', + license='GPLv2', + packages = ['pyfirstaidkit'], + scripts = ['firstaidkit'] + ) + |