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.
63 lines
1.7 KiB
63 lines
1.7 KiB
16 years ago
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||
|
|
||
|
Name: python-zc-lockfile
|
||
|
Version: 1.0.0
|
||
|
Release: 2%{?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
|
||
|
|
||
|
|
||
|
%check
|
||
|
%{__python} setup.py test
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README.txt
|
||
|
%{python_sitelib}/*
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* 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.
|