Update to 4.1.0.

Do not package tests.
This commit is contained in:
Thomas Moschny 2018-03-24 12:42:14 +01:00
parent 6e4c2cb667
commit 193dbef66f
3 changed files with 16 additions and 9 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/more-itertools-2.2.tar.gz
/more-itertools-2.3.tar.gz
/more-itertools-4.1.0.tar.gz

View File

@ -9,12 +9,12 @@ See https://pythonhosted.org/more-itertools/index.html for documentation.\
%global sum Python library for efficient use of itertools utility
Name: python-%{srcname}
Version: 2.3
Release: 5%{?dist}
Version: 4.1.0
Release: 1%{?dist}
Summary: %{sum}
License: MIT
URL: https://github.com/erikrose/more-itertools
Source0: https://pypi.python.org/packages/3d/4d/5900efaab46680e3c6c7a2fd87e4531f87e101ec35f6941621dc7f097e82/%{srcname}-%{version}.tar.gz
Source0: https://pypi.io/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-nose
@ -38,33 +38,39 @@ Summary: %{sum}
%description -n python3-%{srcname} %_description
%prep
%autosetup -n %{srcname}-%{version} -a0
%autosetup -n %{srcname}-%{version}
%build
%py2_build
(cd more-itertools-%{version}/ && %py3_build)
%py3_build
%install
%py2_install
(cd more-itertools-%{version}/ && %py3_install)
%py3_install
%check
%{__python2} -m nose build/lib/ -v
%{__python3} -m nose more-itertools-%{version}/build/lib/ -v
%{__python2} ./setup.py test
%{__python3} ./setup.py test
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst PKG-INFO
%{python2_sitelib}/more_itertools/
%exclude %{python2_sitelib}/more_itertools/tests
%{python2_sitelib}/more_itertools-%{version}-py%{python2_version}.egg-info
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst PKG-INFO
%{python3_sitelib}/more_itertools/
%exclude %{python3_sitelib}/more_itertools/tests
%{python3_sitelib}/more_itertools-%{version}-py%{python3_version}.egg-info
%changelog
* Sat Mar 24 2018 Thomas Moschny <thomas.moschny@gmx.de> - 4.1.0-1
- Update to 4.1.0.
- Do not package tests.
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View File

@ -1 +1 @@
b59419aba22451f6a34ce8dbfe78d1ca more-itertools-2.3.tar.gz
SHA512 (more-itertools-4.1.0.tar.gz) = a4ab4f8f74fba8d8e5762a9d8cff7c837d47f2cdc178f86cb4e94b898d3c690bc70b94d1bc4a3500809ae77f457c2fb880721945b8f5f0220aeb374938769a2d