diff --git a/.gitignore b/.gitignore index cff7f19..026f414 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /ConfigArgParse-0.9.3.tar.gz /ConfigArgParse-0.10.0.tar.gz +/ConfigArgParse-0.11.0.tar.gz diff --git a/python-configargparse.spec b/python-configargparse.spec index 35def21..33c3907 100644 --- a/python-configargparse.spec +++ b/python-configargparse.spec @@ -1,20 +1,27 @@ %global srcname ConfigArgParse +%if 0%{?fedora} +%bcond_without python3 +%else +%bcond_with python3 +%endif Name: python-configargparse -Version: 0.10.0 -Release: 3%{?dist} +Version: 0.11.0 +Release: 1%{?dist} Summary: A Python module with support for argparse, config files, and env variables License: MIT URL: https://github.com/bw2/ConfigArgParse -Source0: https://pypi.python.org/packages/source/C/%{srcname}/%{srcname}-%{version}.tar.gz +Source0: https://github.com/bw2/ConfigArgParse/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz Buildarch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools +%if %{with python3} BuildRequires: python3-devel BuildRequires: python3-setuptools +%endif %description Applications with more than a handful of user-settable options are best @@ -39,6 +46,7 @@ Python’s command line parsing modules such as argparse have very limited support for config files and environment variables, so this module extends argparse to add these features. +%if %{with python3} %package -n python3-configargparse Summary: %{summary} %{?python_provide:%python_provide python3-configargparse} @@ -51,17 +59,22 @@ coded defaults, and in some cases, environment variables. Python’s command line parsing modules such as argparse have very limited support for config files and environment variables, so this module extends argparse to add these features. +%endif %prep %autosetup -n %{srcname}-%{version} %build %py2_build +%if %{with python3} %py3_build +%endif %install %py2_install +%if %{with python3} %py3_install +%endif %files -n python2-configargparse %doc README.rst @@ -69,14 +82,19 @@ argparse to add these features. %{python2_sitelib}/configargparse.py* %{python2_sitelib}/%{srcname}*.egg-info +%if %{with python3} %files -n python3-configargparse %doc README.rst %license LICENSE %{python3_sitelib}/configargparse.py* %{python3_sitelib}/%{srcname}*.egg-info %{python3_sitelib}/__pycache__/configargparse* +%endif %changelog +* Tue Nov 15 2016 Fabian Affolter - 0.11.0-1 +- Update to new upstream version 0.11.0 (rhbz#1382975) + * Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages @@ -86,6 +104,9 @@ argparse to add these features. * Thu Jan 21 2016 Nick Bebout - 0.10.0-1 - Update to 0.10.0 for Let's Encrypt dep +* Thu Dec 03 2015 Robert Buchholz - 0.9.3-5 +- epel7: Only build python2 package + * Thu Nov 12 2015 Kalev Lember - 0.9.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 diff --git a/sources b/sources index 4729329..5cab444 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -408ad7af06cd449420cecc19bee6f0c9 ConfigArgParse-0.10.0.tar.gz +00b778f112297708249a05722c3db4b0 ConfigArgParse-0.11.0.tar.gz