Blame python-openstack-nose-plugin.spec

2807bc7
%if 0%{?fedora}
2807bc7
%global with_python3 1
2807bc7
%endif
2807bc7
885de52
%global pypi_name openstack.nose_plugin
2807bc7
%global pkg_name openstack-nose-plugin
885de52
2807bc7
Name:           python-%{pkg_name}
885de52
Version:        0.11
2807bc7
Release:        8%{?dist}
885de52
Summary:        openstack run_tests.py style output for nosetests
885de52
885de52
License:        ASL 2.0
2807bc7
URL:            http://pypi.python.org/pypi/%{pypi_name}
2807bc7
Source0:        https://files.pythonhosted.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
885de52
BuildArch:      noarch
2807bc7
2807bc7
%description
2807bc7
openstack.nose_plugin provides a nose plugin that allow's nosetests output to
2807bc7
mimic the output of openstack's run_tests.py.
2807bc7
2807bc7
%package -n python2-%{pkg_name}
2807bc7
Summary:        %{summary}
2807bc7
885de52
BuildRequires:  python2-devel
2807bc7
BuildRequires:  python2-setuptools
885de52
 
885de52
Requires:       python-nose
2807bc7
Requires:       python2-colorama
2807bc7
Requires:       python2-termcolor
885de52
2807bc7
%{?python_provide:%python_provide python2-%{pkg_name}}
2807bc7
2807bc7
%description -n python2-%{pkg_name}
885de52
openstack.nose_plugin provides a nose plugin that allow's nosetests output to
885de52
mimic the output of openstack's run_tests.py.
2807bc7
This package provides Python 2 build of %{pypi_name}.
885de52
2807bc7
%if 0%{?with_python3}
885de52
2807bc7
%package -n python3-%{pkg_name}
2807bc7
Summary:        %{summary}
885de52
2807bc7
BuildRequires:  python3-devel
2807bc7
BuildRequires:  python3-setuptools
885de52
2807bc7
Requires:       python3-nose
2807bc7
Requires:       python2-colorama
2807bc7
Requires:       python3-termcolor
885de52
2807bc7
%{?python_provide:%python_provide python3-%{pkg_name}}
2807bc7
2807bc7
%description -n python3-%{pkg_name}
2807bc7
openstack.nose_plugin provides a nose plugin that allow's nosetests output to
2807bc7
mimic the output of openstack's run_tests.py.
2807bc7
This package provides Python 3 build of %{pypi_name}.
2807bc7
2807bc7
%endif
2807bc7
2807bc7
%prep
2807bc7
%autosetup -n %{pypi_name}-%{version}
2807bc7
2807bc7
%build
2807bc7
%py2_build
2807bc7
%if 0%{?with_python3}
2807bc7
%py3_build
2807bc7
%endif
885de52
885de52
%install
2807bc7
%py2_install
2807bc7
%if 0%{?with_python3}
2807bc7
%py3_install
2807bc7
%endif
885de52
2807bc7
%files -n python2-%{pkg_name}
2807bc7
%doc README.rst
2807bc7
%{python2_sitelib}/openstack
2807bc7
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2807bc7
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?-nspkg.pth
885de52
2807bc7
%if 0%{?with_python3}
2807bc7
%files -n python3-%{pkg_name}
885de52
%doc README.rst
2807bc7
%{python3_sitelib}/openstack
2807bc7
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2807bc7
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?-nspkg.pth
2807bc7
%endif
885de52
885de52
%changelog
2807bc7
* Fri Nov 11 2016 Jan Beran <jberan@redhat.com> - 0.11-8
2807bc7
- modernized specfile with Python 3 packaging
2807bc7
baad535
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
baad535
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
baad535
25e80ea
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
25e80ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
25e80ea
560fdac
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
560fdac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
560fdac
6f0dd86
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
6f0dd86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6f0dd86
b1ab70a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
b1ab70a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b1ab70a
0fd693e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
0fd693e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0fd693e
885de52
* Tue Sep 11 2012 Matthias Runge <mrunge@redhat.com> - 0.11-1
885de52
- Initial package.
2807bc7
2807bc7