diff --git a/python-rope.changes b/python-rope.changes index 124edbe..f443315 100644 --- a/python-rope.changes +++ b/python-rope.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 31 10:37:36 UTC 2012 - saschpe@suse.de + +- Spec file cleanup + ------------------------------------------------------------------- Mon Dec 5 13:14:57 UTC 2011 - toddrme2178@gmail.com diff --git a/python-rope.spec b/python-rope.spec index 6420b3a..dcfe1b6 100644 --- a/python-rope.spec +++ b/python-rope.spec @@ -1,7 +1,7 @@ # # spec file for package python-rope # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,41 +15,38 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define mod_name rope -Name: python-%{mod_name} -Version: 0.9.3 -Release: 0 -License: GNU GPL -Summary: A python refactoring library -Url: http://rope.sf.net/ -Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch -%py_requires +Name: python-rope +Version: 0.9.3 +Release: 0 +License: GPL-2.0+ +Summary: A python refactoring library +Url: http://rope.sf.net/ +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/r/rope/rope-%{version}.tar.gz +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%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 %description Rope is a python refactoring library. %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n rope-%{version} %build -export CFLAGS="%{optflags}" python2 setup.py build %install -python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES} +python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} rm -rf %{buildroot}/%{py_sitedir}/python-rope/ropetest/ -%clean -rm -rf %{buildroot} - -%files %{?suse_version: -f INSTALLED_FILES} +%files %defattr(-,root,root,-) %doc COPYING README.txt docs/ -%python_sitelib/%{mod_name}* -%python_sitelib/*.egg-info* +%python_sitelib/ %changelog