From bf676dbb48e75c1b24618cd8628ebb536a39edea67ffb3ebbc51909c18501ec9 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 27 Jun 2012 08:56:26 +0000 Subject: [PATCH] - Less macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lockfile?expand=0&rev=10 --- python-lockfile.changes | 5 +++++ python-lockfile.spec | 24 +++++++----------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/python-lockfile.changes b/python-lockfile.changes index 4fb5021..d12b6da 100644 --- a/python-lockfile.changes +++ b/python-lockfile.changes @@ -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 diff --git a/python-lockfile.spec b/python-lockfile.spec index 5f8a3e9..54959db 100644 --- a/python-lockfile.spec +++ b/python-lockfile.spec @@ -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