Hello community, here is the log from the commit of package python-argparse-manpage for openSUSE:Factory checked in at 2019-05-20 13:18:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-argparse-manpage (Old) and /work/SRC/openSUSE:Factory/.python-argparse-manpage.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argparse-manpage" Mon May 20 13:18:12 2019 rev:2 rq:704089 version:1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-argparse-manpage/python-argparse-manpage.changes 2019-01-21 10:28:21.657552615 +0100 +++ /work/SRC/openSUSE:Factory/.python-argparse-manpage.new.5148/python-argparse-manpage.changes 2019-05-20 13:18:15.995918613 +0200 @@ -1,0 +2,14 @@ +Tue May 7 06:59:20 UTC 2019 - Tomáš Chvátal <tchva...@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 <jeng...@inai.de> + +- Use noun phrase in summary. Repair grammar issues in description. + +------------------------------------------------------------------- Old: ---- argparse-manpage-1.1.tar.gz New: ---- v1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-argparse-manpage.spec ++++++ --- /var/tmp/diff_new_pack.lLoWDk/_old 2019-05-20 13:18:17.487917835 +0200 +++ /var/tmp/diff_new_pack.lLoWDk/_new 2019-05-20 13:18:17.491917832 +0200 @@ -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,11 +50,16 @@ %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