Compare commits
No commits in common. "c10s" and "c8" have entirely different histories.
1
.argparse-manpage.metadata
Normal file
1
.argparse-manpage.metadata
Normal file
@ -0,0 +1 @@
|
||||
91ff825ad41d2aa9453bce1dee8d569754ce944d SOURCES/argparse-manpage-1.1.tar.gz
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/argparse-manpage-*.tar.gz
|
||||
SOURCES/argparse-manpage-1.1.tar.gz
|
||||
|
151
SPECS/argparse-manpage.spec
Normal file
151
SPECS/argparse-manpage.spec
Normal file
@ -0,0 +1,151 @@
|
||||
%if 0%{?fedora}
|
||||
%bcond_without python2
|
||||
%bcond_without python3
|
||||
%else
|
||||
%if 0%{?rhel} > 7
|
||||
%bcond_with python2
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_without python2
|
||||
%bcond_with python3
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%bcond_without check
|
||||
|
||||
|
||||
%global sum() Build manual page from %* ArgumentParser object
|
||||
%global desc \
|
||||
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 is a limited support for (deprecated) optparse objects, too.
|
||||
|
||||
|
||||
Name: argparse-manpage
|
||||
Version: 1.1
|
||||
Release: 2%{?dist}
|
||||
Summary: %{sum Python}
|
||||
BuildArch: noarch
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/praiskup/%{name}
|
||||
Source0: https://github.com/praiskup/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-setuptools python2-devel
|
||||
%if %{with check}
|
||||
%if 0%{?rhel} && 0%{?rhel} == 7
|
||||
BuildRequires: pytest python-six
|
||||
%else
|
||||
BuildRequires: python2-pytest python2-six
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%if %{with python3}
|
||||
BuildRequires: python3-setuptools python3-devel
|
||||
%if %{with check}
|
||||
BuildRequires: python3-pytest python3-six
|
||||
%endif
|
||||
%endif
|
||||
%if %{with python3}
|
||||
Requires: python3-%name = %version-%release
|
||||
%else
|
||||
Requires: python2-%name = %version-%release
|
||||
%endif
|
||||
|
||||
%description
|
||||
%desc
|
||||
|
||||
|
||||
%package -n python2-%name
|
||||
Summary: %{sum Python 2}
|
||||
|
||||
%description -n python2-%name
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python3-%name
|
||||
Summary: %{sum Python 3}
|
||||
|
||||
%description -n python3-%name
|
||||
%{desc}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
%py2_build
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
%py2_install
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%if %{with python2}
|
||||
PYTHONPATH=%buildroot%python2_sitearch %__python2 -m pytest
|
||||
%endif
|
||||
%if %{with python3}
|
||||
PYTHONPATH=%buildroot%python3_sitearch %__python3 -m pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/argparse-manpage
|
||||
%_mandir/man1/argparse-manpage.1.*
|
||||
%if %{with python3}
|
||||
%python3_sitelib/build_manpages/cli
|
||||
%else
|
||||
%python2_sitelib/build_manpages/cli
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-%name
|
||||
%license LICENSE
|
||||
%python2_sitelib/build_manpages
|
||||
%python2_sitelib/argparse_manpage-%{version}*.egg-info
|
||||
%exclude %python2_sitelib/build_manpages/cli
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-%name
|
||||
%license LICENSE
|
||||
%python3_sitelib/build_manpages
|
||||
%python3_sitelib/argparse_manpage-%{version}*.egg-info
|
||||
%exclude %python3_sitelib/build_manpages/cli
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jun 25 2018 Pavel Raiskup <praiskup@redhat.com> - 1.1-1
|
||||
- v1.1
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Mon Feb 19 2018 Pavel Raiskup <praiskup@redhat.com> - 1.0.0-1
|
||||
- initial RPM packaging
|
@ -1,311 +0,0 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||
%bcond_without pyproject
|
||||
%bcond_with python2
|
||||
%bcond_with python3
|
||||
%else
|
||||
%bcond_with pyproject
|
||||
%if 0%{?rhel} > 7
|
||||
%bcond_with python2
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_without python2
|
||||
%bcond_with python3
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%bcond_without check
|
||||
|
||||
|
||||
%global sum() Build manual page from %* ArgumentParser object
|
||||
%global desc \
|
||||
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 is a limited support for (deprecated) optparse objects, too.
|
||||
|
||||
|
||||
Name: argparse-manpage
|
||||
Version: 4.5
|
||||
Release: 5%{?dist}
|
||||
Summary: %{sum Python}
|
||||
BuildArch: noarch
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/praiskup/%{name}
|
||||
Source0: %pypi_source
|
||||
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-setuptools python2-devel
|
||||
BuildRequires: python2-packaging
|
||||
BuildRequires: python2-toml
|
||||
%if %{with check}
|
||||
%if 0%{?rhel} && 0%{?rhel} == 7
|
||||
BuildRequires: pytest
|
||||
%else
|
||||
BuildRequires: python2-pytest
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
BuildRequires: python3-setuptools python3-devel
|
||||
BuildRequires: python3-packaging
|
||||
BuildRequires: python3-tomli
|
||||
%if %{with check}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with pyproject}
|
||||
BuildRequires: python3-devel
|
||||
# EL9 needs this explicitly
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
%if %{with check}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with python3} || %{with pyproject}
|
||||
Requires: python3-%name = %version-%release
|
||||
%else
|
||||
Requires: python2-%name = %version-%release
|
||||
%endif
|
||||
|
||||
%description
|
||||
%desc
|
||||
|
||||
|
||||
%package -n python2-%name
|
||||
Summary: %{sum Python 2}
|
||||
Requires: python2-setuptools
|
||||
Requires: python2-toml
|
||||
|
||||
%description -n python2-%name
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python3-%name
|
||||
Summary: %{sum Python 3}
|
||||
%if %{without pyproject}
|
||||
Requires: python3-setuptools
|
||||
%endif
|
||||
|
||||
%description -n python3-%name
|
||||
%{desc}
|
||||
|
||||
|
||||
%if %{with pyproject}
|
||||
%pyproject_extras_subpkg -n python3-%{name} setuptools
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%if %{with pyproject}
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
%py2_build
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
%endif
|
||||
%if %{with pyproject}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
%py2_install
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
%endif
|
||||
%if %{with pyproject}
|
||||
%pyproject_install
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%if %{with python2}
|
||||
PYTHONPATH=%buildroot%python2_sitearch %__python2 -m pytest -vv
|
||||
%endif
|
||||
%if %{with python3}
|
||||
PYTHONPATH=%buildroot%python3_sitearch %__python3 -m pytest -vv
|
||||
%endif
|
||||
%if %{with pyproject}
|
||||
%pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/argparse-manpage
|
||||
%_mandir/man1/argparse-manpage.1.*
|
||||
%if %{with python3} || %{with pyproject}
|
||||
%python3_sitelib/argparse_manpage/cli.py
|
||||
%else
|
||||
%python2_sitelib/argparse_manpage/cli.py
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-%name
|
||||
%license LICENSE
|
||||
%python2_sitelib/build_manpages
|
||||
%python2_sitelib/argparse_manpage
|
||||
%python2_sitelib/argparse_manpage-%{version}*.egg-info
|
||||
%exclude %python2_sitelib/argparse_manpages/cli.py
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with python3} || %{with pyproject}
|
||||
%files -n python3-%name
|
||||
%license LICENSE
|
||||
%python3_sitelib/build_manpages
|
||||
%python3_sitelib/argparse_manpage
|
||||
%if %{with pyproject}
|
||||
%python3_sitelib/argparse_manpage-*dist-info
|
||||
%else
|
||||
%python3_sitelib/argparse_manpage-%{version}*.egg-info
|
||||
%endif
|
||||
%exclude %python3_sitelib/argparse_manpage/cli.py
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.5-5
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.5-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Sep 22 2023 Pavel Raiskup <praiskup@redhat.com> - 4.5-1
|
||||
- new upstream release https://github.com/praiskup/argparse-manpage/releases/tag/v4.4
|
||||
|
||||
* Mon Sep 04 2023 Pavel Raiskup <praiskup@redhat.com> - 4.4-1
|
||||
- new upstream release: https://github.com/praiskup/argparse-manpage/releases/tag/v4.4
|
||||
- license tag in SPDX format
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.3-2
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Thu May 18 2023 Pavel Raiskup <praiskup@redhat.com> - 4.3-1
|
||||
- new upstream release, tomli dep instead of toml
|
||||
https://github.com/praiskup/argparse-manpage/releases/tag/v4.3
|
||||
|
||||
* Sun May 14 2023 Pavel Raiskup <praiskup@redhat.com> - 4.2-1
|
||||
- new upstream release, upport for pyproject.toml specs, and --manfile option
|
||||
|
||||
* Sat Apr 15 2023 Pavel Raiskup <praiskup@redhat.com> - 4.1-1
|
||||
- new `--include` feature, inspired by `help2man --include`
|
||||
- allow overriding build date with SOURCE_DATE_EPOCH environment variable
|
||||
- the AUTHORS section was changed to more standard AUTHOR
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Mon Oct 31 2022 Pavel Raiskup <praiskup@redhat.com> - 4-1
|
||||
- new upstream release:
|
||||
https://github.com/praiskup/argparse-manpage/releases/tag/v4
|
||||
|
||||
* Fri Jul 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 3-4
|
||||
- Fix tests compatibility with pip >= 21.3
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3-2
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Wed Apr 27 2022 Pavel Raiskup <praiskup@redhat.com> - 3-1
|
||||
- new upstream release: https://github.com/praiskup/argparse-manpage/releases/tag/v3
|
||||
|
||||
* Thu Mar 03 2022 Pavel Raiskup <praiskup@redhat.com> - 2.2-1
|
||||
- new release - fix build for the setuptools v60+
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jan 12 2022 Pavel Raiskup <praiskup@redhat.com> - 2.1-1
|
||||
- new upstream release:
|
||||
https://github.com/praiskup/argparse-manpage/releases/tag/v2.1
|
||||
|
||||
* Sun Nov 28 2021 Pavel Raiskup <praiskup@redhat.com> - 2-1
|
||||
- new upstream release:
|
||||
https://github.com/praiskup/argparse-manpage/releases/tag/v2
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5-3
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Dec 14 2020 Pavel Raiskup <praiskup@redhat.com> - 1.5-1
|
||||
- new release
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4-3
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jan 24 2020 Pavel Raiskup <praiskup@redhat.com> - 1.4-1
|
||||
- new release to fix testsuite against Python 3.9
|
||||
|
||||
* Tue Jan 07 2020 Pavel Raiskup <praiskup@redhat.com> - 1.3-1
|
||||
- new release
|
||||
|
||||
* Sat Sep 07 2019 Pavel Raiskup <praiskup@redhat.com> - 1.2.2-1
|
||||
- new release
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1-6
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Oct 02 2018 Pavel Raiskup <praiskup@redhat.com> - 1.1-3
|
||||
- drop python3 on F30+ (rhbz#1634992)
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jun 25 2018 Pavel Raiskup <praiskup@redhat.com> - 1.1-1
|
||||
- v1.1
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Mon Feb 19 2018 Pavel Raiskup <praiskup@redhat.com> - 1.0.0-1
|
||||
- initial RPM packaging
|
@ -1,31 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Prepare master branch, review the list of branches below and then execute this
|
||||
# script.
|
||||
|
||||
main=main
|
||||
branches="$main epel7 epel8 epel9 f37 f38 f39"
|
||||
|
||||
exit_handler ()
|
||||
{
|
||||
git checkout "$main"
|
||||
}
|
||||
|
||||
trap exit_handler EXIT
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
koji hello
|
||||
|
||||
tasks=
|
||||
for branch in $branches; do
|
||||
if test $branch != "$main"; then
|
||||
git checkout "$branch"
|
||||
git merge "$main"
|
||||
fi
|
||||
git push
|
||||
tasks="${tasks}`fedpkg build --nowait | grep 'Created task' | cut -d: -f2`"
|
||||
done
|
||||
|
||||
koji watch-task $tasks
|
Loading…
Reference in New Issue
Block a user