Re: help with first package (extractpdfmark, bug 1520922)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Il giorno sab 3 feb 2018 alle 0:31, Björn Persson <Bjorn@xxxxxxxxxxxxxxxxxxxx> ha scritto:
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


That's an old version. The most recent is here:
https://pagure.io/rpm-extractpdfmark/blob/master/f/extractpdfmark.spec

but it still contains below lines...

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.



I know. Two days ago I wrote:

I must duplicate it, since upstream is copying that file in the doc dir:

[extractpdfmark-1.0.2]$ grep COPYING Makefile
	$(srcdir)/config.h.in $(dist_doc_DATA) COPYING compile \
dist_doc_DATA = README.md README.ja.md COPYING


So if I remove it from %doc, I'll get an error:

error: Installed (but unpackaged) file(s) found:
  /usr/share/doc/extractpdfmark/COPYING
   Installed (but unpackaged) file(s) found:
  /usr/share/doc/extractpdfmark/COPYING

Should I ask upstream to fix it and put COPYING under /usr/share/licenses?

And someone suggested that I could just delete the file after the installation. You'd rather go with asking upstream to fix it (or provide a patch to the Makefile)?


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.


Ok, I see.
I was subscribed to devel, then I unsubscribed due to the high traffic.



_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux