forked from pool/python-betamax
- convert to singlespec packaging
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-betamax?expand=0&rev=7
This commit is contained in:
parent
4a4a350451
commit
a6880007cb
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 16 15:57:27 UTC 2017 - dmueller@suse.com
|
||||
|
||||
- convert to singlespec packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 15 10:34:38 UTC 2016 - dmueller@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-betamax
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -24,15 +24,13 @@ License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/sigmavirus24/betamax
|
||||
Source: https://pypi.io/packages/source/b/betamax/betamax-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests >= 2.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Betamax is a VCR_ imitation for requests. This will make mocking out requests
|
||||
@ -42,12 +40,12 @@ much easier.
|
||||
%setup -q -n betamax-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS.rst LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user