packages: gist/gist.spec - R: git-core, xclip, groff - extract manpage from...

pawelz pawelz at pld-linux.org
Thu Mar 25 11:20:00 CET 2010


Author: pawelz                       Date: Thu Mar 25 10:20:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- R: git-core, xclip, groff
- extract manpage from .rb file and install it in %{_mandir}

---- Files affected:
packages/gist:
   gist.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/gist/gist.spec
diff -u packages/gist/gist.spec:1.6 packages/gist/gist.spec:1.7
--- packages/gist/gist.spec:1.6	Wed Mar 24 00:10:15 2010
+++ packages/gist/gist.spec	Thu Mar 25 11:19:54 2010
@@ -12,6 +12,9 @@
 BuildRequires:	ruby >= 1:1.8.6
 BuildRequires:	ruby-modules
 %{?ruby_mod_ver_requires_eq}
+Requires:	git-core
+Requires:	groff
+Requires:	xclip
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,9 +30,11 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
 
+awk '{if (p) print} /^__END__$/ {p = 1}' %{name} > $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -37,6 +42,7 @@
 %defattr(644,root,root,755)
 %doc README.markdown
 %attr(755,root,root) %{_bindir}/gist
+%{_mandir}/man1/%{name}.1*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -44,6 +50,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/03/25 10:19:54  pawelz
+- R: git-core, xclip, groff
+- extract manpage from .rb file and install it in %{_mandir}
+
 Revision 1.6  2010/03/23 23:10:15  pawelz
 - rel 1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gist/gist.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list