Add missing Requires: pythonX-requests; Make python2- subpkg

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

https://bugzilla.redhat.com/show_bug.cgi?id=1351104
epel8^2
Igor Gnatenko 9 years ago
parent ed0730a9cf
commit c2937c71ea

@ -1,37 +1,47 @@
%global srcname betamax %global srcname betamax
%global sum A VCR imitation for python-requests
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.7.1 Version: 0.7.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: %{sum} Summary: VCR imitation for python-requests
%{?python_provide:%python_provide python-%{srcname}}
License: ASL 2.0 License: ASL 2.0
URL: https://pypi.python.org/pypi/betamax URL: https://github.com/sigmavirus24/%{srcname}
Source0: https://pypi.python.org/packages/2e/64/d41ea7091c7bc80b2042e03109fed9947f073f67303fc94f4d777a1fa6d1/%{srcname}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python3-devel
BuildRequires: python-requests
BuildRequires: pytest
BuildRequires: python-setuptools python3-setuptools
%description %global _description \
Betamax is a VCR_ imitation for requests. This will make mocking out requests Betamax is a VCR_ imitation for requests. This will make mocking out requests\
much easier. much easier.
%description %{_description}
%package -n python2-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pytest
BuildRequires: python2-requests
Requires: python2-requests
%description -n python2-%{srcname} %{_description}
Python 2 version.
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{sum} Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-requests BuildRequires: python3-requests
BuildRequires: python3-pytest BuildRequires: python3-pytest
%{?python_provide:%python_provide python3-%{srcname}} Requires: python3-requests
%description -n python3-%{srcname} %description -n python3-%{srcname} %{_description}
Betamax is a VCR_ imitation for requests. This will make mocking out requests
much easier. Python 3 version.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}
@ -41,9 +51,6 @@ much easier.
%py3_build %py3_build
%install %install
# Must do the python2 install first because the scripts in /usr/bin are
# overwritten with every setup.py install, and in general we want the
# python3 version to be the default.
%py2_install %py2_install
%py3_install %py3_install
@ -52,19 +59,24 @@ much easier.
#%{__python2} setup.py test #%{__python2} setup.py test
#%{__python3} setup.py test #%{__python3} setup.py test
%files -n python-%{srcname} %files -n python2-%{srcname}
%doc PKG-INFO %doc README.rst
%license LICENSE %license LICENSE
%{python2_sitelib}/%{srcname} %{python2_sitelib}/%{srcname}/
%{python2_sitelib}/%{srcname}-%{version}-py2.*.egg-info %{python2_sitelib}/%{srcname}-*.egg-info/
%files -n python3-%{srcname} %files -n python3-%{srcname}
%doc PKG-INFO %doc README.rst
%license LICENSE %license LICENSE
%{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-%{version}-py3.*.egg-info %{python3_sitelib}/%{srcname}-*.egg-info/
%changelog %changelog
* Wed Jun 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.7.1-2
- Add missing Requires: pythonX-requests
- Make python2- subpkg
- Minor fixes
* Wed Jun 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.1-1 * Wed Jun 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.1-1
- Update to 0.7.1 release - Update to 0.7.1 release
@ -77,4 +89,3 @@ much easier.
* Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.5.1-1 * Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.5.1-1
- Initial packaging - Initial packaging

@ -1 +1 @@
3329a35418c3062f7cde6259bf634a33 betamax-0.7.1.tar.gz 3cc295f594b402112b4a5120f798d574 betamax-0.7.1.tar.gz

Loading…
Cancel
Save