File python-pycopia-aid.spec of Package python-pycopia-aid
%define modname pycopia-aid
Name: python-%{modname}
Version: 1.0
Release: 1
Summary: General Purpose Objects That Enhance Python's Core Modules
URL: http://www.pycopia.net/
License: LGPL
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel python-setuptools
Requires: python-setuptools
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
General purpose objects that enhance Python's core modules. You can use these
modules in place of the standard modules with the same name. This package is
part of the collection of python packages known as pycopia.
Authors:
--------
Keith Dart <keith@kdart.com>
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt
%changelog