%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: tortoisehg Version: 3.6.2 Release: 5%{?dist} Summary: Mercurial GUI command line tool thg Group: Development/Tools License: GPLv2 # - few files are however under the more permissive GPLv2+ URL: http://tortoisehg.bitbucket.org/ Source0: http://bitbucket.org/tortoisehg/targz/downloads/%{name}-%{version}.tar.gz Source1: tortoisehg.appdata.xml BuildArch: noarch BuildRequires: python-devel, gettext, python-sphinx, PyQt4-devel, desktop-file-utils, libappstream-glib Requires: python-iniparse, mercurial < 3.7 # gconf needed at util/shlib.py for browse_url(url). Requires: gnome-python2-gconf Requires: PyQt4 >= 4.6, qscintilla-python, python-pygments Requires: python-gobject-base %description This package contains the thg command line tool, which provides a graphical user interface to the Mercurial distributed revision control system. %package nautilus Summary: Mercurial GUI plug-in to the Nautilus file manager Group: Development/Tools Requires: %{name} = %{version}-%{release}, nautilus-python %description nautilus This package contains the TortoiseHg Gnome/Nautilus extension, which makes the Mercurial distributed revision control system available in the file manager with a graphical interface. Note that the nautilus extension has been deprecated upstream. %prep %setup -q cat > tortoisehg/util/config.py << EOT bin_path = "%{_bindir}" license_path = "%{_pkgdocdir}/COPYING.txt" locale_path = "%{_datadir}/locale" icon_path = "%{_datadir}/pixmaps/tortoisehg/icons" nofork = True EOT # hack: accept different Mercurial versions #sed -i 's,^\(testedwith =\).*,\1 "3.3 3.4 3.5",g' tortoisehg/util/hgversion.py %build %{__python} setup.py build (cd doc && make html) rm doc/build/html/.buildinfo %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d install contrib/mergetools.rc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/thgmergetools.rc ln -s tortoisehg/icons/scalable/apps/thg.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/thg_logo.svg desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications contrib/thg.desktop install -D %{SOURCE1} -m 644 $RPM_BUILD_ROOT/%{_datadir}/appdata/tortoisehg.appdata.xml %find_lang %{name} %check appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/tortoisehg.appdata.xml %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING.txt doc/build/html/ %{_bindir}/thg %{_datadir}/appdata/tortoisehg.appdata.xml %{python_sitelib}/tortoisehg/ %{python_sitelib}/tortoisehg-*.egg-info %{_datadir}/pixmaps/tortoisehg/ %{_datadir}/pixmaps/thg_logo.svg %{_datadir}/applications/thg.desktop %config(noreplace) %attr(644,root,root) %{_sysconfdir}/mercurial/hgrc.d/thgmergetools.rc %files nautilus %defattr(-,root,root,-) %{_datadir}/nautilus-python/extensions/nautilus-thg.py* %changelog * Sun Feb 07 2016 Mads Kiilerich - 3.6.2-5 - Install tortoisehg.appdata.xml as mode 644 - avoid rmplint 'script-without-shebang' * Fri Feb 05 2016 Fedora Release Engineering - 3.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 01 2016 Mads Kiilerich - 3.6.2-3 - Fix nautilus plugin - add python-gobject-base as dependency - Introduce tortoisehg.appdata.xml with appdata info for GNOME Software * Thu Dec 24 2015 Mads Kiilerich - 3.6.2-2 - support Mercurial 3.6.x in dependencies * Thu Dec 24 2015 Mads Kiilerich - 3.6.2-1 - tortoisehg 3.6.2 * Tue Nov 10 2015 Mads Kiilerich - 3.6-1 - tortoisehg 3.6 * Fri Sep 11 2015 Mads Kiilerich - 3.5.1-1 - tortoisehg 3.5.1 * Sat Aug 15 2015 Mads Kiilerich - 3.5-2 - support Mercurial 3.5 in dependencies too * Sun Aug 09 2015 Mads Kiilerich - 3.5-1 - tortoisehg 3.5 * Fri Jun 19 2015 Fedora Release Engineering - 3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 10 2015 Mads Kiilerich - 3.4-1 - tortoisehg 3.4 * Thu Apr 02 2015 Mads Kiilerich - 3.3.3-1 - tortoisehg 3.3.3 * Mon Mar 16 2015 Mads Kiilerich - 3.3.2-1 - tortoisehg 3.3.2 * Fri Feb 20 2015 Mads Kiilerich - 3.3-3 - actually support Mercurial 3.3 - disable hack * Wed Feb 18 2015 Mads Kiilerich - 3.3-2 - require Mercurial < 3.4 * Thu Feb 12 2015 Mads Kiilerich - 3.3-1 - tortoisehg 3.3 * Thu Feb 12 2015 Mads Kiilerich - 3.2.4-1 - tortoisehg 3.2.4 * Sun Dec 14 2014 Mads Kiilerich - 3.2.1-1 - tortoisehg 3.2.1 * Sun Sep 07 2014 Mads Kiilerich - 3.1.1-1 - tortoisehg 3.1.1 * Sat Aug 09 2014 Mads Kiilerich - 3.1-1 - tortoisehg 3.1 * Sun Jun 08 2014 Fedora Release Engineering - 3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 21 2014 Mads Kiilerich - 3.0-1 - tortoisehg 3.0 * Thu Apr 03 2014 Mads Kiilerich - 2.11.2-1 - tortoisehg 2.11.2 * Wed Mar 05 2014 Mads Kiilerich - 2.11.1-1 - tortoisehg 2.11.1 * Thu Feb 06 2014 Mads Kiilerich - 2.11-1 - tortoisehg 2.11 * Sun Jan 26 2014 Mads Kiilerich - 2.10.2-1 - tortoisehg 2.10.2 * Wed Nov 06 2013 Mads Kiilerich - 2.10-1 - tortoisehg 2.10 * Wed Oct 09 2013 Mads Kiilerich - 2.9.2-1 - tortoisehg 2.9.2 * Mon Sep 09 2013 Mads Kiilerich - 2.9.1-1 - tortoisehg-2.9.1 - .desktop file is now named correctly upstream ... but not in the tar * Wed Aug 07 2013 Mads Kiilerich - 2.9-2 - use %{_pkgdocdir} to get the new path to unversioned doc dir (#993947) * Sun Aug 04 2013 Mads Kiilerich - 2.9-1 - tortoisehg-2.9 - rename desktop file to thg.desktop so it matches WM_CLASS * Sun Aug 04 2013 Fedora Release Engineering - 2.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue May 07 2013 Mads Kiilerich - 2.8-1 - tortoisehg-2.8 * Tue Mar 12 2013 Mads Kiilerich - 2.7.1-2 - support for PyQt-4.10 #920749 * Tue Mar 05 2013 Mads Kiilerich - 2.7.1-1 - tortoisehg-2.7.1 * Mon Feb 04 2013 Mads Kiilerich - 2.7-1 - tortoisehg-2.7 * Fri Jan 04 2013 Mads Kiilerich - 2.6.2-1 - tortoisehg-2.6.2 * Mon Nov 19 2012 Mads Kiilerich - 2.6-1 - tortoisehg-2.6 * Wed Oct 03 2012 Mads Kiilerich - 2.5.1-1 - tortoisehg-2.5.1 * Thu Sep 06 2012 Mads Kiilerich - 2.5-1 - tortoisehg-2.5 * Tue Aug 21 2012 Mads Kiilerich - 2.4.3-1 - tortoisehg-2.4.3 * Sun Aug 19 2012 Mads Kiilerich - 2.4.2-3 - update nautilus-python extension directory - make the package noarch - accept mercurial 2.3 while waiting for a new thg release * Sat Jul 21 2012 Fedora Release Engineering - 2.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jul 08 2012 Mads Kiilerich - 2.4.2-1 - tortoisehg-2.4.2 - fix naming of logo svg * Sat Jun 09 2012 Mads Kiilerich - 2.4.1-1 - tortoisehg-2.4.1 * Sun May 06 2012 Mads Kiilerich - 2.4-1 - tortoisehg-2.4 * Fri May 04 2012 Mads Kiilerich - 2.3.2-2 - pretend compatibility with Mercurial 2.2.x as well - not just 2.2 * Tue Apr 24 2012 Mads Kiilerich - 2.3.2-1 - tortoisehg-2.3.2 * Sat Mar 10 2012 Mads Kiilerich - 2.3.1-1 - tortoisehg-2.3.1 - remove Mercurial 2.1 hack * Thu Feb 16 2012 Mads Kiilerich - 2.3-1 - tortoisehg-2.3 * Wed Jan 25 2012 Mads Kiilerich - 2.2.2-3 - actually apply hack to relax version check so it works with mercurial-2.1 * Wed Jan 25 2012 Mads Kiilerich - 2.2.2-2 - bump Mercurial version requirement to accept mercurial-2.1-1.rc1. tortoisehg-2.2.2 happens to work with the next version of Mercurial anyway. * Wed Jan 11 2012 Mads Kiilerich - 2.2.2-1 - tortoisehg-2.2.2 * Thu Dec 22 2011 Mads Kiilerich - 2.2.1-1 - tortoisehg-2.2.1 * Wed Nov 09 2011 Mads Kiilerich - 2.2-1 - tortoisehg-2.2 * Fri Oct 07 2011 Mads Kiilerich - 2.1.4-2 - the real tortoisehg-2.1.4, not just a stupid proxy * Thu Oct 06 2011 Mads Kiilerich - 2.1.4-1 - tortoisehg-2.1.4 * Sun Aug 28 2011 Mads Kiilerich - 2.1.3-1 - tortoisehg-2.1.3 * Wed Aug 03 2011 Mads Kiilerich - 2.1.2-1 - tortoisehg-2.1.2 * Mon Jul 11 2011 Mads Kiilerich - 2.1.1-1 - tortoisehg-2.1.1 - clarify in requirements that this is intended to work with Mercurial 1.9.x only * Sun Jul 03 2011 Mads Kiilerich - 2.1-1 - tortoisehg-2.1 * Thu Jun 02 2011 Mads Kiilerich - 2.0.5-1 - tortoisehg-2.0.5 * Mon May 02 2011 Mads Kiilerich - 2.0.4-1 - tortoisehg-2.0.4 * Sat Apr 02 2011 Mads Kiilerich - 2.0.3-1 - tortoisehg-2.0.3 * Thu Mar 10 2011 Mads Kiilerich - 2.0.2-1 - tortoisehg-2.0.2 * Thu Mar 10 2011 Mads Kiilerich - 2.0.1-1 - tortoisehg-2.0.1 - require Mercurial 1.8 or later * Thu Mar 03 2011 Mads Kiilerich - 2.0-1 - tortoisehg-2.0 * Wed Feb 09 2011 Fedora Release Engineering - 1.9.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Feb 07 2011 Mads Kiilerich - 1.9.2.4-1 - tortoisehg-1.9.2+4-cff31955a6fa - preparing for the qt based TortoiseHg 2.0 in Fedora 15 * Thu Feb 03 2011 Mads Kiilerich - 1.1.9.1-1 - tortoisehg-1.1.9.1 * Wed Feb 02 2011 Mads Kiilerich - 1.1.9-1 - tortoisehg-1.1.9 * Sun Jan 02 2011 Mads Kiilerich - 1.1.8-1 - tortoisehg-1.1.8 * Thu Dec 02 2010 Mads Kiilerich - 1.1.7-1 - tortoisehg-1.1.7 * Tue Nov 16 2010 Mads Kiilerich - 1.1.6.1-1 - tortoisehg-1.1.6.1 * Tue Nov 16 2010 Mads Kiilerich - 1.1.6-1 - tortoisehg-1.1.6 * Sun Nov 07 2010 Mads Kiilerich - 1.1.5-1 - tortoisehg-1.1.5 * Fri Aug 27 2010 Mads Kiilerich - 1.1.3-1 - tortoisehg-1.1.3 * Sun Aug 8 2010 Mads Kiilerich - 1.1.2-1 - tortoisehg-1.1.2 * Thu Jul 22 2010 David Malcolm - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jul 13 2010 Mads Kiilerich - 1.1.1-1 - tortoisehg-1.1.1 with minor bugfixes - requires mercurial-1.6 * Fri Jul 02 2010 Mads Kiilerich - 1.1-1 - tortoisehg-1.1 - Still requires Mercurial 1.5 but also works with 1.6 * Wed Jun 2 2010 Mads Kiilerich - 1.0.4-1 - New upstream bugfix release 1.0.4 * Sun May 16 2010 Mads Kiilerich - 1.0.3-1 - New upstream bugfix release 1.0.3 - Drop unused dependency gnome-python2-gtksourceview * Fri Apr 2 2010 Mads Kiilerich - 1.0.1-1 - New upstream bugfix release 1.0.1 * Sat Mar 6 2010 Mads Kiilerich - 1.0-1 - New upstream release 1.0 * Tue Feb 2 2010 Mads Kiilerich - 0.9.3-1 - New upstream minor release 0.9.3 * Sat Jan 2 2010 Mads Kiilerich - 0.9.2-1 - New upstream bugfix release 0.9.2 * Thu Dec 3 2009 Mads Kiilerich - 0.9.1.1-1 - tortoisehg-0.9.1.1 - a brown paperbag release * Thu Dec 3 2009 Mads Kiilerich - 0.9.1-1 - tortoisehg-0.9.1 * Wed Nov 18 2009 Mads Kiilerich - 0.9-1 - Update to tortoisehg-0.9 * Mon Nov 16 2009 Mads Kiilerich - 0.9-0.2.hg2525801b8b8d - New upstream snapshot, pretty close to 0.9 - First koji upload * Tue Oct 20 2009 Mads Kiilerich - 0.9-0.1.hgdc0d0231f39a - Address review comments from Mamoru Tasaka - Rebase to new non-forking upstream version from unreleased stable branch * Fri Oct 16 2009 Mads Kiilerich 0.9-0.0.hg7d91c4a48d37 - Rebase to snapshot of upstream and adopt new package structure * Fri Jul 24 2009 Mads Kiilerich 0.8.1-1 - New upstream release where minor fixes has been applied - Remove workarounds no longer needed * Mon Jul 20 2009 Mads Kiilerich 0.8-4.6da01818c9ea - Rebase to snapshot of upstream with - Clarified that license is GPLv2 - .mo files build with gettext - Local copy of python-iniparse replaced with dependency * Mon Jul 6 2009 Mads Kiilerich 0.8-3 - Initial package of tortoisehg 0.8