Accepting request 498047 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version.
- Fix source URL.

OBS-URL: https://build.opensuse.org/request/show/498047
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-configobj?expand=0&rev=31
This commit is contained in:
Todd R 2017-05-24 17:01:39 +00:00 committed by Git OBS Bridge
parent dfabbdfa7b
commit 7673c1f522
2 changed files with 26 additions and 13 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 24 17:01:11 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
- Fix source URL.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 11 10:37:46 UTC 2014 - toddrme2178@gmail.com Thu Sep 11 10:37:46 UTC 2014 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-configobj # spec file for package python-configobj
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2017 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
@ -16,6 +16,8 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-configobj Name: python-configobj
Version: 5.0.6 Version: 5.0.6
Release: 0 Release: 0
@ -23,19 +25,20 @@ Url: https://github.com/DiffSK/configobj
Summary: Config file reading, writing and validation Summary: Config file reading, writing and validation
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz Source: http://files.pythonhosted.org/packages/source/c/configobj/configobj-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: fdupes
BuildRequires: python-six BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module six}
Requires: python-six Requires: python-six
# There are no real docs! # There are no real docs!
Provides: python-configobj-docs = %{version} %ifpython2
Obsoletes: python-configobj-docs < %{version} Obsoletes: %{oldpython}-configobj-docs < %{version}
%if 0%{?suse_version} <= 1110 Provides: %{oldpython}-configobj-docs = %{version}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%else
BuildArch: noarch
%endif %endif
BuildArch: noarch
%python_subpackages
%description %description
ConfigObj is a simple but powerful config file reader and writer: an ini ConfigObj is a simple but powerful config file reader and writer: an ini
@ -60,16 +63,20 @@ It has lots of other features though:
%setup -q -n configobj-%{version} %setup -q -n configobj-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/configobj.py* %{python_sitelib}/configobj.py*
%{python_sitelib}/validate.py* %{python_sitelib}/validate.py*
%{python_sitelib}/_version.py* %{python_sitelib}/_version.py*
%pycache_only %{python_sitelib}/__pycache__/configobj.*.py*
%pycache_only %{python_sitelib}/__pycache__/validate.*.py*
%pycache_only %{python_sitelib}/__pycache__/_version.*.py*
%{python_sitelib}/configobj-%{version}-py*.egg-info %{python_sitelib}/configobj-%{version}-py*.egg-info
%changelog %changelog