Minor clean up
This commit is contained in:
parent
f6e6545134
commit
7e73334836
@ -1,11 +1,7 @@
|
|||||||
%global pypi_name configobj
|
Name: python-configobj
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
|
||||||
Version: 5.0.6
|
Version: 5.0.6
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Config file reading, writing, and validation
|
Summary: Config file reading, writing, and validation
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://configobj.readthedocs.org/
|
URL: http://configobj.readthedocs.org/
|
||||||
# Moved to the github release instead of the pypi one since multiple elements (License and tests)
|
# Moved to the github release instead of the pypi one since multiple elements (License and tests)
|
||||||
@ -13,46 +9,36 @@ URL: http://configobj.readthedocs.org/
|
|||||||
# https://github.com/DiffSK/configobj/issues/98
|
# https://github.com/DiffSK/configobj/issues/98
|
||||||
# https://github.com/DiffSK/configobj/issues/99
|
# https://github.com/DiffSK/configobj/issues/99
|
||||||
# Source0: https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz
|
# Source0: https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz
|
||||||
Source0: https://github.com/DiffSK/%{pypi_name}/archive/v%{version}.tar.gz
|
Source0: https://github.com/DiffSK/configobj/archive/v%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
BuildRequires: python2-six
|
BuildRequires: python2-six
|
||||||
%{?fc22:BuildRequires: pytest}
|
BuildRequires: python2-pytest
|
||||||
%{!?fc22:BuildRequires: python2-pytest}
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
|
%global _description \
|
||||||
|
ConfigObj is a simple but powerful configuration file reader and writer: an ini\
|
||||||
|
file round tripper. Its main feature is that it is very easy to use, with a\
|
||||||
|
straightforward programmers interface and a simple syntax for config files.
|
||||||
|
%description %_description
|
||||||
|
|
||||||
%description
|
%package -n python2-configobj
|
||||||
ConfigObj is a simple but powerful configuration file reader and writer: an ini
|
Summary: %{summary}
|
||||||
file round tripper. Its main feature is that it is very easy to use, with a
|
%{?python_provide:%python_provide python2-configobj}
|
||||||
straightforward programmer's interface and a simple syntax for config files.
|
|
||||||
|
|
||||||
%package -n python2-%{pypi_name}
|
|
||||||
Summary: Config file reading, writing and validation
|
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
||||||
|
|
||||||
Requires: python2-six
|
Requires: python2-six
|
||||||
%description -n python2-%{pypi_name}
|
%description -n python2-configobj %_description
|
||||||
ConfigObj is a simple but powerful configuration file reader and writer: an ini
|
|
||||||
file round tripper. Its main feature is that it is very easy to use, with a
|
|
||||||
straightforward programmer's interface and a simple syntax for config files.
|
|
||||||
|
|
||||||
%package -n python3-configobj
|
|
||||||
Summary: Config file reading, writing, and validation for Python 3
|
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
||||||
|
|
||||||
|
%package -n python3-configobj
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-configobj}
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
%description -n python3-configobj
|
%description -n python3-configobj %_description
|
||||||
ConfigObj is a simple but powerful configuration file reader and writer: an ini
|
|
||||||
file round tripper. Its main feature is that it is very easy to use, with a
|
|
||||||
straightforward programmer's interface and a simple syntax for config files.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n configobj-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
@ -70,19 +56,27 @@ py.test-%{python2_version} tests
|
|||||||
%{__python3} test_configobj.py
|
%{__python3} test_configobj.py
|
||||||
py.test-%{python3_version} tests
|
py.test-%{python3_version} tests
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
%files -n python2-configobj
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/_version.py*
|
||||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python2_sitelib}/configobj.py*
|
||||||
|
%{python2_sitelib}/validate.py*
|
||||||
|
%{python2_sitelib}/configobj-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-configobj
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/_version.py
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python3_sitelib}/configobj.py
|
||||||
|
%{python3_sitelib}/validate.py
|
||||||
|
%{python3_sitelib}/__pycache__/*
|
||||||
|
%{python3_sitelib}/configobj-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 15 2018 Terje Rosten <terje.rosten@ntnu.no> - 5.0.6-12
|
||||||
|
- Minor clean up
|
||||||
|
|
||||||
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.0.6-11
|
* Tue Mar 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.0.6-11
|
||||||
- Update Python 2 dependency declarations to new packaging standards
|
- Update Python 2 dependency declarations to new packaging standards
|
||||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user