diff --git a/argparse-manpage-1.1.tar.gz b/argparse-manpage-1.1.tar.gz deleted file mode 100644 index 5dd83f0..0000000 --- a/argparse-manpage-1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7480e20841a34400bffc0dc93340924b480202f6ad1a46cb40a196d7f18902e -size 49044 diff --git a/python-argparse-manpage.changes b/python-argparse-manpage.changes index 49b9ae4..7a95899 100644 --- a/python-argparse-manpage.changes +++ b/python-argparse-manpage.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue May 7 06:59:20 UTC 2019 - Tomáš Chvátal + +- 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 + +- Use noun phrase in summary. Repair grammar issues in description. + ------------------------------------------------------------------- Thu Oct 11 15:04:42 UTC 2018 - Marcus Rueckert diff --git a/python-argparse-manpage.spec b/python-argparse-manpage.spec index 495e0c5..8759125 100644 --- a/python-argparse-manpage.spec +++ b/python-argparse-manpage.spec @@ -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,33 +12,35 @@ # 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: Build manual page from python's ArgumentParser object +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 -Generate manual page an automatic way from ArgumentParser object, so the -manpage 1:1 corresponds to the automatically generated --help output. The -manpage generator needs to known the location of the object, user can specify -that by (a) the module name or corresponding python filename and (b) the object -name or the function name which returns the object. There's a limited support -for (deprecated) optparse objects, too. +This utility generates a manual page in an automatic way from an +ArgumentParser object, so the manpage 1:1 corresponds to the +automatically generated --help output. The manpage generator needs to +known the location of the object, user can specify that by (a) the +module name or corresponding python filename and (b) the object name +or the function name which returns the object. There's a limited +support for (deprecated) optparse objects, too. %prep %setup -q -n %{mod_name}-%{version} @@ -48,12 +50,16 @@ 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 - diff --git a/v1.1.tar.gz b/v1.1.tar.gz new file mode 100644 index 0000000..d1efa6d --- /dev/null +++ b/v1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92504c426c4b3020f92070cc2296f438d7544ff8d303da73c5334ca62f23ecbb +size 32825