rpms/python-argparse/F-10 python-argparse.spec,NONE,1.1
Terje Røsten
terjeros at fedoraproject.org
Wed Feb 11 18:19:15 UTC 2009
Author: terjeros
Update of /cvs/extras/rpms/python-argparse/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16110/F-10
Added Files:
python-argparse.spec
Log Message:
Forgot to add spec file.
--- NEW FILE python-argparse.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
%define oname argparse
Summary: Optparse inspired command line parser for Python
Name: python-argparse
Version: 0.8.0
Release: 2%{?dist}
License: BSD
Group: Development/Languages
URL: http://argparse.python-hosting.com/
Source0: http://pypi.python.org/packages/source/a/%{oname}/%{oname}-%{version}.zip
BuildRequires: python-setuptools-devel dos2unix
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
The argparse module is an optparse-inspired command line parser that
improves on optparse by:
* handling both optional and positional arguments
* supporting parsers that dispatch to sub-parsers
* producing more informative usage messages
* supporting actions that consume any number of command-line args
* allowing types and actions to be specified with simple callables
instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS
as well as including a number of other more minor improvements on the
optparse API.
%prep
%setup -q -n %{oname}-%{version}
dos2unix -k README.txt
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check
%{__python} test_%{oname}.py
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc README.txt
%{python_sitelib}/%{oname}.py*
%{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info/
%changelog
* Wed Feb 11 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.8.0-2
- fixes from review, thanks Jussi!
* Sat Jan 17 2009 Terje Rosten <terje.rosten at ntnu.no> - 0.8.0-1
- initial build
More information about the fedora-extras-commits
mailing list