packages: python-lockfile/python-lockfile.spec (NEW)=?UTF-8?Q?=20?=- new
lisu
lisu at pld-linux.org
Tue Feb 7 14:10:41 CET 2012
Author: lisu Date: Tue Feb 7 13:10:41 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/python-lockfile:
python-lockfile.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-lockfile/python-lockfile.spec
diff -u /dev/null packages/python-lockfile/python-lockfile.spec:1.1
--- /dev/null Tue Feb 7 14:10:41 2012
+++ packages/python-lockfile/python-lockfile.spec Tue Feb 7 14:10:36 2012
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+%define module lockfile
+Summary: Exports a LockFile class which provides a simple API for locking files
+Name: python-%{module}
+Version: 0.9.1
+Release: 1
+License: MIT
+Group: Development/Languages/Python
+Source0: http://pylockfile.googlecode.com/files/%{module}-%{version}.tar.gz
+# Source0-md5: 4e4c7ea4c4301500da5e7f3b51e01cfe
+URL: http://pypi.python.org/pypi/lockfile
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The lockfile package exports a LockFile class which provides a simple
+API for locking files. Unlike the Windows msvcrt.locking function, the
+fcntl.lockf and flock functions, and the deprecated posixfile module,
+the API is identical across both Unix (including Linux and Mac) and
+Windows platforms. The lock mechanism relies on the atomic nature of
+the link (on Unix) and mkdir (on Windows) system calls. An
+implementation based on SQLite is also provided, more as a
+demonstration of the possibilities it provides than as
+production-quality code.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ACKS README RELEASE-NOTES
+%{py_sitescriptdir}/lockfile/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/lockfile-*.egg-info
+%endif
+
+%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 2012/02/07 13:10:36 lisu
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list