Blame python-pathlib2.spec

80a6b2e
%global modname	pathlib2
80a6b2e
80a6b2e
Name:           python-%{modname}
80a6b2e
Version:        2.1.0
8d05565
Release:        4%{?dist}
80a6b2e
Summary:        Object-oriented filesystem paths
80a6b2e
License:        MIT
80a6b2e
URL:            https://github.com/mcmtroffaes/pathlib2/
80a6b2e
Source0:        https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
80a6b2e
BuildArch:      noarch
80a6b2e
80a6b2e
%global _description \
80a6b2e
The old pathlib module on bitbucket is in bugfix-only mode. The goal of\
80a6b2e
pathlib2 is to provide a backport of standard pathlib module which tracks\
80a6b2e
the standard library module, so all the newest features of the standard\
80a6b2e
pathlib can be used also on older Python versions.
80a6b2e
80a6b2e
%description %{_description}
80a6b2e
80a6b2e
%package -n python2-%{modname}
80a6b2e
Summary:        %{summary}
80a6b2e
%{?python_provide:%python_provide python2-%{modname}}
80a6b2e
BuildRequires:  python2-devel
80a6b2e
BuildRequires:  python2-six
80a6b2e
80a6b2e
%description -n python2-%{modname} %{_description}
80a6b2e
80a6b2e
Python 2 version.
80a6b2e
80a6b2e
%package -n python3-%{modname}
80a6b2e
Summary:        %{summary}
80a6b2e
%{?python_provide:%python_provide python3-%{modname}}
80a6b2e
BuildRequires:  python3-devel
80a6b2e
BuildRequires:  python3-six
80a6b2e
80a6b2e
%description -n python3-%{modname} %{_description}
80a6b2e
80a6b2e
Python 3 version.
80a6b2e
80a6b2e
%prep
80a6b2e
%setup -q -n %{modname}-%{version}
80a6b2e
80a6b2e
%build
80a6b2e
%py2_build
80a6b2e
%py3_build
80a6b2e
80a6b2e
%install
80a6b2e
%py2_install
80a6b2e
%py3_install
80a6b2e
80a6b2e
%check
80a6b2e
for python in %{__python2} %{__python3}; do
80a6b2e
    for test in test_pathlib2.py test_pathlib2_with_py2_unicode_literals.py; do
80a6b2e
	$python $test
80a6b2e
    done
80a6b2e
done
80a6b2e
80a6b2e
%files -n python2-%{modname}
80a6b2e
%doc README.rst
80a6b2e
%license LICENSE.rst
80a6b2e
%{python2_sitelib}/%{modname}.py*
80a6b2e
%{python2_sitelib}/%{modname}-%{version}-py?.?.egg-info
80a6b2e
80a6b2e
%files -n python3-%{modname}
80a6b2e
%doc README.rst
80a6b2e
%license LICENSE.rst
80a6b2e
%{python3_sitelib}/%{modname}.py*
80a6b2e
%{python3_sitelib}/%{modname}-%{version}-py?.?.egg-info
80a6b2e
%{python3_sitelib}/__pycache__/*
80a6b2e
80a6b2e
%changelog
8d05565
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
8d05565
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8d05565
c89a72d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
c89a72d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c89a72d
80a6b2e
* Thu Dec 22 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.1.0-2
80a6b2e
- Add %%check.
80a6b2e
- Change URL from pathlib to pathlib2 page.
80a6b2e
80a6b2e
* Mon Nov 14 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.1.0-1
80a6b2e
- Initial package.