forked from pool/python-fixtures
Accepting request 484785 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/484785 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fixtures?expand=0&rev=17
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 31 08:26:07 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 14 18:29:11 UTC 2017 - hpj@urpla.net
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-fixtures
|
||||
Version: 3.0.0
|
||||
Release: 0
|
||||
@@ -24,23 +25,21 @@ License: Apache-2.0 or BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://launchpad.net/python-fixtures
|
||||
Source: https://pypi.io/packages/source/f/fixtures/fixtures-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-extras
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-pbr >= 0.11
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-testtools >= 0.9.22
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
BuildRequires: python-discover
|
||||
BuildRequires: python-unittest2
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module extras}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pbr >= 0.11}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module testtools >= 0.9.22}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-extras
|
||||
Requires: python-pbr >= 0.11
|
||||
Requires: python-six
|
||||
Requires: python-testtools >= 0.9.22
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Fixtures defines a Python contract for reusable state / support logic,
|
||||
@@ -53,17 +52,19 @@ compatible test cases easy and straight forward.
|
||||
%setup -q -n fixtures-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
make check
|
||||
%python_exec -m testtools.run fixtures.test_suite
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc Apache-2.0 BSD COPYING NEWS README
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/fixtures
|
||||
%{python_sitelib}/fixtures-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user