Bug 1078760

Summary: Doc files are included in binary package even if not specified in %files section
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: high    
Version: 20CC: jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-25 10:28:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Suchý 2014-03-20 09:55:23 UTC
Description of problem:
I generate some documentation in spec file, which I intend to place it in -doc subpackage. I specify those files in
 %files doc
and they appear there, but those files also appear in main package even when not mentioned in main %files section.

Version-Release number of selected component (if applicable):
rpm-build-4.11.2-2.fc20.x86_64

How reproducible:
deterministic

Steps to Reproduce:
1. rpmbuild --rebuild http://miroslav.suchy.cz/copr/copr-cli-1.30-1.git.0.9c51a84.fc20.src.rpm

Actual results:
$ rpm -qpl /home/msuchy/rpmbuild/RPMS/noarch/copr-cli-1.30-1.git.0.9c51a84.fc20.noarch.rpm |grep doc
/usr/share/doc/copr-cli
/usr/share/doc/copr-cli/LICENSE
/usr/share/doc/copr-cli/README.rst
/usr/share/doc/copr-cli/python-doc
/usr/share/doc/copr-cli/python-doc/api-objects.txt
/usr/share/doc/copr-cli/python-doc/class-tree.html
/usr/share/doc/copr-cli/python-doc/copr_cli-module.html
/usr/share/doc/copr-cli/python-doc/copr_cli-pysrc.html
/usr/share/doc/copr-cli/python-doc/copr_cli.copr_exceptions-module.html
/usr/share/doc/copr-cli/python-doc/copr_cli.copr_exceptions-pysrc.html
/usr/share/doc/copr-cli/python-doc/copr_cli.copr_exceptions.CoprCliConfigException-class.html
/usr/share/doc/copr-cli/python-doc/copr_cli.copr_exceptions.CoprCliException-class.html
...

Expected results:
$ rpm -qpl /home/msuchy/rpmbuild/RPMS/noarch/copr-cli-1.30-1.git.0.9c51a84.fc20.noarch.rpm |grep doc
/usr/share/doc/copr-cli
/usr/share/doc/copr-cli/LICENSE
/usr/share/doc/copr-cli/README.rst

And nothing else.

Additional info:
sochotnicky stated that he seen that on el6 (in Copr) as well.

Comment 1 Stanislav Ochotnicky 2014-03-20 13:46:24 UTC
(In reply to Miroslav Suchý from comment #0)

> Additional info:
> sochotnicky stated that he seen that on el6 (in Copr) as well.

Small correction. What I meant is that I realized I had a bug in my spec files because el6 builds failed (unpackaged files) but f20/rawhide builds succeeded even though I didn't have proper %doc lines

Comment 2 Panu Matilainen 2014-03-25 10:28:43 UTC

*** This bug has been marked as a duplicate of bug 728959 ***