6e2f0cc
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6e2f0cc
# Pure python package
6e2f0cc
%define debug_package %{nil} 
6e2f0cc
6e2f0cc
Name:           tortoisehg
4f20da6
Version:        1.1.10
b8a4642
Release:        1%{?dist}
6e2f0cc
Summary:        Mercurial GUI command line tool hgtk
6e2f0cc
Group:          Development/Tools
6e2f0cc
License:        GPLv2
28ca770
# - few files are however under the more permissive GPLv2+
28ca770
URL:            http://tortoisehg.bitbucket.org/
a088114
Source0:        http://bitbucket.org/tortoisehg/targz/downloads/tortoisehg-%{version}.tar.gz
6e2f0cc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28ca770
# This package _is_ noarch, but that isn't possible because the nautilus
28ca770
# subpackage has to be arch-specific:
6e2f0cc
# BuildArch:    noarch
6e2f0cc
BuildRequires:  python-devel, gettext, python-sphinx
01f4b8c
Requires:       python-iniparse, mercurial >= 1.6, gnome-python2-gconf
9af0842
Requires:       pygtk2, gnome-python2-gtkspell
6e2f0cc
6e2f0cc
%description
6e2f0cc
This package contains the hgtk command line tool, which provides a graphical
6e2f0cc
user interface to the Mercurial distributed revision control system. 
6e2f0cc
6e2f0cc
%package        nautilus
6e2f0cc
Summary:        Mercurial GUI plugin to Nautilus file manager 
6e2f0cc
Group:          Development/Tools
6e2f0cc
Requires:       %{name} = %{version}-%{release}, nautilus-python
6e2f0cc
6e2f0cc
%description    nautilus
6e2f0cc
This package contains the TortoiseHg Gnome/Nautilus extension, which makes the
6e2f0cc
Mercurial distributed revision control system available in the file manager
6e2f0cc
with a graphical interface. 
6e2f0cc
407fcac
Note that the nautilus extension has been deprecated upstream.
407fcac
6e2f0cc
%prep
28ca770
%setup -q
6e2f0cc
6e2f0cc
# Fedora Nautilus python extensions lives in lib64 on x86_64 (https://bugzilla.redhat.com/show_bug.cgi?id=509633) ...
6e2f0cc
%{__sed} -i "s,lib/nautilus,%{_lib}/nautilus,g" setup.py
6e2f0cc
6e2f0cc
cat > tortoisehg/util/config.py << EOT
6e2f0cc
bin_path     = "%{_bindir}"
6e2f0cc
license_path = "%{_docdir}/%{name}-%{version}/COPYING.txt"
6e2f0cc
locale_path  = "%{_datadir}/locale"
6e2f0cc
icon_path    = "%{_datadir}/pixmaps/tortoisehg/icons"
6e2f0cc
nofork       = True
6e2f0cc
EOT
6e2f0cc
6e2f0cc
%build
6e2f0cc
%{__python} setup.py build
6e2f0cc
6e2f0cc
(cd doc && make html)
6e2f0cc
rm doc/build/html/.buildinfo
6e2f0cc
6e2f0cc
%install
6e2f0cc
rm -rf $RPM_BUILD_ROOT
6e2f0cc
6e2f0cc
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
6e2f0cc
6e2f0cc
install -m 644 -D contrib/_hgtk $RPM_BUILD_ROOT/%{_datadir}/zsh/site-functions/_hgtk
6e2f0cc
6e2f0cc
%find_lang %{name}
6e2f0cc
6e2f0cc
%clean
6e2f0cc
rm -rf $RPM_BUILD_ROOT
6e2f0cc
6e2f0cc
%files -f %{name}.lang
6e2f0cc
6e2f0cc
%defattr(-,root,root,-)
9af0842
%doc COPYING.txt doc/build/html/
6e2f0cc
%{_bindir}/hgtk
6e2f0cc
%{python_sitelib}/tortoisehg/
6e2f0cc
%{python_sitelib}/tortoisehg-*.egg-info
6e2f0cc
%{_datadir}/pixmaps/tortoisehg/
6e2f0cc
6e2f0cc
# /usr/share/zsh/site-functions/ is owned by zsh package which we don't want to
6e2f0cc
# require. We also don't want to create a sub-package just for this dependency.
6e2f0cc
# Instead we just claim ownership of the zsh top folder ...
6e2f0cc
%{_datadir}/zsh
6e2f0cc
6e2f0cc
%files nautilus
6e2f0cc
%defattr(-,root,root,-)
6e2f0cc
%{_libdir}/nautilus/extensions-2.0/python/nautilus-thg.py*
6e2f0cc
6e2f0cc
%changelog
4f20da6
* Sun Mar 20 2011 Mads Kiilerich <mads@kiilerich.com> - 1.1.10-1
4f20da6
- tortoisehg-1.1.10
4f20da6
05826ba
* Thu Feb 03 2011 Mads Kiilerich <mads@kiilerich.com> - 1.1.9.1-1
05826ba
- tortoisehg-1.1.9.1
05826ba
ac50629
* Wed Feb 02 2011 Mads Kiilerich <mads@kiilerich.com> - 1.1.9-1
ac50629
- tortoisehg-1.1.9
ac50629
fca1522
* Sun Jan 02 2011 Mads Kiilerich <mads@kiilerich.com> - 1.1.8-1
fca1522
- tortoisehg-1.1.8
fca1522
5ccdd51
* Thu Dec 02 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.7-1
5ccdd51
- tortoisehg-1.1.7
5ccdd51
6f66d18
* Tue Nov 16 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.6.1-1
6f66d18
- tortoisehg-1.1.6.1
6f66d18
b8a4642
* Tue Nov 16 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.6-1
b8a4642
- tortoisehg-1.1.6
b8a4642
5beccd7
* Sun Nov 07 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.5-1
5beccd7
- tortoisehg-1.1.5
5beccd7
71edebf
* Fri Aug 27 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.3-1
71edebf
- tortoisehg-1.1.3
71edebf
407fcac
* Sun Aug  8 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.2-1
407fcac
- tortoisehg-1.1.2
407fcac
216fc5d
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.1-2
216fc5d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
216fc5d
01f4b8c
* Tue Jul 13 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1.1-1
01f4b8c
- tortoisehg-1.1.1 with minor bugfixes
01f4b8c
- requires mercurial-1.6
01f4b8c
9fb8084
* Fri Jul 02 2010 Mads Kiilerich <mads@kiilerich.com> - 1.1-1
9fb8084
- tortoisehg-1.1
9fb8084
- Still requires Mercurial 1.5 but also works with 1.6
9fb8084
4c265d2
* Wed Jun  2 2010 Mads Kiilerich <mads@kiilerich.com> - 1.0.4-1
4c265d2
- New upstream bugfix release 1.0.4
4c265d2
9af0842
* Sun May 16 2010 Mads Kiilerich <mads@kiilerich.com> - 1.0.3-1
9af0842
- New upstream bugfix release 1.0.3
9af0842
- Drop unused dependency gnome-python2-gtksourceview
9af0842
421a080
* Fri Apr  2 2010 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-1
421a080
- New upstream bugfix release 1.0.1
421a080
59a2173
* Sat Mar  6 2010 Mads Kiilerich <mads@kiilerich.com> - 1.0-1
59a2173
- New upstream release 1.0
59a2173
a088114
* Tue Feb  2 2010 Mads Kiilerich <mads@kiilerich.com> - 0.9.3-1
a088114
- New upstream minor release 0.9.3
a088114
a5f8e6c
* Sat Jan  2 2010 Mads Kiilerich <mads@kiilerich.com> - 0.9.2-1
a5f8e6c
- New upstream bugfix release 0.9.2
a5f8e6c
2c4a106
* Thu Dec  3 2009 Mads Kiilerich <mads@kiilerich.com> - 0.9.1.1-1
2c4a106
- tortoisehg-0.9.1.1 - a brown paperbag release
2c4a106
45fc61f
* Thu Dec  3 2009 Mads Kiilerich <mads@kiilerich.com> - 0.9.1-1
45fc61f
- tortoisehg-0.9.1
45fc61f
28ca770
* Wed Nov 18 2009 Mads Kiilerich <mads@kiilerich.com> - 0.9-1
28ca770
- Update to tortoisehg-0.9
28ca770
6e2f0cc
* Mon Nov 16 2009 Mads Kiilerich <mads@kiilerich.com> - 0.9-0.2.hg2525801b8b8d
6e2f0cc
- New upstream snapshot, pretty close to 0.9
6e2f0cc
- First koji upload
6e2f0cc
6e2f0cc
* Tue Oct 20 2009 Mads Kiilerich <mads@kiilerich.com> - 0.9-0.1.hgdc0d0231f39a
6e2f0cc
- Address review comments from Mamoru Tasaka
6e2f0cc
- Rebase to new non-forking upstream version from unreleased stable branch
6e2f0cc
6e2f0cc
* Fri Oct 16 2009 Mads Kiilerich <mads@kiilerich.com> 0.9-0.0.hg7d91c4a48d37
6e2f0cc
- Rebase to snapshot of upstream and adopt new package structure
6e2f0cc
6e2f0cc
* Fri Jul 24 2009 Mads Kiilerich <mads@kiilerich.com> 0.8.1-1
6e2f0cc
- New upstream release where minor fixes has been applied
6e2f0cc
- Remove workarounds no longer needed
6e2f0cc
6e2f0cc
* Mon Jul 20 2009 Mads Kiilerich <mads@kiilerich.com> 0.8-4.6da01818c9ea
6e2f0cc
- Rebase to snapshot of upstream with
6e2f0cc
  - Clarified that license is GPLv2
6e2f0cc
  - .mo files build with gettext
6e2f0cc
  - Local copy of python-iniparse replaced with dependency
6e2f0cc
6e2f0cc
* Mon Jul 6 2009 Mads Kiilerich <mads@kiilerich.com> 0.8-3
6e2f0cc
- Initial package of tortoisehg 0.8