diff --git a/.gitignore b/.gitignore index e69de29..c876093 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ConfigArgParse-0.9.3.tar.gz diff --git a/python-configargparse.spec b/python-configargparse.spec new file mode 100644 index 0000000..2b6deb8 --- /dev/null +++ b/python-configargparse.spec @@ -0,0 +1,87 @@ +%global srcname ConfigArgParse + +Name: python-configargparse +Version: 0.9.3 +Release: 3%{?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 +Buildarch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Applications with more than a handful of user-settable options are best +configured through a combination of command line args, config files, hard +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. + + +%package -n python2-configargparse +Summary: %{summary} +%{?python_provide:%python_provide python2-configargparse} + +%description -n python2-configargparse +Applications with more than a handful of user-settable options are best +configured through a combination of command line args, config files, hard +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. + +%package -n python3-configargparse +Summary: %{summary} +%{?python_provide:%python_provide python3-configargparse} + +%description -n python3-configargparse +Applications with more than a handful of user-settable options are best +configured through a combination of command line args, config files, hard +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. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-configargparse +%doc README.rst +%license LICENSE +%{python2_sitelib}/configargparse.py* +%{python2_sitelib}/%{srcname}*.egg-info + +%files -n python3-configargparse +%doc README.rst +%license LICENSE +%{python3_sitelib}/configargparse.py* +%{python3_sitelib}/%{srcname}*.egg-info +%{python3_sitelib}/__pycache__/configargparse* + +%changelog +* Thu Nov 05 2015 Fabian Affolter - 0.9.3-3 +- Remove old parts + +* Fri Oct 30 2015 Fabian Affolter - 0.9.3-2 +- Update macros + +* Thu Feb 05 2015 Fabian Affolter - 0.9.3-1 +- Initial package diff --git a/sources b/sources index e69de29..12ca135 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +69273e8099661cd12985b85d795ab73e ConfigArgParse-0.9.3.tar.gz