e319ccd
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e319ccd
e319ccd
Name: python-routes
a7913ad
Version: 1.12.1
a7913ad
Release: 1%{?dist}
e319ccd
Summary: Rails-like routes for Python
e319ccd
e319ccd
Group: Development/Languages
e319ccd
License: BSD
e319ccd
URL: http://routes.groovie.org/
e319ccd
Source0: http://pypi.python.org/packages/source/R/Routes/Routes-%{version}.tar.gz
e319ccd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e319ccd
BuildArch: noarch
b17e59e
BuildRequires: python-setuptools-devel 
b17e59e
BuildRequires: python-nose python-webtest python-paste
e319ccd
e319ccd
e319ccd
%description
e319ccd
Routes is a Python re-implementation of the Rails routes system for mapping
e319ccd
URL's to Controllers/Actions and generating URL's. Routes makes it easy to
e319ccd
create pretty and concise URL's that are RESTful with little effort.
e319ccd
e319ccd
e319ccd
%prep
e319ccd
%setup -q -n Routes-%{version}
e319ccd
e319ccd
e319ccd
%build
e319ccd
%{__python} setup.py build
e319ccd
e319ccd
e319ccd
%install
e319ccd
rm -rf $RPM_BUILD_ROOT
e319ccd
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
e319ccd
e319ccd
b17e59e
%check
b17e59e
PYTHONPATH=$(pwd) nosetests
b17e59e
b17e59e
e319ccd
%clean
e319ccd
rm -rf $RPM_BUILD_ROOT
e319ccd
e319ccd
e319ccd
%files
e319ccd
%defattr(-,root,root,-)
3422539
%doc LICENSE README docs
e319ccd
%{python_sitelib}/*
e319ccd
e319ccd
e319ccd
%changelog
a7913ad
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 1.12.1-1
a7913ad
- Update to 1.12.1
a7913ad
703d851
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.3-2
703d851
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
703d851
3422539
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 1.10.3-1
3422539
- Update to 1.10.3
3422539
0d63645
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-2
0d63645
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0d63645
b17e59e
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 1.10.1-2
b17e59e
- Update to 1.10.1
b17e59e
- Run the test suite
b17e59e
ad69023
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.8-3
ad69023
- Rebuild for Python 2.6
ad69023
e319ccd
* Sun May 11 2008 Kyle VanderBeek <kylev@kylev.com> - 1.8-2
e319ccd
- Fix rpmlint warning.
e319ccd
- Add documentation files.
e319ccd
e319ccd
* Wed Apr  9 2008 Kyle VanderBeek <kylev@kylev.com> - 1.8-1
e319ccd
- Initial version.
e319ccd