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 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()")} Name: python-lockfile
%{!?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}
Version: 0.9.1 Version: 0.9.1
Release: 0 Release: 0
Url: http://code.google.com/p/pylockfile/ Url: http://code.google.com/p/pylockfile/
Summary: Platform-independent file locking module Summary: Platform-independent file locking module
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2 Source: lockfile-%{version}.tar.bz2
Patch0: %{name}-empty_ident.patch Patch0: %{name}-empty_ident.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel 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 %py_requires
%if 0%{?suse_version} > 1110 %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%description %description
The lockfile package exports a LockFile class which provides a simple API for 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. production-quality code.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n lockfile-%{version}
# current thread has ident = None, which causes a TypeError # current thread has ident = None, which causes a TypeError
# http://code.google.com/p/pylockfile/issues/detail?id=8 # http://code.google.com/p/pylockfile/issues/detail?id=8
%patch0 -p1 -b .empty_ident %patch0 -p1 -b .empty_ident
%build %build
export CFLAGS="%{optflags}"
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README RELEASE-NOTES %doc README RELEASE-NOTES
%python_sitelib/%{mod_name}* %python_sitelib/lockfile*
%changelog %changelog