We need a way to remove doc from installation of RPM but preserve Licenses

Bug #635478 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MeeGo
Confirmed
Medium
RPM
Triaged
Wishlist
Unassigned

Bug Description

tracker

Tags: meego
Revision history for this message
Jeff Johnson (n3npq) wrote :

tracker

tags: added: meego
Revision history for this message
Jeff Johnson (n3npq) wrote :
Revision history for this message
In , Jeff Johnson (n3npq) wrote :

There's (a very little used) %license fille attribute that can be used to mark licenses in %files.

Then rpm --excludedoc logic can be tweaked to install licenses (but not other docs).

Its likely just as easy to extract the License: tag from all *.rpm packages and
then cross reference that with package <-> licenses <-> text outside
of packaging.

tracked at https://bugs.launchpad.net/rpm/+bug/635478

Revision history for this message
Jeff Johnson (n3npq) wrote :

There's (a very little used) %license fille attribute that can be used to mark licenses in %files.

Then rpm --excludedoc logic can be tweaked to install licenses (but not other docs).

Its likely just as easy to extract the License: tag from all *.rpm packages and
then cross reference that with package <-> licenses <-> text outside
of packaging.

Changed in rpm:
status: New → Triaged
importance: Undecided → Low
importance: Low → Wishlist
Revision history for this message
In , Yi-y-yang (yi-y-yang) wrote :

(In reply to comment #1)
> There's (a very little used) %license fille attribute that can be used to mark
> licenses in %files.
>
> Then rpm --excludedoc logic can be tweaked to install licenses (but not other
> docs).
>
> Its likely just as easy to extract the License: tag from all *.rpm packages and
> then cross reference that with package <-> licenses <-> text outside
> of packaging.
>
> tracked at https://bugs.launchpad.net/rpm/+bug/635478

How about COPYRIGHT and README? they need to be marked as %license and %readme in .spec respectively, this will need some efforts.

Revision history for this message
In , Jeff Johnson (n3npq) wrote :

(comment from the tracker bug)

Are you sure "COPYRIGHT" and "README" need additional
marking in *.rpm metadata? The names are already self identifying
markup.

But if you need %license/%readme to be set automagically when
files are named as above, that's about 4 lines of code to patch
into rpmbuild (ignoring the possibility of false positives from mis-named
files for the moment).

Changed in meegolinux:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Jeff Johnson (n3npq) wrote :

Are you sure "COPYRIGHT" and "README" need additional
marking in *.rpm metadata? The names are already self identifying
markup.

But if you need %license/%readme to be set automagically when
files are named as above, that's about 4 lines of code to patch
into rpmbuild (ignoring the possibility of false positives from mis-named
files for the moment).

Revision history for this message
In , Yi-y-yang (yi-y-yang) wrote :

(In reply to comment #3)
> (comment from the tracker bug)
>
> Are you sure "COPYRIGHT" and "README" need additional
> marking in *.rpm metadata? The names are already self identifying
> markup.

These files should be installed even if we use --excludedoc, but now they are marked as %doc in .spec.

>
> But if you need %license/%readme to be set automagically when
> files are named as above, that's about 4 lines of code to patch
> into rpmbuild (ignoring the possibility of false positives from mis-named
> files for the moment).

This is a good suggestion and can reduce our effort dramatically :-)

Changed in meegolinux:
importance: Medium → Unknown
Changed in meegolinux:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.