File python-commandlineapp.spec of Package python-commandlineapp
# norootforbuild
Name: python-commandlineapp
Version: 2.6
Release: 0
Summary: Base class for command line applications in Python
Source: http://www.doughellmann.com/downloads/CommandLineApp-%{version}.tar.gz
URL: http://www.doughellmann.com/projects/CommandLineApp/
Group: Development/Libraries/Python
License: BSD
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python python-devel
Provides: python-CommandLineApp = %{version}-%{release}
%py_requires
%description
The CommandLineApp class makes creating command line applications as simple as
defining callbacks to handle options when they appear in 'sys.argv'.
Authors:
--------
Doug Hellmann <doug.hellmann@gmail.com>
%prep
%setup -q -n "CommandLineApp-%{version}"
%build
%__python ./setup.py build
version=`expr \`echo "%{py_ver}" | cut -f1 -d.\` \* 1000 + \`echo "%{py_ver}" | cut -f2 -d.\` \* 10`
if [ "$version" -ge "2040" ]; then
%__python ./test_CommandLineApp.py
fi
%install
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" --record-rpm=./filelist
%clean
%__rm -rf "%{buildroot}"
%files -f filelist
%defattr(-,root,root)
%doc ChangeLog README.txt
%changelog
* Wed Mar 19 2008 Pascal Bleser <guru@unixtech.be> 2.6
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: