Re: some differences between doc stuff and license stuff

2015-03-09 Thread Michael Cronenworth

On 03/09/2015 04:58 AM, Florian Weimer wrote:

Why?  %license also sets a flag which can be queried from the RPM database.


I was mistaken about what was happening. After checking another package the behavior 
has not changed.


--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: some differences between doc stuff and license stuff

2015-03-09 Thread Michael Schwendt
On Sun, 08 Mar 2015 13:44:26 -0500, Michael Cronenworth wrote:

 On 03/08/2015 07:48 AM, Björn Persson wrote:
  · Files under /usr/share/doc are automatically tagged as documentation
  files even if %doc isn't used. Files under /usr/share/licenses are not
  automatically tagged as license files, so they need to be preceded by
  %license in file lists.
 
 I noticed the change to %doc files just a few days ago. Was this announced?

%doc hasn't changed.  %__docdir_path is the list of paths where included
files are marked as documentation automatically.

%license macro usage is covered by:
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text

Such changes to the packaging guidelines usually are announced by the FPC
in their summary mails of what has changed.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: some differences between doc stuff and license stuff

2015-03-09 Thread Florian Weimer
On 03/08/2015 07:44 PM, Michael Cronenworth wrote:

 This automatic process is grabbing license files since most projects
 have them in the /usr/share/doc and therefore negate the usefulness of
 %license to separate out the license files.

Why?  %license also sets a flag which can be queried from the RPM database.

-- 
Florian Weimer / Red Hat Product Security
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: some differences between doc stuff and license stuff

2015-03-08 Thread Michael Cronenworth

On 03/08/2015 07:48 AM, Björn Persson wrote:

· Files under /usr/share/doc are automatically tagged as documentation
files even if %doc isn't used. Files under /usr/share/licenses are not
automatically tagged as license files, so they need to be preceded by
%license in file lists.


I noticed the change to %doc files just a few days ago. Was this announced?

This automatic process is grabbing license files since most projects have them in 
the /usr/share/doc and therefore negate the usefulness of %license to separate out 
the license files.

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

some differences between doc stuff and license stuff

2015-03-08 Thread Björn Persson
While introducing %license in my packages I have noticed these
differences that packagers should be aware of, which I haven't seen
documented:

· There is a macro named _licensedir which is analogous to _docdir, but
there is no _pkglicensedir corresponding to _pkgdocdir. Use
%{_licensedir}/%{name} instead.

· Files under /usr/share/doc are automatically tagged as documentation
files even if %doc isn't used. Files under /usr/share/licenses are not
automatically tagged as license files, so they need to be preceded by
%license in file lists.

· RPMlint warns about CRLF line terminators under /usr/share/doc but
not under /usr/share/licenses.

Björn Persson


pgppv17j6Kk3n.pgp
Description: OpenPGP digital signatur
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct