|
|
0ab52bf |
%global pypi_name docopt
|
|
|
0ab52bf |
|
|
|
474ffe8 |
Name: python-docopt
|
|
|
f8daffd |
Version: 0.6.2
|
|
|
4586e07 |
Release: 8%{?dist}
|
|
|
474ffe8 |
Summary: Pythonic argument parser, that will make you smile
|
|
|
474ffe8 |
|
|
|
474ffe8 |
License: MIT
|
|
|
474ffe8 |
URL: https://github.com/docopt/docopt
|
|
|
0ab52bf |
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
3ddaa52 |
|
|
|
3ddaa52 |
BuildArch: noarch
|
|
|
3ddaa52 |
|
|
|
3ddaa52 |
%description
|
|
|
3ddaa52 |
Isn't it awesome how optparse and argparse generate help messages
|
|
|
3ddaa52 |
based on your code?!
|
|
|
8e0ed26 |
|
|
|
3ddaa52 |
Hell no! You know what's awesome? It's when the option parser is
|
|
|
3ddaa52 |
generated based on the beautiful help message that you write yourself!
|
|
|
3ddaa52 |
This way you don't need to write thisstupid repeatable parser-code,
|
|
|
3ddaa52 |
and instead can write only the help message--*the way you want it*.
|
|
|
474ffe8 |
|
|
|
3ddaa52 |
%package -n python2-%{pypi_name}
|
|
|
0ab52bf |
Summary: %{summary}
|
|
|
3ddaa52 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
0ab52bf |
BuildRequires: python2-devel
|
|
|
5c8f7f1 |
BuildRequires: python%{?fedora:2}-setuptools
|
|
|
5c8f7f1 |
BuildRequires: %{?fedora:python2-}pytest
|
|
|
3ddaa52 |
|
|
|
3ddaa52 |
%description -n python2-%{pypi_name}
|
|
|
474ffe8 |
Isn't it awesome how optparse and argparse generate help messages
|
|
|
474ffe8 |
based on your code?!
|
|
|
474ffe8 |
|
|
|
474ffe8 |
Hell no! You know what's awesome? It's when the option parser is
|
|
|
474ffe8 |
generated based on the beautiful help message that you write yourself!
|
|
|
474ffe8 |
This way you don't need to write thisstupid repeatable parser-code,
|
|
|
474ffe8 |
and instead can write only the help message--*the way you want it*.
|
|
|
474ffe8 |
|
|
|
0ab52bf |
Python 2 version.
|
|
|
3ddaa52 |
|
|
|
5c8f7f1 |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
0ab52bf |
Summary: %{summary}
|
|
|
5c8f7f1 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
5c8f7f1 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
5c8f7f1 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
5c8f7f1 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
3ddaa52 |
|
|
|
5c8f7f1 |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
8e0ed26 |
Isn't it awesome how optparse and argparse generate help messages
|
|
|
8e0ed26 |
based on your code?!
|
|
|
8e0ed26 |
|
|
|
8e0ed26 |
Hell no! You know what's awesome? It's when the option parser is
|
|
|
8e0ed26 |
generated based on the beautiful help message that you write yourself!
|
|
|
8e0ed26 |
This way you don't need to write thisstupid repeatable parser-code,
|
|
|
8e0ed26 |
and instead can write only the help message--*the way you want it*.
|
|
|
474ffe8 |
|
|
|
0ab52bf |
Python 3 version.
|
|
|
474ffe8 |
|
|
|
3ddaa52 |
%prep
|
|
|
0ab52bf |
%autosetup -n %{pypi_name}-%{version}
|
|
|
8e0ed26 |
|
|
|
474ffe8 |
%build
|
|
|
3ddaa52 |
%py2_build
|
|
|
3ddaa52 |
%py3_build
|
|
|
8e0ed26 |
|
|
|
474ffe8 |
%install
|
|
|
3ddaa52 |
%py2_install
|
|
|
3ddaa52 |
%py3_install
|
|
|
474ffe8 |
|
|
|
8e0ed26 |
%check
|
|
|
0ab52bf |
py.test-%{python2_version} -v
|
|
|
0ab52bf |
py.test-%{python3_version} -v
|
|
|
8e0ed26 |
|
|
|
3ddaa52 |
%files -n python2-%{pypi_name}
|
|
|
3ddaa52 |
%license LICENSE-MIT
|
|
|
3ddaa52 |
%doc README.rst
|
|
|
0ab52bf |
%{python2_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
0ab52bf |
%{python2_sitelib}/%{pypi_name}.py*
|
|
|
8e0ed26 |
|
|
|
5c8f7f1 |
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
3ddaa52 |
%license LICENSE-MIT
|
|
|
3ddaa52 |
%doc README.rst
|
|
|
0ab52bf |
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
0ab52bf |
%{python3_sitelib}/%{pypi_name}.py
|
|
|
0ab52bf |
%{python3_sitelib}/__pycache__/%{pypi_name}.*
|
|
|
474ffe8 |
|
|
|
474ffe8 |
%changelog
|
|
|
4586e07 |
* Thu Mar 07 2019 Troy Dawson <tdawson@redhat.com> - 0.6.2-8
|
|
|
4586e07 |
- Rebuilt to change main python from 3.4 to 3.6
|
|
|
4586e07 |
|
|
|
5c8f7f1 |
* Wed Jan 03 2018 Carl George <carl@george.computer> - 0.6.2-7
|
|
|
5c8f7f1 |
- EPEL compatibility, including Python 3 build
|
|
|
5c8f7f1 |
|
|
|
b343d0c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
|
|
|
b343d0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b343d0c |
|
|
|
d277a61 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
|
|
|
d277a61 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d277a61 |
|
|
|
1000df0 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.6.2-4
|
|
|
1000df0 |
- Rebuild for Python 3.6
|
|
|
1000df0 |
|
|
|
0ab52bf |
* Fri Dec 16 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.6.2-3
|
|
|
0ab52bf |
- Don't own __pycache__ directory in python3 subpackage
|
|
|
0ab52bf |
- Really run tests (setup.py test doesn't do anything)
|
|
|
0ab52bf |
- Drop copy-pasted Requires (RHBZ #1405639)
|
|
|
0ab52bf |
- Trivial cleanups
|
|
|
0ab52bf |
|
|
|
2eeb595 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
|
|
|
2eeb595 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
2eeb595 |
|
|
|
3ddaa52 |
* Fri Feb 05 2016 Germano Massullo <germano.massullo@gmail.com> - 0.6.2-1
|
|
|
3ddaa52 |
- Heavy edits to make spec file compliant to https://fedoraproject.org/wiki/Packaging:Python (package python-docopt did not provide a python2-docopt package in Fedora repositories)
|
|
|
3ddaa52 |
- Removed egg files stuff since they are no longer present in upstream source file.
|
|
|
3ddaa52 |
- 0.6.2 minor update
|
|
|
f8daffd |
|
|
|
e8bd56b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-8
|
|
|
e8bd56b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e8bd56b |
|
|
|
9049e9c |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-7
|
|
|
9049e9c |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
9049e9c |
|
|
|
e43fdf2 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-6
|
|
|
e43fdf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e43fdf2 |
|
|
|
909349b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-5
|
|
|
909349b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
909349b |
|
|
|
076b70b |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.1-4
|
|
|
076b70b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
076b70b |
|
|
|
3ddaa52 |
* Mon Feb 03 2014 Martin Sivak <msivak@redhat.com> - 0.6.1-3
|
|
|
813b2b0 |
- Fix a mistake in spec file that prevented the subpackage from
|
|
|
813b2b0 |
being created for Python 3
|
|
|
813b2b0 |
|
|
|
3ddaa52 |
* Fri Nov 15 2013 Martin Sivak <msivak@redhat.com> - 0.6.1-2
|
|
|
8e0ed26 |
- Enable python3 package
|
|
|
8e0ed26 |
|
|
|
3ddaa52 |
* Mon Aug 19 2013 Martin Sivak <msivak@redhat.com> - 0.6.1-1
|
|
|
18cb788 |
- Upstream version sync
|
|
|
18cb788 |
|
|
|
2819ef3 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
2819ef3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
2819ef3 |
|
|
|
0b8e46d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
|
|
|
0b8e46d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
0b8e46d |
|
|
|
3ddaa52 |
* Mon Jan 14 2013 Martin Sivak <msivak@redhat.com> - 0.5.0-1
|
|
|
3ddaa52 |
- Initial release
|
|
|
3ddaa52 |
|