Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

tortoisehg.spec: Minor changes for cleanup and Fedora compliance

Changeset b51c60a7f6e0

Parent 3916edcaf326

by Mads Kiilerich

Changes to one file · Browse files at b51c60a7f6e0 Showing diff from parent 3916edcaf326 Diff from another changeset...

 
8
9
10
 
11
12
 
13
 
 
 
14
15
16
 
32
33
34
35
36
 
 
37
38
39
 
45
46
47
48
49
 
 
50
51
52
 
55
56
57
 
 
58
59
60
61
 
 
62
63
64
65
66
67
68
 
69
70
71
 
8
9
10
11
12
 
13
14
15
16
17
18
19
20
 
36
37
38
 
 
39
40
41
42
43
 
49
50
51
 
 
52
53
54
55
56
 
59
60
61
62
63
64
65
66
 
67
68
69
70
71
72
73
74
 
75
76
77
78
@@ -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 ...