diff --git a/python-zc-lockfile.spec b/python-zc-lockfile.spec index 47beb7d..153d821 100644 --- a/python-zc-lockfile.spec +++ b/python-zc-lockfile.spec @@ -1,8 +1,10 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%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: 2%{?dist} +Release: 3%{?dist} Summary: Basic Inter-Process Locks Group: Development/Languages License: ZPLv2.1 @@ -14,6 +16,7 @@ BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-zope-testing +Requires: python-zope-filesystem %description @@ -37,6 +40,7 @@ database files. The database files and lock file files are separate files. %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 @@ -49,11 +53,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc README.txt -%{python_sitelib}/* +%doc src/zc/lockfile/*.txt +%{python_sitelib}/zc.lockfile-*.egg-info +%{python_sitelib}/zc.lockfile-*-nspkg.pth +%{python_sitelib}/zc/lockfile/ %changelog +* 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.