- Switch to github tarball

- Enable tests
  - Get license file
- Run fdupes
- Add support for older distros than Tumbleweed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-05-07 07:00:13 +00:00 committed by Git OBS Bridge
parent f32d46242e
commit aeeaf42d5b
4 changed files with 30 additions and 16 deletions

View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue May 7 06:59:20 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to github tarball
- Enable tests
- Get license file
- Run fdupes
- Add support for older distros than Tumbleweed
-------------------------------------------------------------------
Fri Oct 12 14:29:54 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-argparse-manpage
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -12,24 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define mod_name argparse-manpage
%define skip_python2 1
%define mod_name argparse-manpage
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-argparse-manpage
Version: 1.1
Release: 0
Summary: Tool for automatic manual page building from a Python ArgumentParser object
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/praiskup/argparse-manpage
Source: %{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module docutils}
URL: https://github.com/praiskup/argparse-manpage
Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
@ -49,12 +50,16 @@ support for (deprecated) optparse objects, too.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README* PKG-INFO
%doc README*
%license LICENSE
%{python_sitelib}/*
%{_bindir}/argparse-manpage
%{_mandir}/man1/argparse-manpage.1*
%python3_only %{_bindir}/argparse-manpage
%python3_only %{_mandir}/man1/argparse-manpage.1%{?ext_man}
%changelog

3
v1.1.tar.gz Normal file
View File

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