diff --git a/.cvsignore b/.cvsignore index e69de29..165eeff 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-daemon-1.4.6.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..466f9a9 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-daemon-1_4_6-1_fc11:HEAD:python-daemon-1.4.6-1.fc11.src.rpm:1246253552 diff --git a/python-daemon.spec b/python-daemon.spec new file mode 100644 index 0000000..4c96e9b --- /dev/null +++ b/python-daemon.spec @@ -0,0 +1,50 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-daemon +Version: 1.4.6 +Release: 1%{?dist} +Summary: Library to implement a well-behaved Unix daemon process + +Group: Development/Languages +License: Python +URL: http://pypi.python.org/pypi/python-daemon/ +Source0: http://pypi.python.org/packages/source/p/python-daemon/%{name}-%{version}.tar.gz +Patch0: version_info_fix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel, python-setuptools + +%description +This library implements the well-behaved daemon specification of PEP 3143, +"Standard daemon process library". + +%prep +%setup -q + +%patch0 -p1 + + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc TODO LICENSE.PSF-2 +%{python_sitelib}/* + + +%changelog +* Wed Jun 24 2009 Kushal Das 1.4.6-1 +- Initial release + diff --git a/sources b/sources index e69de29..01aa081 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f3a81fd573d3770f616515f39058e31f python-daemon-1.4.6.tar.gz diff --git a/version_info_fix.patch b/version_info_fix.patch new file mode 100644 index 0000000..d05f00a --- /dev/null +++ b/version_info_fix.patch @@ -0,0 +1,7 @@ +--- python-daemon-1.4.6.orig/daemon/version/version_info.py 2009-06-24 12:31:00.000000000 +0530 ++++ python-daemon-1.4.6/daemon/version/version_info.py 2009-06-24 12:30:52.000000000 +0530 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + """This file is automatically generated by generate_version_info + It uses the current working tree to determine the revision. + So don't edit it. :)