14
0
Sascha Peilicke
2012-06-27 08:56:26 +00:00
committed by Git OBS Bridge
parent ef1421c703
commit bf676dbb48
2 changed files with 12 additions and 17 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 27 08:55:31 UTC 2012 - saschpe@suse.de
- Less macros
-------------------------------------------------------------------
Thu Feb 2 13:41:07 CET 2012 - iartarisi@suse.cz

View File

@@ -16,28 +16,23 @@
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_name lockfile
Name: python-%{mod_name}
Name: python-lockfile
Version: 0.9.1
Release: 0
Url: http://code.google.com/p/pylockfile/
Summary: Platform-independent file locking module
License: MIT
Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2
Source: lockfile-%{version}.tar.bz2
Patch0: %{name}-empty_ident.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%if 0%{?suse_version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%py_requires
%if 0%{?suse_version} > 1110
%else
BuildArch: noarch
%endif
%endif
%description
The lockfile package exports a LockFile class which provides a simple API for
@@ -50,25 +45,20 @@ provided, more as a demonstration of the possibilities it provides than as
production-quality code.
%prep
%setup -q -n %{mod_name}-%{version}
%setup -q -n lockfile-%{version}
# current thread has ident = None, which causes a TypeError
# http://code.google.com/p/pylockfile/issues/detail?id=8
%patch0 -p1 -b .empty_ident
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README RELEASE-NOTES
%python_sitelib/%{mod_name}*
%python_sitelib/lockfile*
%changelog