Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stealthii/7412376 to your computer and use it in GitHub Desktop.
Save Stealthii/7412376 to your computer and use it in GitHub Desktop.
Enterprise Linux 5 RPM spec for RBTools.
diff -u a/ b/
--- a/ 2013-11-08 16:22:30.000000000 +0000
+++ b/ 2013-11-08 16:22:30.000000000 +0000
@@ -23,14 +23,7 @@
-# Attempt to use currently-installed setuptools first
- from setuptools import setup, find_packages
-except ImportError:
- # setuptools was unavailable. Install it then try again
- from ez_setup import use_setuptools
- use_setuptools()
- from setuptools import setup, find_packages
+from setuptools import setup, find_packages
from setuptools.command.test import test
%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))")}
Name: RBTools
Version: 0.5.2
Release: 1%{?dist}
Summary: Tools for use with ReviewBoard
Group: Applications/Internet
License: MIT
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
RBTools provides client tools for interacting with a ReviewBoard
code-review server.
%setup -q -n %{name}-%{version}
# Apply patches
%patch1001 -p1
%{__python} build
%{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT
# While /usr/bin/post-review also exists for this purpose,
# it is still sensible to make executable
chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/rbtools/
* Fri Nov 08 2013 Daniel Porter <> - 0.5.2-1
- New upstream 0.5.2 release
* Tue Sep 27 2011 Stephen Gallagher <> - 0.3.4-1
- New upstream 0.3.4 release
- New Features:
- post-review:
- Added a --change-description option for setting the Change Description
text on drafts
- Bugfixes:
- post-review:
- Newlines in summaries on Git are now converted to spaces, preventing
errors when using --guess-summary
- Fixed authentication failures when accessing a protected /api/info/
URL. This was problematic particularly on RBCommons
- Fixed diff upload problems on Python 2.7
* Mon Aug 22 2011 Stephen Gallagher <> - 0.3.3-1
- New upstream 0.3.3 release
- Notable Changes:
- Rewrote the Clear Case implementation to be cleaner, more maintainable,
and less buggy
- New Features:
- post-review:
- Added --http-username and --http-password for providing defaults for
Basic HTTP Authentication
- Clear Case:
- Added proper support for --tracking-branch and --revision-range
- Clear Case configuration has moved to .reviewboardrc
- Git:
- Added automatic parent diff determination when using --revision-range
- Added support for working against bare repositories when using
- Enhanced --revision-range to take any valid Git revisions
- Support --repository-url for overriding the git origin URL
- Mercurial:
- Added support for --guess-summary and --guess-description
- Allow a single revision to be passed to --revision-range
- Subversion:
- Added support for --svn-changelist for specifying SVN changelists
- Bug Fixes:
- post-review:
- Fixed authentication problems with some versions of Review Board
- Clear Case:
- The view is properly recognized
- Removed the dependency on xargs and cygwin
- Fixed breakages with binary files
- Removed support for --label, which was useless
- Running just post-review will now produce a working diff of checked
out files
- Diffs generate properly now under Windows
- The diffs no longer hard-code a fake date, but instead use the real
time/date of the file
- Files that were renamed no longer breaks the diff. OID/UUIDs are used
instead of file paths
- Fixed diff generation to use the diff program instead of hand-crafting
the diffs
- Running with --revision-range with paths that don't exist no longer
produces unreadable IOException errors
- Git:
- Use real URLs when using git prefixes
- Fixed compatibility with versions of Git older than 1.6
- Added compatibility with msysgit
- The correct SVN remote tracking branch is now used for git-svn
- Mercurial:
- Fixed an error when posting inside a Mercurial branch
- Perforce:
- Fixed Review Board version detection when checking for Perforce
changeset support. This forced usage of the old API, preventing the new
API from being used, which prevented usage with Review Board 1.6
- Subversion:
- Lines starting with --- and +++ in diffs that aren't diff control lines
no longer results in broken diffs
* 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
* 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:
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment