Upstream 2.5.0
- Add python3 subpackage
This commit is contained in:
parent
5757a1db05
commit
5f1f0a73b1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/semantic_version-2.4.1.tar.gz
|
||||
/semantic_version-2.4.2.tar.gz
|
||||
/semantic_version-2.5.0.tar.gz
|
||||
|
@ -1,9 +1,13 @@
|
||||
%global pypi_name semantic_version
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 2.4.2
|
||||
Release: 2%{?dist}
|
||||
Version: 2.5.0
|
||||
Release: 1%{?dist}
|
||||
Summary: A library implementing the 'SemVer' scheme
|
||||
|
||||
License: BSD
|
||||
@ -11,15 +15,37 @@ URL: https://github.com/rbarrois/python-semanticversion
|
||||
Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools >= 0.8
|
||||
|
||||
Provides: python-semantic-version
|
||||
|
||||
%description
|
||||
This small python library provides a few tools to handle semantic versioning
|
||||
in Python
|
||||
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools >= 0.8
|
||||
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
Provides: python-semantic-version
|
||||
|
||||
%description -n python2-%{pypi_name}
|
||||
This small python library provides a few tools to handle semantic versioning
|
||||
in Python
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools >= 0.8
|
||||
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
This small python library provides a few tools to handle semantic versioning
|
||||
in Python
|
||||
%endif
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for python-%{pypi_name}
|
||||
|
||||
@ -40,33 +66,51 @@ rm docs/credits.rst
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py build
|
||||
%endif
|
||||
# generate html docs
|
||||
sphinx-build docs html
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py test
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%files -n python2-%{pypi_name}
|
||||
%license LICENSE
|
||||
%doc README.rst ChangeLog
|
||||
%{python2_sitelib}/%{pypi_name}
|
||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
%doc README.rst ChangeLog
|
||||
%{python3_sitelib}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
%endif
|
||||
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc html
|
||||
|
||||
%changelog
|
||||
* Wed Feb 24 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 2.5.0-1
|
||||
- Upstream 2.5.0
|
||||
- Add python3 subpackage
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user