Federico Bruni wrote:
The build completes fine, but the file is not removed:
$ rpm -ql x86_64/extractpdfmark-1.0.2-1.fc27.x86_64.rpm
/usr/bin/extractpdfmark
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/d7b8ff35818ca4ddcc3b6856f44dcb55905b75
/usr/share/doc/extractpdfmark
/usr/share/doc/extractpdfmark/COPYING
/usr/share/doc/extractpdfmark/README.ja.md
/usr/share/doc/extractpdfmark/README.md
/usr/share/licenses/extractpdfmark
/usr/share/licenses/extractpdfmark/COPYING
/usr/share/man/man1/extractpdfmark.1.gz
Is this the spec you're working on?
https://copr-be.cloud.fedoraproject.org/results/fedelibre/extractpdfmark/
fedora-rawhide-x86_64/00684039-extractpdfmark/extractpdfmark.spec
It contains these lines:
%license COPYING
%doc README.* COPYING
The file is duplicated because you list it twice, both as a license file and
as a documentation file. Just remove it from the %doc line, and it will
disappear from the documentation directory. You won't need to delete the file
if you don't add it in the first place.
And next time you need help, ask on the devel list. The packaging list is
where we discuss changes to the policies on how packages shall be made.
Björn Persson