29d664a
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
29d664a
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
29d664a
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
29d664a
%endif
29d664a
29d664a
Name:           RBTools
142c31e
Version:        0.7
1bba2b5
Release:        1%{?dist}
29d664a
Summary:        Tools for use with ReviewBoard
29d664a
29d664a
Group:          Applications/Internet
29d664a
License:        MIT
29d664a
URL:            http://www.review-board.org
ef81286
Source0:        http://downloads.review-board.org/releases/%{name}/0.6/%{name}-%{version}.tar.gz
29d664a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
29d664a
29d664a
BuildArch:      noarch
0249903
BuildRequires:  python26-devel
0249903
BuildRequires:  python26-setuptools
0249903
Requires:       python26-setuptools
0249903
Requires:       python26-simplejson
142c31e
Requires:       python-six
29d664a
29d664a
### Patches ###
29d664a
0e1913c
# Upstream
0e1913c
29d664a
%description
29d664a
RBTools provides client tools for interacting with a ReviewBoard
29d664a
code-review server.
29d664a
29d664a
%prep
b89e9a0
%setup -q -n %{name}-%{version}
0e1913c
efd52e1
rm -Rf %{name}*.egg-info
29d664a
29d664a
%build
29d664a
%{__python} setup.py build
29d664a
29d664a
29d664a
%install
29d664a
rm -rf $RPM_BUILD_ROOT
29d664a
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
29d664a
29d664a
 
29d664a
%clean
29d664a
rm -rf $RPM_BUILD_ROOT
29d664a
29d664a
29d664a
%files
29d664a
%defattr(-,root,root,-)
29d664a
%doc AUTHORS NEWS README
0b2a0ab
%{_bindir}/rbt
29d664a
%{python_sitelib}/rbtools/
29d664a
%{python_sitelib}/RBTools*.egg-info/
29d664a
29d664a
%changelog
142c31e
* Mon Jan 19 2015 Stephen Gallagher <sgallagh@redhat.com> 0.7-1
142c31e
- New upstream release 0.7
142c31e
- https://www.reviewboard.org/docs/releasenotes/rbtools/0.7/
142c31e
- API Caching for performance enhancements
142c31e
- Support for command aliases
142c31e
- 'rbt land' tool will now handle landing Git commits for upstream
142c31e
- 'rbt post' can now exclude some files (such as autogenerated ones)
142c31e
  from the review
142c31e
- Support for Microsoft Team Foundation Server (when used with
142c31e
  Review Board Power Pack on the server-side
142c31e
13d60ef
* Mon Nov 17 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6.3-2
13d60ef
- Actually apply the "-C" patch
13d60ef
6fc4e4e
* Thu Nov 13 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6.3-1
6fc4e4e
- New upstream release 0.6.3
6fc4e4e
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.6.3/
6fc4e4e
- Include upstream patch adding 'rbt patch -C' to automatically commit a patch
6fc4e4e
  to a local git repository.
6fc4e4e
09e62b0
* Mon Jul 07 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6.2-1
09e62b0
- New upstream release 0.6.2
09e62b0
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.6.2/
09e62b0
899c923
* Tue Jun 10 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6.1-1
899c923
- New upstream release 0.6.1
899c923
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.6.1/
899c923
d9c5bc2
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
d9c5bc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
899c923
0e1913c
* Mon May 19 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6-2
0e1913c
- Properly generate parent diffs in git
0e1913c
- Switch to fuzzy search in setup-repo to match repository path
0e1913c
- Fix perforce options access
0e1913c
- Fix -I with svn repositories
0e1913c
ef81286
* Tue Apr 08 2014 Stephen Gallagher <sgallagh@redhat.com> 0.6-1
ef81286
- New upstream release 0.6
ef81286
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.6/
ef81286
719f06d
* Wed Feb 05 2014 Stephen Gallagher <sgallagh@redhat.com> 0.5.7-1
719f06d
- New upstream release 0.5.7
719f06d
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.7/
719f06d
- New upstream release 0.5.6
719f06d
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.6/
719f06d
d9b9b5c
* Wed Jan 15 2014 Stephen Gallagher <sgallagh@redhat.com> 0.5.5-1
d9b9b5c
- New upstream release 0.5.5
d9b9b5c
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.5/
d9b9b5c
- New upstream release 0.5.4
d9b9b5c
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.4/
d9b9b5c
- Deprecation:
d9b9b5c
  * post-review is deprecated (and has been for a while). It now shows a
d9b9b5c
    deprecation warning in order to remind me to use rbt post.
d9b9b5c
- Bug Fixes:
d9b9b5c
  * rbt patch:
d9b9b5c
    * rbt patch no longer fails to commit on Git if there are untracked files.
d9b9b5c
    * Fixed committing changes when the description has unicode characters.
d9b9b5c
    * Fixed compatibility with Review Board 2.0 beta.
d9b9b5c
  * rbt post:
d9b9b5c
    * Fixed R1:R2 syntax for --revision-range for Git repositories.
d9b9b5c
    * Fixed name-based lookups for repositories with Subversion.
d9b9b5c
  * rbt setup-repo:
d9b9b5c
    * Fixed error output when failing to write the .reviewboardrc file.
d9b9b5c
  * post-review:
d9b9b5c
    * Added --svn-show-copies-as-adds to post-review.
d9b9b5c
ae820a1
* Mon Jan 06 2014 Stephen Gallagher <sgallagh@redhat.com> - 0.5.3-1
ae820a1
- New upstream release 0.5.3
ae820a1
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.3/
ae820a1
1bba2b5
* Thu Aug 15 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.5.2-1
1bba2b5
- New upstream release 0.5.2
1bba2b5
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.2/
1bba2b5
1e855f4
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
1e855f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1e855f4
be290a8
* Thu May 30 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.5.1-1
be290a8
- New upstream release 0.5.1
be290a8
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5.1/
be290a8
- Drop upstreamed ez_setup patch
be290a8
- New Features:
be290a8
    * Improved the readability of rbt status output
be290a8
    * Added a --repository-type option to most commands
be290a8
    * Added a --list-repository-types option to post-review
be290a8
    * Added a new rbt list-repo-types command
be290a8
    * Third-parties can now write new SCM support by creating Python packages
be290a8
      leveraging Python entry points
be290a8
- API Client Changes:
be290a8
    * Added an API Client method for retrieving resources from a path
be290a8
    * Add a get_or_create_draft method to the API
be290a8
    * Restructured the API Client internally
be290a8
- Bug Fixes:
be290a8
    * Fixed crash when copying old post-review cookies for use with rbt
be290a8
    * rbt commands will now properly generate diffs with moved files
be290a8
    * Fixed references to non-existent variables in rbt patch
be290a8
    * Fixed rbt post for Perforce repositories
be290a8
    * Fixed rbt post and rbt diff for Subversion and Bazaar
be290a8
    * Fixed post-review and rbt when used for Perforce paths
be290a8
    * Fixed error handling when posting a review request
be290a8
- Packaging Changes:
be290a8
    * Conditionalize ez_setup
be290a8
0b2a0ab
* Tue Mar 19 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.5-1
0b2a0ab
- New upstream release 0.5
0b2a0ab
- http://www.reviewboard.org/docs/releasenotes/rbtools/0.5/
0b2a0ab
- New Features:
0b2a0ab
    * API Client
0b2a0ab
        * A new Python API Client has been introduced for communication with
0b2a0ab
          the Review Board Web API
0b2a0ab
    * rbt
0b2a0ab
        * This is the initial release of our new command line tool, rbt
0b2a0ab
        * Provides access to useful sub-commands which interact with local
0b2a0ab
          source code repositories and Review Board
0b2a0ab
        * Currently considered beta
0b2a0ab
        * See release notes link for detailed information
0b2a0ab
- Bug Fixes
0b2a0ab
    * Perforce:
0b2a0ab
        * Fix treating an SVN repository as Perforce by mistake
0b2a0ab
        * Fix diff generation with unedited files in Perforce
0b2a0ab
        * Gracefully handle no-match in p4 info regex
0b2a0ab
    * ClearCase:
0b2a0ab
        * Support posting review requests in ClearCase snapshot view
0b2a0ab
    Subversion:
0b2a0ab
        * Don’t block waiting for user input from svn
0b2a0ab
efd52e1
* Mon Jan 28 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.4.3-1
efd52e1
- New upstream release 0.4.3
efd52e1
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.4.3/
efd52e1
- New Features:
efd52e1
    * Added support for posting from Bazaar repositories
efd52e1
    * Passing --basedir to post-review will override the computed base
efd52e1
      directory used for Subversion diffs
efd52e1
    * Added better support for moved files in Perforce
efd52e1
- Bug Fixes:
efd52e1
    * General:
efd52e1
      * Fixed problems authenticating with the server when anonymous access is
efd52e1
        disabled
efd52e1
      * Fixed loading settings from the user’s ~/.reviewboardrc when it’s the
efd52e1
        only .reviewboardrc in the search path
efd52e1
      * Fixed a crash when the user’s home directory isn’t writable
efd52e1
      * Added a fallback when failing to get the API version from a Review
efd52e1
        Board server
efd52e1
      * The "Username" prompt is now printed to stderr instead of stdout, to
efd52e1
        match the “Password” prompt’s inputted text
efd52e1
      * Unicode URLs are now encoded as UTF-8, preventing an encoding conflict
efd52e1
        when talking to Review Board
efd52e1
    * Git:
efd52e1
      * Git diffs no longer contain move/rename information if the Review Board
efd52e1
        server doesn’t support it
efd52e1
    * Mercurial:
efd52e1
      * Fixed --guess-summary when it has newline characters in it
efd52e1
    * Subversion:
efd52e1
      * Fixed problems generating diffs containing deleted files
efd52e1
9c6eb6f
* Fri Nov 16 2012 - Stephen Gallagher <sgallagh@redhat.com> - 0.4.2-1
9c6eb6f
- New upstream release 0.4.2
9c6eb6f
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.4.2/
9c6eb6f
- New Features:
9c6eb6f
-  * The .post-review-cookies.txt file is now made readable only by the calling
9c6eb6f
     user, improving security
9c6eb6f
-  * Improved debug output
9c6eb6f
-  * Updated our Plastic support for Plastic 4.0. This is no longer
9c6eb6f
     compatible with previous versions
9c6eb6f
-  * A revision to diff against can now be specified when using hgsubversion
9c6eb6f
- Bug Fixes:
9c6eb6f
-  * General:
9c6eb6f
-    * Using UTF-8 in the summary or description no longer breaks
9c6eb6f
-    * The GNU diff error no longer mentions Subversion specifically
9c6eb6f
-    * Posting a diff to a submitted review request now displays an error
9c6eb6f
       instead of reopening the review request
9c6eb6f
-  * Clearcase:
9c6eb6f
-    * Fixed base path generation for Clear Case
9c6eb6f
-  * Git:
9c6eb6f
-    * Fix issues when running post-review within a git submodule with recent
9c6eb6f
       Git revisions
9c6eb6f
-    * Git diffs no longer include diffs from submodules, preventing useless
9c6eb6f
       diffs from being created
9c6eb6f
-    * post-review no longer breaks when run from a detached Git HEAD
9c6eb6f
-  * Mercurial:
9c6eb6f
-    * Fixed bailing on harmless warnings when running hg commands
9c6eb6f
-    * Fixed path calculation for hgsubversion when the path contains a
9c6eb6f
       username
9c6eb6f
-  * Subversion:
9c6eb6f
-    * Scanning for the right repository is much faster now when there are lots
9c6eb6f
       of Subversion repositories on the server
9c6eb6f
-    * Fix handling of revisions with deleted files for Subversion
9c6eb6f
-    * Handle modifications inside moved/copied directories for Subversion
9c6eb6f
18d75a4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
18d75a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
18d75a4
f294f52
* Wed Feb 29 2012 - Stephen Gallagher <sgallagh@redhat.com> - 0.4.1-1
f294f52
- New upstream release 0.4.1
f294f52
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.4.1/
f294f52
- Fixed Python 2.4 compatibility
f294f52
- Fixed --diff-filename=- with --username and --password
f294f52
6d9b431
* Mon Feb 27 2012 - Stephen Gallagher <sgallagh@redhat.com> - 0.4.0-1
6d9b431
- New upstream release 0.4.0
6d9b431
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.4/
6d9b431
- Features (post-review):
6d9b431
-   Defaults for many parameters can now be specified in .reviewboardrc
6d9b431
-   Added a --disable-proxy option for disabling the HTTP(S) proxy server
6d9b431
- Bugfixes (post-review):
6d9b431
-   Fixed authentication problems when accessing the API
6d9b431
-   Shows a nicer error when trying to update someone else's review request
6d9b431
-   Fixed crashes when the home directory wasn’t writable
6d9b431
-   Fixed using --diff-filename=- without a valid cookie
6d9b431
-   Fixed the link to the Repository Configurations documentation
6d9b431
- Bugfixes (Git):
6d9b431
-   Fixed problems when using --repository-url
6d9b431
- Bugfixes (Mercurial):
6d9b431
-   Make Mercurial handle the case where there are no outgoing changes
6d9b431
-   Improve merge support in order to generate better diffs
6d9b431
- Bugfixes (Perforce):
6d9b431
-   Using --revision-range on Perforce now provides better errors
6d9b431
-   Display an informative error if GNU diff isn’t installed
6d9b431
-   Fix handling of new files in post-commit scenarios
6d9b431
c86914c
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
c86914c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c86914c
46d92c0
* Tue Sep 27 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.3.4-1
46d92c0
- New upstream 0.3.4 release
46d92c0
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.3.4/
46d92c0
- New Features:
46d92c0
-   post-review:
46d92c0
-     Added a --change-description option for setting the Change Description
46d92c0
      text on drafts
46d92c0
- Bugfixes:
46d92c0
-   post-review:
46d92c0
-     Newlines in summaries on Git are now converted to spaces, preventing
46d92c0
      errors when using --guess-summary
46d92c0
-     Fixed authentication failures when accessing a protected /api/info/
46d92c0
      URL. This was problematic particularly on RBCommons
46d92c0
-     Fixed diff upload problems on Python 2.7
46d92c0
c7185d9
* Mon Aug 22 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.3.3-1
c7185d9
- New upstream 0.3.3 release
c7185d9
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.3.3/
c7185d9
- Notable Changes:
c7185d9
-   Rewrote the Clear Case implementation to be cleaner, more maintainable,
c7185d9
    and less buggy
c7185d9
- New Features:
c7185d9
-   post-review:
c7185d9
-      Added --http-username and --http-password for providing defaults for
c7185d9
       Basic HTTP Authentication
c7185d9
-   Clear Case:
c7185d9
-      Added proper support for --tracking-branch and --revision-range
c7185d9
-      Clear Case configuration has moved to .reviewboardrc
c7185d9
-   Git:
c7185d9
-      Added automatic parent diff determination when using --revision-range
c7185d9
-      Added support for working against bare repositories when using
c7185d9
       --revision-range
c7185d9
-      Enhanced --revision-range to take any valid Git revisions
c7185d9
-      Support --repository-url for overriding the git origin URL
c7185d9
-   Mercurial:
c7185d9
-      Added support for --guess-summary and --guess-description
c7185d9
-      Allow a single revision to be passed to --revision-range
c7185d9
-   Subversion:
c7185d9
-      Added support for --svn-changelist for specifying SVN changelists
c7185d9
- Bug Fixes:
c7185d9
-   post-review:
c7185d9
-      Fixed authentication problems with some versions of Review Board
c7185d9
-   Clear Case:
c7185d9
-      The view is properly recognized
c7185d9
-      Removed the dependency on xargs and cygwin
c7185d9
-      Fixed breakages with binary files
c7185d9
-      Removed support for --label, which was useless
c7185d9
-      Running just post-review will now produce a working diff of checked
c7185d9
       out files
c7185d9
-      Diffs generate properly now under Windows
c7185d9
-      The diffs no longer hard-code a fake date, but instead use the real
c7185d9
       time/date of the file
c7185d9
-      Files that were renamed no longer breaks the diff. OID/UUIDs are used
c7185d9
       instead of file paths
c7185d9
-      Fixed diff generation to use the diff program instead of hand-crafting
c7185d9
       the diffs
c7185d9
-      Running with --revision-range with paths that don't exist no longer
c7185d9
       produces unreadable IOException errors
c7185d9
-   Git:
c7185d9
-      Use real URLs when using git prefixes
c7185d9
-      Fixed compatibility with versions of Git older than 1.6
c7185d9
-      Added compatibility with msysgit
c7185d9
-      The correct SVN remote tracking branch is now used for git-svn
c7185d9
       repositories
c7185d9
-   Mercurial:
c7185d9
-      Fixed an error when posting inside a Mercurial branch
c7185d9
-   Perforce:
c7185d9
-      Fixed Review Board version detection when checking for Perforce
c7185d9
       changeset support. This forced usage of the old API, preventing the new
c7185d9
       API from being used, which prevented usage with Review Board 1.6
c7185d9
-   Subversion:
c7185d9
-      Lines starting with --- and +++ in diffs that aren't diff control lines
c7185d9
       no longer results in broken diffs
c7185d9
0ccf9bf
* Wed Feb 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.3.2-1
0ccf9bf
- New upstream 0.3.2 release
0ccf9bf
- Fixed using Perforce change numbers with Review Board 1.5.2
0ccf9bf
- Fixed parsing CVSROOTs with :ext: schemes not containing a username
0ccf9bf
- Mercurial no longer takes precedence over Perforce if a valid Mercurial
0ccf9bf
- user configuration is found
0ccf9bf
fa6ea65
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
fa6ea65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fa6ea65
c3e3255
* Mon Feb 07 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.3.1-1
272f463
- New upstream 0.3.1 release
272f463
- Added a .reviewboardrc setting for specifying the repository to use
272f463
- Fixed a crash when using the old, deprecated API and accessing an existing
272f463
- review request
272f463
6b69cf3
* Tue Feb 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.3-1
6b69cf3
- New upstream release
6b69cf3
- Support for new ReviewBoard 1.5.x API
6b69cf3
- Support for Plastic SCM
6b69cf3
- Full release notes:
6b69cf3
- http://www.reviewboard.org/docs/releasenotes/dev/rbtools/0.3/
6b69cf3
e231f18
* Fri Jul 30 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.2-6
e231f18
- Rebuild for python 2.7
e231f18
da1d46d
* Mon Apr 19 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.2-5
b89e9a0
- Update to 0.2 final release
b89e9a0
29d664a
* Tue Apr 06 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.2-3.rc1
29d664a
- Add runtime requirement for python-setuptools
29d664a
29d664a
* Mon Apr 05 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.2-2.rc1
29d664a
- Remove git-patchset patch
29d664a
- Add patch to check for GNU diff
29d664a
- Add patch to give more useful error messages on failure
29d664a
29d664a
* Mon Mar 15 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.2-1.rc1
29d664a
- Import upstream release 0.2rc1
29d664a
- Add patches from upstream
29d664a
- Add patch to support git patchsets