690d4a4
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
690d4a4
690d4a4
Name: python-routes
690d4a4
Version: 1.8
690d4a4
Release: 2%{?dist}
690d4a4
Summary: Rails-like routes for Python
690d4a4
690d4a4
Group: Development/Languages
690d4a4
License: BSD
690d4a4
URL: http://routes.groovie.org/
690d4a4
Source0: http://pypi.python.org/packages/source/R/Routes/Routes-%{version}.tar.gz
690d4a4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
690d4a4
BuildArch: noarch
690d4a4
BuildRequires: python-setuptools-devel
690d4a4
690d4a4
690d4a4
%description
690d4a4
Routes is a Python re-implementation of the Rails routes system for mapping
690d4a4
URL's to Controllers/Actions and generating URL's. Routes makes it easy to
690d4a4
create pretty and concise URL's that are RESTful with little effort.
690d4a4
690d4a4
690d4a4
%prep
690d4a4
%setup -q -n Routes-%{version}
690d4a4
690d4a4
690d4a4
%build
690d4a4
%{__python} setup.py build
690d4a4
690d4a4
690d4a4
%install
690d4a4
rm -rf $RPM_BUILD_ROOT
690d4a4
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
690d4a4
690d4a4
690d4a4
%clean
690d4a4
rm -rf $RPM_BUILD_ROOT
690d4a4
690d4a4
690d4a4
%files
690d4a4
%defattr(-,root,root,-)
690d4a4
%doc INSTALL LICENSE README docs
690d4a4
%{python_sitelib}/*
690d4a4
690d4a4
690d4a4
%changelog
690d4a4
* Sun May 11 2008 Kyle VanderBeek <kylev@kylev.com> - 1.8-2
690d4a4
- Fix rpmlint warning.
690d4a4
- Add documentation files.
690d4a4
690d4a4
* Wed Apr  9 2008 Kyle VanderBeek <kylev@kylev.com> - 1.8-1
690d4a4
- Initial version.
690d4a4