{"thread":{"id":"2482","subject":"[PATCH 2/2] Split gitk into seperate RPM package","startedAt":"2005-11-13T04:58:02Z","lastAt":"2005-11-13T04:58:02Z","messageCount":1,"participants":["Thomas Matysik"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"11717","messageId":"4376C7DA.8070901@matysik.co.nz","threadId":"2482","inReplyTo":null,"subject":"[PATCH 2/2] Split gitk into seperate RPM package","fromName":"Thomas Matysik","fromEmail":"thomas@matysik.co.nz","sentAt":"2005-11-13T04:58:02Z","receivedAt":"2005-11-13T04:58:02Z","isPatch":true,"sender":{"key":"thomas@matysik.co.nz","avatar":null},"body":"\nI 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.\n\nThe .deb already appears to have gitk split out.\n\nSigned-off-by: Thomas Matysik <thomas@matysik.co.nz>\n---\n\n git-core.spec.in |   20 +++++++++++++++++---\n 1 files changed, 17 insertions(+), 3 deletions(-)\n\napplies-to: 69a4acd3853a9d7fb26bc3620c9fb3079b2b5494\n57d0a6cf0343ae19581dc2c89821605077a4035d\ndiff --git a/git-core.spec.in b/git-core.spec.in\nindex 91f8677..54a6815 100644\n--- a/git-core.spec.in\n+++ b/git-core.spec.in\n@@ -9,7 +9,7 @@ URL: \t\thttp://kernel.org/pub/software/sc\n Source: \thttp://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz\n BuildRequires:\tzlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}\n BuildRoot:\t%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)\n-Requires:\tzlib >= 1.2, rsync, rcs, curl, less, openssh-clients, python >= 2.3, tk >= 8.4, expat\n+Requires:\tzlib >= 1.2, rsync, rcs, curl, less, openssh-clients, python >= 2.3, expat\n\n %description\n This is a stupid (but extremely fast) directory content manager.  It\n@@ -47,6 +47,13 @@ Requires:\tgit-core = %{version}-%{releas\n %description email\n Git tools for sending email.\n\n+%package tk\n+Summary:        Git revision tree visualiser ('gitk')\n+Group:          Development/Tools\n+Requires:       git-core = %{version}-%{release}, tk >= 8.4\n+%description tk\n+Git revision tree visualiser ('gitk')\n+\n %prep\n %setup -q\n\n@@ -60,9 +67,9 @@ make %{_smp_mflags} DESTDIR=$RPM_BUILD_R\n      prefix=%{_prefix} mandir=%{_mandir} \\\n      install %{!?_without_docs: install-doc}\n\n-(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE \"arch|svn|cvs|email\" | sed -e s@^$RPM_BUILD_ROOT@@)               > bin-man-doc-files\n+(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE \"arch|svn|cvs|email|gitk\" | sed -e s@^$RPM_BUILD_ROOT@@)               > bin-man-doc-files\n %if %{!?_without_docs:1}0\n-(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\n+(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\n %endif\n\n %clean\n@@ -96,6 +103,13 @@ rm -rf $RPM_BUILD_ROOT\n %{!?_without_docs: %{_mandir}/man1/*email*.1*}\n %{!?_without_docs: %doc Documentation/*email*.html }\n\n+%files tk\n+%defattr(-,root,root)\n+%doc Documentation/*gitk*.txt\n+%{_bindir}/*gitk*\n+%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}\n+%{!?_without_docs: %doc Documentation/*gitk*.html }\n+\n %files -f bin-man-doc-files\n %defattr(-,root,root)\n %{_datadir}/git-core/\n---\n0.99.9g\n"}]}