# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define svnrev 4429
Name: trac-webadmin
Version: 0.1.2
Release: 0.4.dev_r%{svnrev}%{?dist}
Summary: Web interface for administration of Trac
Group: Applications/Internet
License: BSD
URL: http://trac.edgewall.org/wiki/WebAdmin
# Source comes from SVN right now: svn co -r %{svnrev} http://svn.edgewall.com/repos/trac/sandbox/webadmin/
Source0: TracWebAdmin-%{version}dev-r%{svnrev}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: trac, python-setuptools
%description
Web interface for administration of Trac
%prep
%setup -n TracWebAdmin-%{version}dev-r%{svnrev} -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
# skip-build doesn't work on el4
%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
# For noarch packages: sitelib
%{python_sitelib}/*
%changelog
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.2-0.4.dev_r4429
- Rebuild for Python 2.6
* Sat Jun 02 2007 Jesse Keating <jkeating@redhat.com> - 0.1.2-0.3.dev_r4429
- and python-setuptools
* Sat Jun 02 2007 Jesse Keating <jkeating@redhat.com> - 0.1.2-0.2.dev_r4429
- We require trac to run.
* Fri Jun 01 2007 Jesse Keating <jkeating@redhat.com> - 0.1.2-0.1.dev_r4429
- Initial build