Split gitk into seperate RPM package
I don't want to have to install x11-libs and all it's dependencies on my headless machines, so this patch splits gitk out of the RPM. The .deb already appears to have gitk split out. Signed-off-by: Thomas Matysik <thomas@matysik.co.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Thomas Matysik committed
Nov 13, 2005 at 17:58 UTC
ba1dbb61ea1dc6995ce8ff32e109110c1d5aa304
1 file changed
+17
-3
git-core.spec.in
+17
-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: zlib >= 1.2, rsync, rcs, curl, less, openssh-clients, python >= 2.3, tk >= 8.4, expat
12
+Requires: zlib >= 1.2, rsync, rcs, curl, less, openssh-clients, python >= 2.3, expat
13
14
%description
15
This is a stupid (but extremely fast) directory content manager. It
@@ -47,6 +47,13 @@ Requires: git-core = %{version}-%{release}
47
%description email
48
Git tools for sending email.
49
50
+%package tk
51
+Summary: Git revision tree visualiser ('gitk')
52
+Group: Development/Tools
53
+Requires: git-core = %{version}-%{release}, tk >= 8.4
54
+%description tk
55
+Git revision tree visualiser ('gitk')
56
+
57
%prep
58
%setup -q
59
@@ -60,9 +67,9 @@ make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease WIT
67
prefix=%{_prefix} mandir=%{_mandir} \
68
install %{!?_without_docs: install-doc}
69
63
-(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
70
+(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
71
%if %{!?_without_docs:1}0
65
-(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
72
+(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
73
%endif
74
75
%clean
@@ -96,6 +103,13 @@ rm -rf $RPM_BUILD_ROOT
103
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
104
%{!?_without_docs: %doc Documentation/*email*.html }
105
106
+%files tk
107
+%defattr(-,root,root)
108
+%doc Documentation/*gitk*.txt
109
+%{_bindir}/*gitk*
110
+%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
111
+%{!?_without_docs: %doc Documentation/*gitk*.html }
112
+
113
%files -f bin-man-doc-files
114
%defattr(-,root,root)
115
%{_datadir}/git-core/