FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 05-16-2012, 01:57 PM
Tom Callaway
 
Default Manpages using %doc

On 05/16/2012 08:12 AM, Tomas Radej wrote:
> Hi,
>
> Is it possible for man pages to use the %doc macro in the %files section in a spec file? In Guidelines, there's no explicit mention of it, and I haven't found a package having this behavior. However, I am reviewing spacewalk-pylint ( https://bugzilla.redhat.com/show_bug.cgi?id=800899 ), which does this:
>
> %files
> %doc %{_mandir}/man8/spacewalk-pylint.8*

RPM automagically marks everything in %{_mandir}/*/* as %doc, so there
is no need to do that.

~tom

==
Fedora Project
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 05-16-2012, 03:18 PM
Michael Schwendt
 
Default Manpages using %doc

On Wed, 16 May 2012 07:20:56 -0500, JC (Jon) wrote:

> On Wed, May 16, 2012 at 7:12 AM, Tomas Radej wrote:
> > Hi,
> >
> > Is it possible for man pages to use the %doc macro in the %files section in a spec file? In Guidelines, there's no explicit mention of it, and I haven't found a package having this behavior. However, I am reviewing spacewalk-pylint ( https://bugzilla.redhat.com/show_bug.cgi?id=800899 ), which does this:
> >
> > * * * *%files
> > * * * *%doc %{_mandir}/man8/spacewalk-pylint.8*
> >
> > Can you please give me a stance on that?
>
> It seems more logical to list the man page in the regular %files
> section, and leave doc for things like html, COPYING, README, etc.
> Though I've never tried the above, I'm not sure whether it would put
> the man page in /usr/share/doc/foo-version/, breaking man's ability to
> find it, or put it in the man dir, and allow it to be left out if
> --nodocs is passed.

The %doc macro does two different things depending on whether you
use it in conjunction with a _local_ file or an absolute path to a file.
For the former, it installs a copy of that file in the default docdir as
you've mentioned and marks it as Documentation. For the latter, it just
marks the already installed file as Documentation.

--
Fedora release 17 (Beefy Miracle) - Linux 3.3.4-5.fc17.x86_64
loadavg: 0.01 0.05 0.05
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 06:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org