|
|
|
%global srcname betamax
|
|
|
|
%global sum A VCR imitation for python-requests
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 0.7.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: %{sum}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python-%{srcname}}
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://pypi.python.org/pypi/betamax
|
|
|
|
Source0: https://pypi.python.org/packages/2e/64/d41ea7091c7bc80b2042e03109fed9947f073f67303fc94f4d777a1fa6d1/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel python3-devel
|
|
|
|
BuildRequires: python-requests
|
|
|
|
BuildRequires: pytest
|
|
|
|
BuildRequires: python-setuptools python3-setuptools
|
|
|
|
|
|
|
|
%description
|
|
|
|
Betamax is a VCR_ imitation for requests. This will make mocking out requests
|
|
|
|
much easier.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %{sum}
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
Betamax is a VCR_ imitation for requests. This will make mocking out requests
|
|
|
|
much easier.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py2_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%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
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
# disable tests as they need n/w access
|
|
|
|
#%check
|
|
|
|
#%{__python2} setup.py test
|
|
|
|
#%{__python3} setup.py test
|
|
|
|
|
|
|
|
%files -n python-%{srcname}
|
|
|
|
%doc PKG-INFO
|
|
|
|
%license LICENSE
|
|
|
|
%{python2_sitelib}/%{srcname}
|
|
|
|
%{python2_sitelib}/%{srcname}-%{version}-py2.*.egg-info
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%doc PKG-INFO
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py3.*.egg-info
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Jun 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.1-1
|
|
|
|
- Update to 0.7.1 release
|
|
|
|
|
|
|
|
* Mon May 02 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.0-1
|
|
|
|
- Update to 0.7.0 release
|
|
|
|
- disable tests as they need network access
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.5.1-1
|
|
|
|
- Initial packaging
|
|
|
|
|