%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Name: RBTools Version: 0.3.2 Release: 1%{?dist} Summary: Tools for use with ReviewBoard Group: Applications/Internet License: MIT URL: http://www.review-board.org Source0: http://downloads.review-board.org/releases/%{name}/0.3/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-setuptools Requires: python-simplejson ### Patches ### # Don't use ez_setup, since RPM provides equivalent functionality Patch1001: FED01-Disable-ez_setup-when-installing-by-RPM.patch %description RBTools provides client tools for interacting with a ReviewBoard code-review server. %prep %setup -q -n %{name}-%{version} # Apply patches %patch1001 -p1 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT # While /usr/bin/post-review also exists for this purpose, # it is still sensible to make postreview.py executable chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/rbtools/postreview.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS NEWS README %{_bindir}/post-review %{python_sitelib}/rbtools/ %{python_sitelib}/RBTools*.egg-info/ %changelog * Wed Feb 09 2011 Stephen Gallagher - 0.3.2-1 - New upstream 0.3.2 release - Fixed using Perforce change numbers with Review Board 1.5.2 - Fixed parsing CVSROOTs with :ext: schemes not containing a username - Mercurial no longer takes precedence over Perforce if a valid Mercurial - user configuration is found * Mon Feb 07 2011 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Feb 07 2011 Stephen Gallagher - 0.3.1-1 - New upstream 0.3.1 release - Added a .reviewboardrc setting for specifying the repository to use - Fixed a crash when using the old, deprecated API and accessing an existing - review request * Tue Feb 01 2011 Stephen Gallagher - 0.3-1 - New upstream release - Support for new ReviewBoard 1.5.x API - Support for Plastic SCM - Full release notes: - http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.3/ * Fri Jul 30 2010 Stephen Gallagher - 0.2-6 - Rebuild for python 2.7 * Mon Apr 19 2010 Stephen Gallagher - 0.2-5 - Update to 0.2 final release * Tue Apr 06 2010 Stephen Gallagher - 0.2-3.rc1 - Add runtime requirement for python-setuptools * Mon Apr 05 2010 Stephen Gallagher - 0.2-2.rc1 - Remove git-patchset patch - Add patch to check for GNU diff - Add patch to give more useful error messages on failure * Mon Mar 15 2010 Stephen Gallagher - 0.2-1.rc1 - Import upstream release 0.2rc1 - Add patches from upstream - Add patch to support git patchsets