7cc8483
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
7cc8483
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7cc8483
Patrick Uiterwijk a6f8f44
%define svnrev 11914
7cc8483
7cc8483
Name:           trac-iniadmin-plugin
Jesse Keating 01d8e58
Version:        0.2
Patrick Uiterwijk a6f8f44
Release:        1.20120808svn%{svnrev}%{?dist}
fd62e0f
Summary:        Expose all TracIni options using the Trac 0.11 config option API
7cc8483
7cc8483
Group:          Applications/Internet
7cc8483
License:        BSD
7cc8483
URL:            http://trac-hacks.org/wiki/IniAdminPlugin
fd62e0f
# Source comes from Trac right now: http://trac-hacks.org/changeset/%{svnrev}/iniadminplugin/0.11?old_path=/&filename=iniadminplugin/0.11&format=zip
fd62e0f
Source0:        iniadminplugin_0.11-r%{svnrev}.zip
7cc8483
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7cc8483
7cc8483
BuildArch:      noarch
7cc8483
BuildRequires:  python-devel
7cc8483
BuildRequires:  python-setuptools
Jesse Keating 01d8e58
Requires:       trac >= 0.11, python-setuptools
7cc8483
7cc8483
%description
Jesse Keating 01d8e58
This plugin uses the new configuration option API in Trac 0.11+ to allow
7cc8483
modification of any field exposed through this mechanism.
7cc8483
7cc8483
This currently includes all core Trac settings, and although no plugins are
7cc8483
taking advantage of this yet, I'm sure it will only be a matter of time :)
7cc8483
7cc8483
Note: Many Trac options require a restart of the server process, so your 
7cc8483
changes may not take effect until that is done.
7cc8483
7cc8483
%prep
fd62e0f
%setup -n iniadminplugin/0.11 -q
7cc8483
7cc8483
7cc8483
%build
7cc8483
%{__python} setup.py build
7cc8483
7cc8483
7cc8483
%install
7cc8483
rm -rf $RPM_BUILD_ROOT
7cc8483
# skip-build doesn't work on el4
7cc8483
%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT
7cc8483
7cc8483
 
7cc8483
%clean
7cc8483
rm -rf $RPM_BUILD_ROOT
7cc8483
7cc8483
7cc8483
%files
7cc8483
%defattr(-,root,root,-)
7cc8483
# For noarch packages: sitelib
7cc8483
%{python_sitelib}/*
7cc8483
7cc8483
7cc8483
%changelog
Patrick Uiterwijk a6f8f44
* Wed Aug 08 2012 Patrick Uiterwijk <puiterwijk@gmail.com> - 0.2-1.20120808svn11914
Patrick Uiterwijk a6f8f44
- Updated version for 0.11 from SVN
Patrick Uiterwijk a6f8f44
8608915
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-4.20101209svn9652
8608915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8608915
8a68e92
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3.20101209svn9652
8a68e92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8a68e92
422725e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2.20101209svn9652
422725e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
422725e
Jesse Keating 01d8e58
* Thu Dec 09 2010 Jesse Keating <jkeating@redhat.com> - 0.2-1.20101209svn9652
Jesse Keating 01d8e58
- New upstream version
Jesse Keating 01d8e58
2f1099b
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.1-8.20091026svn6877
2f1099b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2f1099b
fd62e0f
* Mon Oct 26 2009 Jesse Keating <jkeating@redhat.com> - 0.1-7.20091026svn3915
fd62e0f
- Update for 0.11
fd62e0f
8bbf7c7
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5.20071126svn2824
8bbf7c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8bbf7c7
e3f27c1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-4.20071126svn2824
e3f27c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e3f27c1
3a3b347
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1-3.20071126svn2824
3a3b347
- Rebuild for Python 2.6
3a3b347
7cc8483
* Wed Dec 05 2007 Jesse Keating <jkeating@redhat.com> - 0.1-2.20071126svn2824
7cc8483
- Change the url to point to the exact svn rev we're packaging.
7cc8483
7cc8483
* Mon Nov 26 2007 Jesse Keating <jkeating@redhat.com> - 0.1-1.20071126svn2824
7cc8483
- Initial package for Fedora