14
0
forked from pool/python-abimap

Accepting request 630539 from devel:languages:python

- Just require python-setuptools not use macros as it gets auto-expanded
  by lua parser properly

- Update to version 0.3.1
  * Fixed bug when sorting releases: the older come first
  * Added missing runtime requirement for setuptools
  * Added manpage generation

OBS-URL: https://build.opensuse.org/request/show/630539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-abimap?expand=0&rev=3
This commit is contained in:
2018-08-22 12:19:23 +00:00
committed by Git OBS Bridge
4 changed files with 29 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff41025ba6995501e0c320fd58a98f80edc76c3ddf3632b5a3beab677ae3181e
size 51436

3
abimap-0.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2c4c7ff6ef2e1b42e0385af5995c5432027fe10ce3278408841e23cb3ca5dcd
size 53265

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
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
- Update to version 0.3.1
* Fixed bug when sorting releases: the older come first
* Added missing runtime requirement for setuptools
* Added manpage generation
-------------------------------------------------------------------
Wed Aug 8 17:50:53 UTC 2018 - asn@cryptomilk.org

View File

@@ -17,34 +17,28 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-abimap
Version: 0.3.0
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
@@ -69,22 +63,27 @@ Documentation for the symbol versioning helper %{name}
%python_build
PYTHONPATH=${PWD}/src:${PWD}/tests sphinx-build docs html
PYTHONPATH=${PWD}/src:${PWD}/tests sphinx-build -E -b man docs man
%install
%python_install
rm -rf html/.{doctrees,buildinfo}
install -d -m 0755 %{buildroot}%{_mandir}/man1
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 -j1 -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}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE
%python3_only %{_bindir}/abimap
%python3_only %{_mandir}/man1/abimap.1*
%{python_sitelib}/*
%files %{python_files doc}