Accepting request 122287 from devel:languages:python
Spec file cleanups (forwarded request 122286 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/122287 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-configobj?expand=0&rev=8
This commit is contained in:
commit
3d127cfe14
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 25 08:21:00 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
- Spec file cleanups
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 5 19:40:33 UTC 2012 - dimstar@opensuse.org
|
||||
|
||||
|
@ -15,7 +15,8 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: python-configobj
|
||||
%define modname configobj
|
||||
Name: python-%{modname}
|
||||
Version: 4.7.2
|
||||
Release: 0
|
||||
# FIXME: Change python-cofigobj-docs Obsoletes to < with next version update. Obsoletes introduced with version 4.7.2.
|
||||
@ -23,16 +24,17 @@ Url: http://www.voidspace.org.uk/python/configobj.html
|
||||
Summary: Config file reading, writing and validation
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz
|
||||
Source: http://pypi.python.org/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
# There are no real docs!
|
||||
Provides: python-configobj-docs = %{version}
|
||||
Obsoletes: python-configobj-docs <= %{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()")}
|
||||
Provides: python-%{modname}-docs = %{version}
|
||||
Obsoletes: python-%{modname}-docs <= %{version}
|
||||
%if 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
|
||||
@ -55,7 +57,7 @@ It has lots of other features though:
|
||||
* Powerful ``unrepr`` mode for storing/retrieving Python data-types
|
||||
|
||||
%prep
|
||||
%setup -q -n configobj-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
@ -65,6 +67,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/%{modname}.py*
|
||||
%{python_sitelib}/validate.py*
|
||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user