Changeset b51c60a7f6e0…
Parent 3916edcaf326…
by
Changes to one file · Browse files at b51c60a7f6e0 Showing diff from parent 3916edcaf326 Diff from another changeset...
@@ -8,9 +8,13 @@ Summary: Mercurial GUI command line tool hgtk
Group: Development/Tools
License: GPLv2
+# Few files are under the more permissive GPLv2+
URL: http://bitbucket.org/tortoisehg/stable/wiki/
-Source0: tortoisehg-%{version}.tar.gz
+Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# This package should be noarch, but we can't do it because the nautilus
+# subpackage has to be arch-specific (because of lib64)
+# BuildArch: noarch
BuildRequires: python, python-devel, gettext, python-sphinx
Requires: python >= 2.4, python-iniparse, mercurial >= 1.3, gnome-python2-gconf
Requires: gnome-python2-gtksourceview, pycairo, pygobject2, pygtk2 >= 2.10
@@ -32,8 +36,8 @@%prep
%setup -q
-# Fix for nautilus python extensions in lib64 on x86_64
-sed -i "s,lib/nautilus,%{_lib}/nautilus,g" setup.py
+# Fedora Nautilus python extensions lives in lib64 on x86_64 (https://bugzilla.redhat.com/show_bug.cgi?id=509633) ...
+%{__sed} -i "s,lib/nautilus,%{_lib}/nautilus,g" setup.py
cat > tortoisehg/util/config.py << EOT
bin_path = "%{_bindir}"
@@ -45,8 +49,8 @@%build
%{__python} setup.py build
-cd doc
-make html
+(cd doc && make html)
+rm doc/build/html/.buildinfo
%install
rm -rf $RPM_BUILD_ROOT
@@ -55,17 +59,20 @@
install -m 644 -D contrib/_hgtk $RPM_BUILD_ROOT/%{_datadir}/zsh/site-functions/_hgtk
+%find_lang %{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
+
%defattr(-,root,root,-)
%doc COPYING.txt ReleaseNotes.txt doc/build/html/
%{_bindir}/hgtk
%{python_sitelib}/tortoisehg/
%{python_sitelib}/tortoisehg-*.egg-info
%{_datadir}/pixmaps/tortoisehg/
-%{_datadir}/locale/*/LC_MESSAGES/tortoisehg.mo
+
# /usr/share/zsh/site-functions/ is owned by zsh package which we don't want to
# require. We also don't want to create a sub-package just for this dependency.
# Instead we just claim ownership of the zsh top folder ...
|
Loading...