|
|
6705743 |
%if 0%{?fedora} > 12
|
|
Matthias Runge |
c904126 |
%global with_python3 1
|
|
Matthias Runge |
c904126 |
%else
|
|
Matthias Runge |
c904126 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
Matthias Runge |
c904126 |
%endif
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
%global pypi_name nose-cover3
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
Name: python-%{pypi_name}
|
|
Matthias Runge |
3cd7449 |
Version: 0.1.0
|
|
|
d00cfa2 |
Release: 5%{?dist}
|
|
Matthias Runge |
3cd7449 |
Summary: Coverage 3.x support for Nose
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
License: LGPLv2+
|
|
Matthias Runge |
3cd7449 |
URL: http://pypi.python.org/pypi/nose-cover3/0.1.0
|
|
Matthias Runge |
3cd7449 |
Source0: http://pypi.python.org/packages/source/n/nose-cover3/nose-cover3-0.1.0.tar.gz
|
|
Matthias Runge |
3cd7449 |
BuildArch: noarch
|
|
Matthias Runge |
3cd7449 |
Requires: python-nose
|
|
Matthias Runge |
3cd7449 |
BuildRequires: python2-devel
|
|
Matthias Runge |
3cd7449 |
BuildRequires: python-setuptools
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
BuildRequires: python3-devel
|
|
Matthias Runge |
c904126 |
BuildRequires: python3-setuptools
|
|
Matthias Runge |
c904126 |
%endif # if with_python3
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
%description
|
|
Matthias Runge |
3cd7449 |
Coverage 3.x support for Nose.
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
%package -n python3-nose-cover3
|
|
Matthias Runge |
c904126 |
Summary: Coverage 3.x support for Nose
|
|
Matthias Runge |
c904126 |
Requires: python3-nose
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
c904126 |
%description -n python3-nose-cover3
|
|
Matthias Runge |
c904126 |
Coverage 3.x support for Nose.
|
|
Matthias Runge |
c904126 |
%endif # with_python3
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
%prep
|
|
Matthias Runge |
3cd7449 |
%setup -q -n %{pypi_name}-%{version}
|
|
Matthias Runge |
3cd7449 |
# Remove bundled egg-info
|
|
Matthias Runge |
3cd7449 |
rm -rf %{pypi_name}.egg-info
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
cp -a . %{py3dir}
|
|
Matthias Runge |
c904126 |
%endif
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
%build
|
|
Matthias Runge |
3cd7449 |
%{__python} setup.py build
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
pushd %{py3dir}
|
|
Matthias Runge |
c904126 |
%{__python3} setup.py build
|
|
Matthias Runge |
c904126 |
popd
|
|
Matthias Runge |
c904126 |
%endif # with_python3
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
%install
|
|
Matthias Runge |
3cd7449 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
pushd %{py3dir}
|
|
Matthias Runge |
c904126 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Matthias Runge |
c904126 |
popd
|
|
Matthias Runge |
c904126 |
%endif # with_python3
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
3cd7449 |
%files
|
|
Matthias Runge |
3cd7449 |
%doc README.rst LICENSE
|
|
Matthias Runge |
3cd7449 |
%{python_sitelib}/nosecover3
|
|
Matthias Runge |
3cd7449 |
%{python_sitelib}/nose_cover3-%{version}-py?.?.egg-info
|
|
Matthias Runge |
3cd7449 |
|
|
Matthias Runge |
c904126 |
%if 0%{?with_python3}
|
|
Matthias Runge |
c904126 |
%files -n python3-nose-cover3
|
|
Matthias Runge |
c904126 |
%doc README.rst LICENSE
|
|
Matthias Runge |
c904126 |
%{python3_sitelib}/*
|
|
Matthias Runge |
c904126 |
%endif # with_python3
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
%changelog
|
|
|
d00cfa2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-5
|
|
|
d00cfa2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d00cfa2 |
|
|
|
d53713e |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.1.0-4
|
|
|
d53713e |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
d53713e |
|
|
|
6423c8a |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-3
|
|
|
6423c8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6423c8a |
|
|
Matthias Runge |
c904126 |
* Sun Jul 08 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.1.0-2
|
|
Matthias Runge |
c904126 |
- add python3 support
|
|
Matthias Runge |
c904126 |
|
|
Matthias Runge |
3cd7449 |
* Tue Jun 05 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.1.0-1
|
|
Matthias Runge |
3cd7449 |
- Initial package.
|