Accepting request 704089 from devel:languages:python

- Switch to github tarball
  - Enable tests
  - Get license file
- Run fdupes
- Add support for older distros than Tumbleweed
- Use noun phrase in summary. Repair grammar issues in description.

OBS-URL: https://build.opensuse.org/request/show/704089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-05-20 11:18:12 +00:00 committed by Git OBS Bridge
commit cf17467b3c
4 changed files with 43 additions and 23 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,17 @@
-------------------------------------------------------------------
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>
- Use noun phrase in summary. Repair grammar issues in description.
-------------------------------------------------------------------
Thu Oct 11 15:04:42 UTC 2018 - Marcus Rueckert <mrueckert@suse.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,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

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