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