|
|
b7bb4e4 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
b7bb4e4 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%define svnrev 2892
|
|
|
b7bb4e4 |
%define upname xmlrpcplugin
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
Name: trac-xmlrpc-plugin
|
|
|
b7bb4e4 |
Version: 0.1
|
|
|
b7bb4e4 |
Release: 0.3.r%{svnrev}%{?dist}
|
|
|
b7bb4e4 |
Summary: Allows Trac plugins to export their interface via XML-RPC
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
Group: Applications/Internet
|
|
|
b7bb4e4 |
License: BSD
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
URL: http://trac-hacks.org/wiki/XmlRpcPlugin
|
|
|
b7bb4e4 |
# The source for this package was pulled from upstream's vcs. Use the
|
|
|
b7bb4e4 |
# following commands to generate the tarball:
|
|
|
b7bb4e4 |
Source0: %{upname}-r%{svnrev}.tar.bz2
|
|
|
b7bb4e4 |
# svn export -r %{svnrev} http://trac-hacks.org/svn/xmlrpcplugin/0.10 xmlrpcplugin
|
|
|
b7bb4e4 |
# tar -cjvf xmlrpcplugin-r%{svnrev}.tar.bz2 xmlrpcplugin
|
|
|
b7bb4e4 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
BuildArch: noarch
|
|
|
b7bb4e4 |
BuildRequires: python-devel
|
|
|
b7bb4e4 |
BuildRequires: python-setuptools
|
|
|
b7bb4e4 |
Requires: trac, python-setuptools
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%description
|
|
|
b7bb4e4 |
This plugin allows Trac plugins to export select parts of their
|
|
|
b7bb4e4 |
interface via XML-RPC. It also includes some exported functions
|
|
|
b7bb4e4 |
for manipulating tickets, with plans to include interfaces to other parts
|
|
|
b7bb4e4 |
of Trac's API.
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%prep
|
|
|
b7bb4e4 |
%setup -n %{upname} -q
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%build
|
|
|
b7bb4e4 |
%{__python} setup.py build
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%install
|
|
|
b7bb4e4 |
%{__rm} -fr %{buildroot}
|
|
|
b7bb4e4 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%clean
|
|
|
b7bb4e4 |
%{__rm} -fr %{buildroot}
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%files
|
|
|
b7bb4e4 |
%defattr(-,root,root,-)
|
|
|
b7bb4e4 |
%{python_sitelib}/*
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
%changelog
|
|
|
b7bb4e4 |
* Tue Dec 18 2007 Sergio Pascual <sergio.pasra at gmail.com> - 0.1-0.3.r2892
|
|
|
b7bb4e4 |
- Renamed as trac-xmlrpc-plugin
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
* Mon Dec 17 2007 Sergio Pascual <sergio.pasra at gmail.com> - 0.1-0.2.r2892
|
|
|
b7bb4e4 |
- Removed redundant line in install section
|
|
|
b7bb4e4 |
|
|
|
b7bb4e4 |
* Thu Dec 13 2007 Sergio Pascual <sergio.pasra at gmail.com> - 0.1-0.1.r2892
|
|
|
b7bb4e4 |
- Initial build, initial template borrowed from Jesse Keating's trac-webadmin
|