diff --git a/python-versiontools.changes b/python-versiontools.changes index 18a79f7..916ee5a 100644 --- a/python-versiontools.changes +++ b/python-versiontools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 1 13:24:11 UTC 2012 - saschpe@suse.de + +- Simplified macro usage + ------------------------------------------------------------------- Tue Jan 24 21:37:26 UTC 2012 - jfunk@funktronics.ca diff --git a/python-versiontools.spec b/python-versiontools.spec index 74ecebd..d4f117c 100644 --- a/python-versiontools.spec +++ b/python-versiontools.spec @@ -15,8 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: python-versiontools Version: 1.8.3 Release: 0 @@ -29,13 +27,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute Requires: python-distribute -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +%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()")} +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Smart replacement for plain tuple used in __version__.