You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-zc-lockfile/python-zc-lockfile.spec

74 lines
2.2 KiB

%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
16 years ago
Name: python-zc-lockfile
Version: 1.0.0
Release: 3%{?dist}
16 years ago
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
Requires: python-zope-filesystem
16 years ago
%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
16 years ago
%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/
16 years ago
%changelog
* Thu Jun 17 2010 Robin Lee <robinlee.sysu@gmail.com> - 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
16 years ago
* Sun Jul 5 2009 Conrad Meyer <konrad@tylerc.org> - 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 <konrad@tylerc.org> - 1.0.0-1
- Initial package.