%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: python-zc-lockfile Version: 1.0.0 Release: 8%{?dist} Summary: Basic Inter-Process Locks Group: Development/Languages License: ZPLv2.1 URL: http://pypi.python.org/pypi/zc.lockfile/ Source0: http://pypi.python.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-zope-testing %description The zc.lockfile package provides a basic portable implementation of interprocess locks using lock files. The purpose if not specifically to lock files, but to simply provide locks with an implementation based on file-locking primitives. Of course, these locks could be used to mediate access to other files. For example, the ZODB file storage implementation uses file locks to mediate access to file-storage database files. The database files and lock file files are separate files. %prep %setup -q -n zc.lockfile-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{python_sitelib}/zc/lockfile/*.txt %check %{__python} setup.py test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc src/zc/lockfile/*.txt %{python_sitelib}/zc.lockfile-*.egg-info %{python_sitelib}/zc.lockfile-*-nspkg.pth %{python_sitelib}/zc/lockfile/ %dir %{python_sitelib}/zc/ %changelog * Sat Jul 21 2012 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Aug 30 2010 Robin Lee - 1.0.0-5 - Remove python-zope-filesystem from requirements - Own %%{python_sitelib}/zc/ * Thu Jul 22 2010 David Malcolm - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jun 17 2010 Robin Lee - 1.0.0-3 - Don't own %%{python_sitelib}/zc/, which is provided by python-zope-filesystem - Add python-zope-filesystem as requirement - Include more documents * Sun Jul 5 2009 Conrad Meyer - 1.0.0-2 - Add missing BR on python-setuptools. - Enable testing stuff as python-zope-testing is in devel. * Mon Dec 15 2008 Conrad Meyer - 1.0.0-1 - Initial package.