e00695d
# Created by pyp2rpm-1.0.1
e00695d
%global pypi_name cov-core
4149aa0
%if 0%{?fedora}
e00695d
%global with_python3 1
4149aa0
%else
4149aa0
%global with_python3 0
4149aa0
%endif
e00695d
e00695d
Name:           python-%{pypi_name}
0165fc9
Version:        1.15.0
91b4153
Release:        2%{?dist}
e00695d
Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
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
 
e00695d
%if %{?with_python3}
e00695d
BuildRequires:  python3-devel
303d098
BuildRequires:  python3-setuptools
e00695d
%endif # if with_python3
e00695d
 
0165fc9
Requires:       python-coverage >= 3.6
e00695d
e00695d
%description
e00695d
This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
e00695d
you're developing a coverage plugin for a test framework then you probably
e00695d
want one of those.
e00695d
e00695d
%if 0%{?with_python3}
e00695d
%package -n     python3-%{pypi_name}
e00695d
Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
e00695d
 
0165fc9
Requires:       python3-coverage >= 3.6
e00695d
e00695d
%description -n python3-%{pypi_name}
e00695d
This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
e00695d
you're developing a coverage plugin for a test framework then you probably
e00695d
want one of those.
e00695d
%endif # with_python3
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
%if 0%{?with_python3}
e00695d
rm -rf %{py3dir}
e00695d
cp -a . %{py3dir}
e00695d
%endif # with_python3
e00695d
e00695d
%build
e00695d
%{__python2} setup.py build
e00695d
e00695d
%if 0%{?with_python3}
e00695d
pushd %{py3dir}
e00695d
%{__python3} setup.py build
e00695d
popd
e00695d
%endif # with_python3
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).
e00695d
%if 0%{?with_python3}
e00695d
pushd %{py3dir}
e00695d
%{__python3} setup.py install --skip-build --root %{buildroot}
e00695d
popd
e00695d
%endif # with_python3
e00695d
e00695d
%{__python2} setup.py install --skip-build --root %{buildroot}
e00695d
e00695d
%files
0165fc9
%doc README.rst LICENSE.txt
e00695d
%{python2_sitelib}/cov_core*
e00695d
e00695d
%if 0%{?with_python3}
e00695d
%files -n python3-%{pypi_name}
0165fc9
%doc README.rst LICENSE.txt
e00695d
%{python3_sitelib}/cov_core*
e00695d
%{python3_sitelib}/__pycache__/*
e00695d
%endif # with_python3
e00695d
e00695d
%changelog
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.