Bug 1001249 - aunit : duplicate documentation files / potentially conflicting
Summary: aunit : duplicate documentation files / potentially conflicting
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: aunit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Zhukov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F20UnversionedDocDirs
TreeView+ depends on / blocked
 
Reported: 2013-08-26 19:55 UTC by Michael Schwendt
Modified: 2014-06-18 07:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-04 07:50:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Schwendt 2013-08-26 19:55:36 UTC
Duplicate documentation files have been detected in the package
builds for Rawhide and Fedora 20. The likely cause is the unversioned
docdirs change in Fedora 20.

If your package %installs documentation files into %{_docdir}/%{name}/ to
store them in a subpackage, this now conflicts with using the %doc
macro in the base package. Since Fedora 20, the %doc macro installs into
the unversioned %{_docdir}/%{name}/ and includes everything in that
directory. One obvious fix is to decide between either using %doc or
installing into %{_docdir}/%{name}/ manually as explained in the
Packaging tricks Wiki section (for past dist releases and the versioned
docdir).

General discussion of this problem:
https://fedorahosted.org/fpc/ticket/338

Further information:
http://fedoraproject.org/wiki/Changes/UnversionedDocdirs
https://fedoraproject.org/wiki/Packaging_tricks#Installing_documentation:_2_paths

[semi-automated bug report]

[...]

=> aunit-2012-4.fc20.src.rpm
=> aunit-devel-2012-4.fc20.i686 in fedora-development-i386
  File conflict with: aunit-2012-4.fc20.i686
     /usr/share/doc/aunit/COPYING3
     /usr/share/doc/aunit/README
     /usr/share/doc/aunit/aunit.html
     /usr/share/doc/aunit/aunit.info
     /usr/share/doc/aunit/aunit.pdf
     /usr/share/doc/aunit/aunit.txt

=> aunit-2012-4.fc20.src.rpm
=> aunit-2012-4.fc20.i686 in fedora-development-i386
  File conflict with: aunit-devel-2012-4.fc20.i686
     /usr/share/doc/aunit/COPYING3
     /usr/share/doc/aunit/README
     /usr/share/doc/aunit/aunit.html
     /usr/share/doc/aunit/aunit.info
     /usr/share/doc/aunit/aunit.pdf
     /usr/share/doc/aunit/aunit.txt

Comment 2 Michael Schwendt 2013-09-03 20:49:02 UTC
* Didn't fix it at all.
* Introduced an odd /usr/share/doc/aunit/__doc directory.
* No %changelog entry.

Comment 3 Pavel Zhukov 2013-09-04 07:26:41 UTC
(In reply to Michael Schwendt from comment #2)
> * Didn't fix it at all.
Fixed
rpm -qpl aunit-devel-2012-7.fc21.x86_64.rpm | grep doc 
/usr/share/doc/aunit-devel
/usr/share/doc/aunit-devel/COPYING3
/usr/share/doc/aunit-devel/README
> * Introduced an odd /usr/share/doc/aunit/__doc directory.
Fixed
> * No %changelog entry.
Added

Comment 4 Michael Schwendt 2013-09-04 08:02:23 UTC
No files are duplicated anymore, but are they placed correctly?

* Now the base package contains the .html/.info/.pdf/.txt developer docs, and the -devel package the license COPYING and README.

* The license file belongs into the base package (and the -devel package depends on that one):
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#Subpackage_Licensing

* "License" tag claims "GPLv2+", but file COPYING is GPLv3, and source files contain a GPLv3 "or later" preamble.
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#.22or_later_version.22_licenses

* The README refers to the docs, which are in a different package.

* There's an empty /usr/share/aunit and /usr/share/aunit/examples directory.

* %defattr(...) is superfluous even for RHEL5.

[...]

# repoquery --whatrequires aunit
aunit-devel-0:2012-4.fc20.i686
aunit-devel-0:2012-4.fc20.x86_64

I don't reopen the ticket, because the issues are unrelated to the original issue.


Note You need to log in before you can comment on or make changes to this bug.