forked from pool/python-rope
- Spec file cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
961b017b37
commit
081bc646e6
@@ -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
|
||||
|
||||
|
@@ -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}
|
||||
Name: python-rope
|
||||
Version: 0.9.3
|
||||
Release: 0
|
||||
License: GNU GPL
|
||||
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/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
||||
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
|
||||
%py_requires
|
||||
%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
|
||||
|
Reference in New Issue
Block a user