658c2bf
%if 0%{?fedora}
9b467d0
%bcond_without python3
268ef76
%else
268ef76
# in epel7, there's no default for _pkgdocdir
268ef76
%global _pkgdocdir %{_defaultdocdir}/%{name}
9b467d0
%endif
9b467d0
7481f0e
%bcond_with gedit
d428f9f
7481f0e
%global sum Graphical user interface to version control systems
f9c272e
7481f0e
Name:           rabbitvcs
523d424
Version:        0.17.1
724d723
Release:        1%{?dist}.1
f9c272e
Summary:        %{sum}
7481f0e
86f488e
License:        GPLv2+
7481f0e
URL:            http://rabbitvcs.org
69ca731
Source0:        https://github.com/rabbitvcs/rabbitvcs/archive/v%{version}/rabbitvcs-%{version}.tar.gz
f9c272e
7481f0e
Patch0:         rabbitvcs-ignore-post-install.patch
f9c272e
f9c272e
BuildArch:      noarch
f9c272e
bbbe3c0
BuildRequires:  pygtk2-devel
86f488e
BuildRequires:  python2-devel
9b467d0
%if 0%{?fedora}
f9c272e
BuildRequires:  python3-gobject
f9c272e
BuildRequires:  python3-devel
09b6ebc
%endif
f9c272e
86f488e
%description
86f488e
RabbitVCS is a set of graphical tools written to provide simple
86f488e
and straightforward access to the version control systems you use.
86f488e
bbbe3c0
%package        core
f9c272e
Summary:        Common package of RabbitVCS
86f488e
Requires:       meld
f9c272e
Requires:       git
f9c272e
Requires:       mercurial
86f488e
Requires:       subversion
d428f9f
# rhbz#1226816 - Gedit plugin not working with Gedit later than version 3.12
d428f9f
%if %{without gedit}
7481f0e
Obsoletes:      rabbitvcs-gedit < %{version}-%{release}
d428f9f
%endif
86f488e
bbbe3c0
%description    core
f9c272e
Contains files shared between the RabbitVCS extensions.
f9c272e
7481f0e
%package -n python2-rabbitvcs
f9c272e
Summary:        %{sum}
7481f0e
%{?python_provide:%python_provide python2-rabbitvcs}
f9c272e
Requires:       %{name}-core = %{version}-%{release}
f9c272e
Requires:       python2-configobj
7481f0e
Requires:       python2-dulwich
7481f0e
Requires:       python2-simplejson
f9c272e
Requires:       pygtk2-libglade
f9c272e
Requires:       pysvn
724d723
Requires:       tkinter
f9c272e
7481f0e
%description -n python2-rabbitvcs
f9c272e
RabbitVCS is a set of graphical tools written to provide simple
f9c272e
and straightforward access to the version control systems you use.
f9c272e
9b467d0
%if %{with python3}
7481f0e
%package -n python3-rabbitvcs
f9c272e
Summary:        %{sum}
7481f0e
%{?python_provide:%python_provide python3-rabbitvcs}
f9c272e
Requires:       %{name}-core = %{version}-%{release}
f9c272e
Requires:       python3-configobj
f9c272e
Requires:       python3-dulwich
f9c272e
Requires:       python3-gobject
f9c272e
Requires:       python3-pysvn
7481f0e
Requires:       python3-simplejson
7481f0e
Requires:       python3-tkinter
f9c272e
7481f0e
%description -n python3-rabbitvcs
f9c272e
RabbitVCS is a set of graphical tools written to provide simple
f9c272e
and straightforward access to the version control systems you use.
9b467d0
%endif
bbbe3c0
bbbe3c0
%package        cli
bbbe3c0
Summary:        CLI extension for RabbitVCS
86f488e
BuildArch:      noarch
f9c272e
Requires:       %{name}-core = %{version}-%{release}
86f488e
bbbe3c0
%description    cli
f9c272e
A command line command to use RabbitVCS
f9c272e
f9c272e
%package        caja
f9c272e
Summary:        Caja extension for RabbitVCS
f9c272e
# caja needs python2 for plugins
7481f0e
Requires:       python2-rabbitvcs = %{version}-%{release}
f9c272e
Requires:       caja
f9c272e
Requires:       python-caja
f9c272e
Requires:       dbus-python
f9c272e
f9c272e
%description    caja
f9c272e
An extension for Caja to allow better integration with the 
f9c272e
source control system.
86f488e
bbbe3c0
%package        nautilus
86f488e
Summary:        Nautilus extension for RabbitVCS
f9c272e
# nautilus needs python2 for plugins
7481f0e
Requires:       python2-rabbitvcs = %{version}-%{release}
86f488e
Requires:       nautilus
bbbe3c0
Requires:       nautilus-python
86f488e
Requires:       dbus-python
86f488e
bbbe3c0
%description    nautilus
f9c272e
An extension for Nautilus to allow better integration with the 
f9c272e
source control system.
f9c272e
f9c272e
%package        nemo
f9c272e
Summary:        Nemo extension for RabbitVCS
f9c272e
# nemo needs python2 for plugins
7481f0e
Requires:       python2-rabbitvcs = %{version}-%{release}
f9c272e
Requires:       nemo
f9c272e
Requires:       nemo-python
f9c272e
Requires:       dbus-python
f9c272e
f9c272e
%description    nemo
f9c272e
An extension for Nemo to allow better integration with the 
f9c272e
source control system.
86f488e
bbbe3c0
%package        thunar
e93776a
Summary:        Thunar extension for RabbitVCS
f9c272e
# thunar needs python2 for plugins
7481f0e
Requires:       python2-rabbitvcs = %{version}-%{release}
bbbe3c0
Requires:       thunar
bbbe3c0
Requires:       thunarx-python
bbbe3c0
Requires:       dbus-python
86f488e
bbbe3c0
%description    thunar
e93776a
An extension for Thunar to allow better integration with the 
f9c272e
source control system.
86f488e
9b467d0
%if %{with gedit}
bbbe3c0
%package        gedit
86f488e
Summary:        Gedit extension for RabbitVCS
f9c272e
# gedit needs python3 for plugins
7481f0e
Requires:       python3-rabbitvcs = %{version}-%{release}
86f488e
Requires:       gedit
86f488e
bbbe3c0
%description    gedit
f9c272e
An extension for Gedit to allow better integration with the 
f9c272e
source control system.
9b467d0
%endif
f9c272e
86f488e
%prep
7481f0e
%autosetup -p1
86f488e
86f488e
%build
f9c272e
%py2_build
9b467d0
%if %{with python3}
f9c272e
%py3_build
9b467d0
%endif
86f488e
86f488e
%install
f9c272e
%py2_install
9b467d0
%if %{with python3}
f9c272e
%py3_install
9b467d0
%endif
7481f0e
install -p -m0755 clients/cli/rabbitvcs -D %{buildroot}%{_bindir}/rabbitvcs
9b467d0
%if %{with gedit}
7481f0e
install -p -m0644 clients/gedit/rabbitvcs-plugin.py -D %{buildroot}%{_datadir}/gedit/plugins/rabbitvcs-plugin.py
7481f0e
install -p -m0644 clients/gedit/rabbitvcs-gedit3.plugin -D %{buildroot}%{_datadir}/gedit/plugins/rabbitvcs.plugin
9b467d0
%endif
f9c272e
install -p -m0644 clients/caja/RabbitVCS.py -D %{buildroot}%{_datadir}/caja-python/extensions/RabbitVCS.py
f9c272e
install -p -m0644 clients/nautilus-3.0/RabbitVCS.py -D %{buildroot}%{_datadir}/nautilus-python/extensions/RabbitVCS.py
f9c272e
install -p -m0644 clients/nemo/RabbitVCS.py -D %{buildroot}%{_datadir}/nemo-python/extensions/RabbitVCS.py
f9c272e
install -p -m0644 clients/thunar/RabbitVCS.py -D %{buildroot}%{_datadir}/thunarx-python/extensions/RabbitVCS.py
86f488e
7481f0e
%find_lang RabbitVCS
f9c272e
86f488e
%post core
86f488e
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
86f488e
86f488e
%postun core
86f488e
if [ $1 -eq 0 ] ; then
86f488e
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
86f488e
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
86f488e
fi
86f488e
86f488e
%posttrans core
86f488e
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
86f488e
bbbe3c0
%files -f RabbitVCS.lang core
f9c272e
%license COPYING
f9c272e
%{_pkgdocdir}/
7481f0e
%{_datadir}/rabbitvcs/
188d310
%{_datadir}/icons/hicolor/16x16/actions/rabbitvcs-push.png
86f488e
%{_datadir}/icons/hicolor/scalable/*/*.svg
86f488e
7481f0e
%files -n python2-rabbitvcs
f9c272e
%{python2_sitelib}/*
f9c272e
9b467d0
%if %{with python3}
7481f0e
%files -n python3-rabbitvcs
f9c272e
%{python3_sitelib}/*
9b467d0
%endif
86f488e
bbbe3c0
%files cli
7481f0e
%{_bindir}/rabbitvcs
86f488e
9b467d0
%if %{with gedit}
86f488e
%files gedit
f9c272e
%{_datadir}/gedit/plugins/*.py*
f9c272e
%{_datadir}/gedit/plugins/*.plugin
09b6ebc
%endif
f9c272e
f9c272e
%files caja
f9c272e
%{_datadir}/caja-python/extensions/*.py*
86f488e
bbbe3c0
%files nautilus
f9c272e
%{_datadir}/nautilus-python/extensions/*.py*
f9c272e
f9c272e
%files nemo
f9c272e
%{_datadir}/nemo-python/extensions/*.py*
bbbe3c0
bbbe3c0
%files thunar
f9c272e
%{_datadir}/thunarx-python/extensions/*.py*
86f488e
707c12b
%changelog
724d723
* Mon Sep 18 2017 Pete Walter <pwalter@fedoraproject.org> - 0.17.1-1.1
724d723
- Fix tkinter requires on F25
724d723
523d424
* Tue Aug 15 2017 Pete Walter <pwalter@fedoraproject.org> - 0.17.1-1
523d424
- Update to 0.17.1
523d424
69ca731
* Mon Aug 14 2017 Pete Walter <pwalter@fedoraproject.org> - 0.17-1
69ca731
- Update to 0.17
69ca731
a97f152
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-0.8.20160108gite8214e6
a97f152
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a97f152
c73f8a4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-0.7.20160108gite8214e6
c73f8a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c73f8a4
523d906
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.16.1-0.6.20160108gite8214e6
523d906
- Rebuild for Python 3.6
523d906
6511e62
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-0.5.20160108gite8214e6
6511e62
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6511e62
6be2135
* Mon Feb 15 2016 Raphael Groner <projects.rg@smart.ms> - 0.16.1-0.4.20160108gite8214e6
6be2135
- add Tkinter as dependency for python-six, rhbz#1304642
6be2135
f0fe8be
* Wed Feb 03 2016 Raphael Groner <projects.rg@smart.ms> - 0.16.1-0.3.20160108gite8214e6
268ef76
- fix build conditional for epel7
f0fe8be
d428f9f
* Wed Feb 03 2016 Raphael Groner <projects.rg@smart.ms> - 0.16.1-0.2.20160108gite8214e6
d428f9f
- add patch to fix import urlparse in python3
d428f9f
- workaround for a bug in modernize tool with boolean
d428f9f
- disable b0rken gedit plugin, rhbz#1226816
f977938
f9c272e
* Sat Jan 30 2016 Raphael Groner <projects.rg@smart.ms> - 0.16.1-0.1.20160108gite8214e6
f9c272e
- new upstream snapshot as pre-release
f9c272e
- port to python3
f9c272e
- mark all as noarch and adjust plugins pathes
f9c272e
- enable debuginfo
f9c272e
- add git and mercurial as dependencies
f9c272e
- fix some crashes with log command, rhbz#1141530
f9c272e
- fix vcs status features, rhbz#1083043
f9c272e
- enable caja plugin, rhbz#1096162
f9c272e
- make gedit plugin work, rhbz#1226816
f9c272e
- add nemo plugin
f9c272e
b3b56ea
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-4
b3b56ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b3b56ea
7974b76
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
7974b76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7974b76
804cb65
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
804cb65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
804cb65
bbbe3c0
* Mon Mar 03 2014 Christopher Meng <rpm@cicku.me> - 0.16-1
bbbe3c0
- Update to 0.16
bbbe3c0
e5a4d09
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.0.5-4
e5a4d09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5a4d09
fb6bfe4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.0.5-3
fb6bfe4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fb6bfe4
14985d7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.0.5-2
14985d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
14985d7
188d310
* Sun Mar 11 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.15.0.5-1
188d310
- Updated to 0.15.0.5, BZ 760682.
188d310
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
188d310
- tar.gz → tar.bz2
188d310
- Adjusted the paths for Gnome 3
188d310
- Re-added Group, Jon Ciesla limburgher@gmail.com
188d310
ff13ed2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.2.1-4
ff13ed2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ff13ed2
dd0a313
* Wed Sep 21 2011 Juan Rodriguez <nushio@fedoraproject.org> - 0.14.2.1-3
dd0a313
- Adds a dependency to python-dulwich so the git plugin can work
707c12b
- Removes rabbitvcs-git and rabbitvcs-svn
dd0a313
6e5fa39
* Tue Sep 13 2011 Juan Rodriguez <nushio@fedoraproject.org> - 0.14.2.1-2
6e5fa39
- Removes Nautilus dependency on rabbitvcs-core
6e5fa39
e93776a
* Tue Sep 13 2011 Juan Rodriguez <nushio@fedoraproject.org> - 0.14.2.1-1
e93776a
- Updated package to 0.14.2.1
e93776a
- Added Thunar Plugin
e93776a
3195500
* Mon Feb 14 2011 Juan Rodriguez <nushio@fedoraproject.org> - 0.14.1.1-1
3195500
- Updated Package to 0.14.1.1
3195500
- Lots of speed improvements. 
3195500
- Git and SVN support separated and are now optional
3195500
- Changelog for 0.14.1.1: http://blog.rabbitvcs.org/archives/284
3195500
- Changelog for 0.14.1: http://blog.rabbitvcs.org/archives/280
3195500
- Changelog for 0.14: http://blog.rabbitvcs.org/archives/277
3195500
20d2c58
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.3-3
20d2c58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
20d2c58
2dbd472
* Sat Jul 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.13.3-2
2dbd472
- Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2dbd472
4a72cb8
* Wed Jun 16 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.3-1
4a72cb8
- Fixes a *lot* of bugs
4a72cb8
- No longer forces English as the language
4a72cb8
- Gedit plugin should work now
4a72cb8
ab25d35
* Sun Jun 6 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.2.1-2
ab25d35
- Fixes the package creation
ab25d35
3ea1093
* Sun Jun 6 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.2.1-1
3ea1093
- Fixes a crash left by a debug flag.
3ea1093
7105551
* Mon May 31 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.2-1
7105551
- Updated to version 0.13.2.
7105551
86f488e
* Thu May 27 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.1-3
86f488e
- Now obsoletes rabbitvcs
86f488e
- Fixes svg permission ownage
86f488e
86f488e
* Wed May 26 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.1-2
86f488e
- rabbitvcs-core is now noarch
86f488e
- rabbitvcs-cli is now noarch
86f488e
86f488e
* Wed Apr 28 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13.1-1
86f488e
- Rebased to 13.1
86f488e
86f488e
* Fri Mar 19 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13-2
86f488e
- The split packages are now bundled into a single tarball. 
86f488e
- Changed some requires versions. 
86f488e
- Thunar and NautilusOld packages are no longer being provided. 
86f488e
- Updated Python macros to the newly approved ones
86f488e
- Changed URL, Summary and Descriptions for all packages / subpackages
86f488e
- Package is no longer noarch
86f488e
86f488e
* Thu Feb 11 2010 Juan Rodriguez <nushio@fedoraproject.org> - 0.13-1
86f488e
- Updated RabbitVCS to 0.13
86f488e
- Split packages for nautilus, nautilus-old, thunar, gedit and cli
86f488e
- Requires nautilus-python >= 0.5.2 so 64bit users can use rabbitvcs. 
86f488e
bbbe3c0
* Thu Dec 17 2009 Juan Rodriguez <nushio@fedoraproject.org> - 0.12.1-2
86f488e
- Cleaned up Icon Script
86f488e
- Added AUTHORS, COPYING and MAINTAINERS
86f488e
86f488e
* Tue Dec 1 2009 Juan Rodriguez <nushio@fedoraproject.org> - 0.12.1-1
86f488e
- Updated to RabbitVCS 0.12.1
86f488e
- Added SSL Client Cert prompt 
86f488e
- Updated "previous log message" UI behaviour
86f488e
- Updated locale detection
86f488e
- Improvements for packaging scripts
86f488e
86f488e
* Sat Oct 3 2009 Juan Rodriguez <nushio@fedoraproject.org> - 0.12-1
86f488e
- Renamed from NautilusSVN to RabbitVCS to match upstream. 
86f488e
- Calls gtk-update-icon-cache to regenerate the icon cache