{"thread":{"id":"2310","subject":"[PATCH] cogito rpm package to include manuals","startedAt":"2005-11-02T04:30:50Z","lastAt":"2005-11-02T04:30:50Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10991","messageId":"1130905850.9704.12.camel@dv","threadId":"2310","inReplyTo":null,"subject":"[PATCH] cogito rpm package to include manuals","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-11-02T04:30:50Z","receivedAt":"2005-11-02T04:30:50Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"The cogito rpm package created by \"make rpm\" lacks manual pages.  I can\nunderstand why manuals are not generated for local installations by\ndefault (asciidoc is slow, and the commands are self-documented), but\nrpm packages should be closer to perfection.\n\nSince there is no way to install manuals without also installing the\ntext documentation, so the later is deleted after installation.\n\nNothing from the Documentation directory except tutorial-script should\nbe included as documentation.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\ndiff --git a/cogito.spec.in b/cogito.spec.in\nindex 080b988..1ed9305 100644\n--- a/cogito.spec.in\n+++ b/cogito.spec.in\n@@ -8,6 +8,7 @@ URL: \t\thttp://kernel.org/pub/software/sc\n Source: \thttp://kernel.org/pub/software/scm/cogito/%{name}-%{version}.tar.gz\n BuildRoot:\t%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)\n Requires: \tgit-core >= 0.99.7\n+BuildRequires: \tasciidoc\n BuildArch:\tnoarch\n \n %description\n@@ -21,11 +22,13 @@ many other version control systems.\n \n %build\n \n-make\n+make all doc\n \n %install\n rm -rf $RPM_BUILD_ROOT\n-make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} libdir=%{_libdir}/cogito install\n+make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} libdir=%{_libdir}/cogito mandir=%{_mandir} \\\n+\tinstall install-doc\n+rm -rf $RPM_BUILD_ROOT/%{_prefix}/share/doc/cogito/txt\n \n %clean\n rm -rf $RPM_BUILD_ROOT\n@@ -35,9 +38,13 @@ rm -rf $RPM_BUILD_ROOT\n %{_bindir}/*\n %dir %{_libdir}/cogito\n %{_libdir}/cogito/*\n-%doc README COPYING Documentation/*\n+%{_mandir}/man*/*\n+%doc README COPYING Documentation/tutorial-script\n \n %changelog\n+* Tue Nov 1 2005 Pavel Roskin <proski@gnu.org> 0.15.1-1\n+- generate and include manuals\n+\n * Tue Oct 11 2005 Chris Wright <chrisw@osdl.org> 0.15.1-1\n - use %dist\n \n\n\n-- \nRegards,\nPavel Roskin\n"}]}