Add RPM target for git-gui
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 12, 2007 at 16:28 UTC
92360538739ac7ccff94ff2be4e3907a5136443e
1 file changed
+23
-3
git.spec.in
+23
-3
@@ -9,7 +9,7 @@ URL: http://kernel.org/pub/software/scm/git/
9
Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
10
BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
-Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk, perl-Git
12
+Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk, git-gui, perl-Git
13
14
%description
15
This is a stupid (but extremely fast) directory content manager. It
@@ -63,6 +63,13 @@ Requires: git-core = %{version}-%{release}
63
%description email
64
Git tools for sending email.
65
66
+%package gui
67
+Summary: Git GUI tool
68
+Group: Development/Tools
69
+Requires: git-core = %{version}-%{release}, tk >= 8.4
70
+%description gui
71
+Git GUI tool
72
+
73
%package -n gitk
74
Summary: Git revision tree visualiser ('gitk')
75
Group: Development/Tools
@@ -97,10 +104,10 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
104
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
105
find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
106
100
-(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
107
+(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
108
(find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
109
%if %{!?_without_docs:1}0
103
-(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
110
+(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
111
%else
112
rm -rf $RPM_BUILD_ROOT%{_mandir}
113
%endif
@@ -139,6 +146,16 @@ rm -rf $RPM_BUILD_ROOT
146
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
147
%{!?_without_docs: %doc Documentation/*email*.html }
148
149
+%files gui
150
+%defattr(-,root,root)
151
+%{_bindir}/git-gui
152
+%{_bindir}/git-citool
153
+# Not Yet...
154
+# %{!?_without_docs: %{_mandir}/man1/git-gui.1}
155
+# %{!?_without_docs: %doc Documentation/git-gui.html}
156
+# %{!?_without_docs: %{_mandir}/man1/git-citool.1}
157
+# %{!?_without_docs: %doc Documentation/git-citool.html}
158
+
159
%files -n gitk
160
%defattr(-,root,root)
161
%doc Documentation/*gitk*.txt
@@ -156,6 +173,9 @@ rm -rf $RPM_BUILD_ROOT
173
%{!?_without_docs: %doc Documentation/*.html }
174
175
%changelog
176
+* Mon Feb 12 2007 Junio C Hamano <junkio@cox.net>
177
+- Add git-gui and git-citool.
178
+
179
* Mon Nov 14 2005 H. Peter Anvin <hpa@zytor.com> 0.99.9j-1
180
- Change subpackage names to git-<name> instead of git-core-<name>
181
- Create empty root package which brings in all subpackages