Bug 1078760 - Doc files are included in binary package even if not specified in %files section
Summary: Doc files are included in binary package even if not specified in %files section
Keywords:
Status: CLOSED DUPLICATE of bug 728959
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 20
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-20 09:55 UTC by Miroslav Suchý
Modified: 2014-03-25 10:28 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-25 10:28:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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