14
0
forked from pool/python-rope
Sascha Peilicke
2012-01-31 10:37:34 +00:00
committed by Git OBS Bridge
parent 961b017b37
commit 081bc646e6
2 changed files with 25 additions and 23 deletions

View File

@@ -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 Mon Dec 5 13:14:57 UTC 2011 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-rope # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,41 +15,38 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define mod_name rope Name: python-rope
Name: python-%{mod_name}
Version: 0.9.3 Version: 0.9.3
Release: 0 Release: 0
License: GNU GPL License: GPL-2.0+
Summary: A python refactoring library Summary: A python refactoring library
Url: http://rope.sf.net/ Url: http://rope.sf.net/
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz Source: http://pypi.python.org/packages/source/r/rope/rope-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 BuildArch: noarch
%py_requires %endif
%description %description
Rope is a python refactoring library. Rope is a python refactoring library.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n rope-%{version}
%build %build
export CFLAGS="%{optflags}"
python2 setup.py build python2 setup.py build
%install %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/ rm -rf %{buildroot}/%{py_sitedir}/python-rope/ropetest/
%clean %files
rm -rf %{buildroot}
%files %{?suse_version: -f INSTALLED_FILES}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING README.txt docs/ %doc COPYING README.txt docs/
%python_sitelib/%{mod_name}* %python_sitelib/
%python_sitelib/*.egg-info*
%changelog %changelog