e00695d
# Created by pyp2rpm-1.0.1
e00695d
%global pypi_name cov-core
827fa26
%global summary Plugin core for use by pytest-cov, nose-cov and nose2-cov
827fa26
%global _description \
827fa26
This is a lib package for use by pytest-cov, nose-cov and nose2-cov. \
2059d0b
If you're developing a coverage plugin for a test framework then you \
827fa26
probably want one of those.
e00695d
77f6eb8
# EPEL7 support: Python2 packages prefix is unversioned.
77f6eb8
%if 0%{?rhel} && 0%{?rhel} <= 7
77f6eb8
%global py2_namespace python
77f6eb8
%else
77f6eb8
%global py2_namespace python2
77f6eb8
%endif
77f6eb8
77f6eb8
e00695d
Name:           python-%{pypi_name}
0165fc9
Version:        1.15.0
827fa26
Release:        6%{?dist}
827fa26
Summary:        %{summary}
e00695d
e00695d
License:        MIT
e00695d
URL:            http://bitbucket.org/memedough/cov-core/overview
e00695d
Source0:        https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
e00695d
BuildArch:      noarch
e00695d
 
e00695d
BuildRequires:  python2-devel
303d098
BuildRequires:  python-setuptools
e00695d
 
827fa26
# Python3
827fa26
BuildRequires:  python-srpm-macros
827fa26
BuildRequires:  python%{python3_pkgversion}-devel
827fa26
BuildRequires:  python%{python3_pkgversion}-setuptools
827fa26
%if 0%{?with_python3_other}
77f6eb8
BuildRequires:  python%{python3_other_pkgversion}-devel
77f6eb8
BuildRequires:  python%{python3_other_pkgversion}-setuptools
827fa26
%endif
e00695d
 
77f6eb8
%if %{py2_namespace} == python
0165fc9
Requires:       python-coverage >= 3.6
77f6eb8
%endif
77f6eb8
827fa26
%{?python_provide:%python_provide python-%{pypi_name}}
e00695d
827fa26
%description %{_description}
e00695d
e00695d
77f6eb8
# Python 2
77f6eb8
%if %{py2_namespace} != python
77f6eb8
%package -n     %{py2_namespace}-%{pypi_name}
77f6eb8
Summary:        %{summary}
77f6eb8
%{?python_provide:%python_provide %{py2_namespace}-%{pypi_name}}
77f6eb8
Requires:       %{py2_namespace}-coverage >= 3.6
77f6eb8
77f6eb8
%description -n %{py2_namespace}-%{pypi_name} %{_description}
77f6eb8
%endif
77f6eb8
77f6eb8
827fa26
# Python3
827fa26
%package -n     python%{python3_pkgversion}-%{pypi_name}
827fa26
Summary:        %{summary}
827fa26
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
827fa26
Requires:       python%{python3_pkgversion}-coverage >= 3.6
827fa26
827fa26
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
827fa26
827fa26
%if 0%{?with_python3_other}
827fa26
%package -n python%{python3_other_pkgversion}-%{pypi_name}
827fa26
Summary: %{summary}
827fa26
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}}
827fa26
Requires: python%{python3_other_pkgversion}-zope-interface
827fa26
Requires: python%{python3_other_pkgversion}-zope-event
827fa26
827fa26
%description -n python%{python3_other_pkgversion}-%{pypi_name} %{_description}
827fa26
%endif
e00695d
e00695d
e00695d
%prep
e00695d
%setup -q -n %{pypi_name}-%{version}
e00695d
# Remove bundled egg-info
e00695d
rm -rf %{pypi_name}.egg-info
e00695d
e00695d
e00695d
%build
827fa26
%py2_build
827fa26
%py3_build
827fa26
%if 0%{?with_python3_other}
827fa26
%py3_other_build
827fa26
%endif
e00695d
e00695d
e00695d
%install
e00695d
# Must do the subpackages' install first because the scripts in /usr/bin are
e00695d
# overwritten with every setup.py install (and we want the python2 version
e00695d
# to be the default for now).
827fa26
%if 0%{?with_python3_other}
827fa26
%py3_other_install
827fa26
%endif
827fa26
%py3_install
827fa26
%py2_install
e00695d
e00695d
77f6eb8
%files -n %{py2_namespace}-%{pypi_name}
827fa26
%license LICENSE.txt
827fa26
%doc README.rst
e00695d
%{python2_sitelib}/cov_core*
e00695d
827fa26
# Python3
827fa26
%files -n python%{python3_pkgversion}-%{pypi_name}
827fa26
%license LICENSE.txt
827fa26
%doc README.rst
e00695d
%{python3_sitelib}/cov_core*
e00695d
%{python3_sitelib}/__pycache__/*
827fa26
827fa26
%if 0%{?with_python3_other}
827fa26
%files -n python%{python3_other_pkgversion}-%{pypi_name}
827fa26
%license LICENSE.txt
827fa26
%doc README.rst
827fa26
%{python3_other_sitelib}/cov_core*
827fa26
%{python3_other_sitelib}/__pycache__/*
827fa26
%endif
827fa26
e00695d
e00695d
%changelog
827fa26
* Tue Apr 25 2017 Aurelien Bompard <abompard@fedoraproject.org> - 1.15.0-6
827fa26
- Build the Python3 version in EPEL.
77f6eb8
- Use the proper Python namespace.
827fa26
178e910
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-5
178e910
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
178e910
ffc9dac
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.15.0-4
ffc9dac
- Rebuild for Python 3.6
ffc9dac
f9912b5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15.0-3
f9912b5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f9912b5
91b4153
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
91b4153
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
91b4153
0165fc9
* Fri Nov 13 2015 bkabrda <bkabrda@redhat.com> - 1.15.0-1
0165fc9
- Updated to 1.15.0
0165fc9
33272b0
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6
33272b0
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
33272b0
593998b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-5
593998b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
593998b
f9bfd63
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-4
f9bfd63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f9bfd63
27b2c50
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7-3
27b2c50
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
27b2c50
303d098
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7-2
303d098
- Add BR: python-setuptools.
303d098
e00695d
* Thu Sep 05 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7-1
e00695d
- Initial package.