14
0
forked from pool/python-abimap

- Just require python-setuptools not use macros as it gets auto-expanded

by lua parser properly

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abimap?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2018-08-20 14:35:41 +00:00
committed by Git OBS Bridge
parent 086a190ae9
commit 5136d86983
2 changed files with 12 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 20 14:34:59 UTC 2018 - tchvatal@suse.com
- Just require python-setuptools not use macros as it gets auto-expanded
by lua parser properly
-------------------------------------------------------------------
Mon Aug 20 08:59:29 UTC 2018 - asn@cryptomilk.org

View File

@@ -17,34 +17,28 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-abimap
Version: 0.3.1
Release: 0
Summary: A helper for library maintainers to use symbol versioning
License: MIT
Group: Development/Languages/Python
Url: https://github.com/ansasaki/abimap
URL: https://github.com/ansasaki/abimap
Source: https://files.pythonhosted.org/packages/source/a/abimap/abimap-%{version}.tar.gz
Patch0: abimap-0.3.0-disable-pytest-console-script-tests.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
#BuildRequires: %%{python_module pytest-console-scripts}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
BuildArch: noarch
Requires: %{python_module setuptools}
%python_subpackages
%description
@@ -82,7 +76,7 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
make -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
make %{?_smp_mflags} -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests
%files %{python_files}