packages: python-daemon/python-daemon.spec (NEW) - new, from fedora

glen glen at pld-linux.org
Tue Dec 13 23:52:25 CET 2011


Author: glen                         Date: Tue Dec 13 22:52:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, from fedora

---- Files affected:
packages/python-daemon:
   python-daemon.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-daemon/python-daemon.spec
diff -u /dev/null packages/python-daemon/python-daemon.spec:1.1
--- /dev/null	Tue Dec 13 23:52:25 2011
+++ packages/python-daemon/python-daemon.spec	Tue Dec 13 23:52:20 2011
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+# Disabled tests as pidlockfile is not anymore in the lastest python-lockfile
+
+%define 	module	daemon
+Summary:	Library to implement a well-behaved Unix daemon process
+Name:		python-%{module}
+Version:	1.6
+Release:	1
+License:	Python
+Group:		Development/Languages
+URL:		http://pypi.python.org/pypi/python-daemon/
+Source0:	http://pypi.python.org/packages/source/p/python-daemon/%{name}-%{version}.tar.gz
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	sed >= 4.0
+%if %{with tests}
+BuildRequires:	python-lockfile
+BuildRequires:	python-minimock
+%endif
+Requires:	python-lockfile
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library implements the well-behaved daemon specification of PEP
+3143, "Standard daemon process library".
+
+%prep
+%setup -q
+
+%{__sed} -i -e '/^#!\//, 1d' daemon/version/version_info.py
+
+%build
+%{__python} setup.py build
+
+# Test suite requires minimock and lockfile
+%if %{with tests}
+PYTHONPATH=$(pwd) nosetests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%{__rm} -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.PSF-2
+%dir %{py_sitescriptdir}/daemon
+%dir %{py_sitescriptdir}/daemon/version
+%{py_sitescriptdir}/daemon/*.py[co]
+%{py_sitescriptdir}/daemon/version/*.py[co]
+%{py_sitescriptdir}/python_daemon-%{version}-py%{py_ver}.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/13 22:52:20  glen
+- new, from fedora
+
================================================================


More information about the pld-cvs-commit mailing list