d98ef9
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
d98ef9
d98ef9
%global tarname TracNav-%{version}
d98ef9
d98ef9
Name:           trac-tracnav-plugin
d98ef9
Version:        4.1
7d660f
Release:        5%{?dist}
d98ef9
Summary:        Navigation Bar for Trac
d98ef9
Group:          Applications/Internet
d98ef9
License:        GPLv2+
d98ef9
URL:            http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav
d98ef9
Source:         http://pypi.python.org/packages/source/T/TracNav/TracNav-%{version}.zip
ee7dd6
Patch0:         tracnav-4.1-trac-0.12-compat.patch
d98ef9
BuildArch:      noarch
d98ef9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d98ef9
BuildRequires:  python-devel
d98ef9
BuildRequires:  python-setuptools-devel
d98ef9
Requires:       python-setuptools
d98ef9
Requires:       trac >= 0.11
d98ef9
d98ef9
%description
d98ef9
The TracNav macro implements a fully customizable navigation bar for
d98ef9
the Trac wiki engine. The contents of the navigation bar is a wiki
d98ef9
page itself and can be edited like any other wiki page through the web
d98ef9
interface. The navigation bar supports hierarchical ordering of
d98ef9
topics. The design of TracNav mimics the design of the TracGuideToc
d98ef9
that was originally supplied with Trac.
d98ef9
d98ef9
d98ef9
%prep
d98ef9
%setup -n %{tarname} -q
ee7dd6
# from r3276
ee7dd6
%patch0 -p0
d98ef9
d98ef9
d98ef9
%build
d98ef9
%{__python} setup.py build
d98ef9
d98ef9
d98ef9
%install
d98ef9
rm -rf %{buildroot}
d98ef9
%{__python} setup.py install --skip-build --root %{buildroot}
d98ef9
d98ef9
d98ef9
%clean
d98ef9
rm -rf %{buildroot}
d98ef9
d98ef9
d98ef9
%files
d98ef9
%defattr(-,root,root,-)
d98ef9
%doc COPYING README
d98ef9
%{python_sitelib}/*
d98ef9
d98ef9
d98ef9
%changelog
7d660f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-5
7d660f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7d660f
ee7dd6
* Fri Jan  7 2011 Thomas Moschny <thomas.moschny@gmx.de> - 4.1-4
ee7dd6
- Add patch from upstream for Trac 0.12 compatibility.
ee7dd6
2ab3c8
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.1-3
2ab3c8
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2ab3c8
d98ef9
* Fri Jul 31 2009 Thomas Moschny <thomas.moschny@gmx.de> - 4.1-2
d98ef9
- Use %%global instead of %%define.
d98ef9
d98ef9
* Mon Jul 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 4.1-1
d98ef9
- New package.