[opensuse] rpmbuild - %doc keeps wiping out additional %docdir files?
All, I need help. I am working on packaging WordNet. Doing so, I have 5 doc files in the base directory of the source packages I want in the documentation directory of the final package: %doc AUTHORS ChangeLog COPYING LICENSE README Fine - works, puts the files in /usr/share/doc/packages/WordNet where I want them. However, I also have the html, pdf, and ps documentation directories I want to put in that SAME directory. In the %install section I create the directory and move the documentation dirs (html,pdf,ps) to /usr/share/doc/packages/WordNet with the following: # Make proper document dir, mv doc files, rm old doc dir mkdir -p %{buildroot}/usr/share/doc/packages/WordNet mv %{buildroot}/usr/doc/* %{buildroot}/usr/share/doc/packages/WordNet rm -rf %{buildroot}/usr/doc/ I then add: %files ... %docdir /usr/share/doc /usr/share/doc rpmbuild completes fine, but NONE of the (html,pdf,or ps) directories are present in the final package. None of these exists: /usr/share/doc/packages/WordNet/html /usr/share/doc/packages/WordNet/pdf /usr/share/doc/packages/WordNet/ps Grr.. From research I found that this was due to the %doc AUTHORS... line wiping out everything else in the /usr/share/doc/packages/WordNet directory -- the reason given: "that is just rpm being dumb, that's just the way it has always been." But there was no explanation how to fix this issue. It seems simple. All I want to do is move the documentation from %{buildroot}/usr/doc/{html,pdf,ps} to %{buildroot}/usr/doc/packages/WordNet/{html,pdf,ps} and include those directories along with the files AUTHORS ChangeLog COPYING LICENSE and README. But how do I do it without the first %doc line wiping them out? I have given up in the interim and just created a %{buildroot}/usr/doc/packages/WordNet-docs directory and move the html, pdf and ps directories there, but I really would like all documentation under /usr/share/doc/packages/WordNet. How do I do that?? Here is my current %files setup. %files %defattr(-,root,root) /usr/bin /usr/include /usr/lib64 /usr/lib /usr/share/applications /usr/share/pixmaps /usr/share/wordnet %doc AUTHORS ChangeLog COPYING LICENSE README %docdir /usr/share/doc/packages/WordNet-docs /usr/share/doc/packages/WordNet-docs What say the masters? What is the trick? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* David C. Rankin <drankinatty@suddenlinkmail.com> [02-16-14 18:02]:
All,
I need help. I am working on packaging WordNet. Doing so, I have 5 doc files in the base directory of the source packages I want in the documentation directory of the final package:
[...]
What say the masters? What is the trick?
you will probably get a better/faster answer on opensuse-packaging :^) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/16/2014 05:10 PM, Patrick Shanahan wrote:
What say the masters? What is the trick? you will probably get a better/faster answer on opensuse-packaging :^)
Of course you are right, but I was hoping to avoid subscribing to yet another mailing list :) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 16 Feb 2014 19:37:35 -0600 David C. Rankin wrote:
On 02/16/2014 05:10 PM, Patrick Shanahan wrote:
What say the masters? What is the trick? you will probably get a better/faster answer on opensuse-packaging :^)
Of course you are right, but I was hoping to avoid subscribing to yet another mailing list :)
What about compressing the problem directories with their contents into a single file and then using a post-installation script to decompress them in place? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/16/2014 07:58 PM, Carl Hartung wrote:
What about compressing the problem directories with their contents into a single file and then using a post-installation script to decompress them in place?
Good idea. If I can't get it to work all in one-shot, I'll probably just drop the documentation into a subpackage and have that available for separate install. The documentation is about a 3M package on its own. Thanks. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun 16 Feb 2014 07:37:35 PM CST, David C. Rankin wrote:
On 02/16/2014 05:10 PM, Patrick Shanahan wrote:
What say the masters? What is the trick? you will probably get a better/faster answer on opensuse-packaging :^)
Of course you are right, but I was hoping to avoid subscribing to yet another mailing list :)
Hi Then don't ;) If you use gmane (usenet) and subscribe via nomail it's just like having a new inbox in your client....... -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop up 5 days 7:55, 3 users, load average: 0.09, 0.08, 0.12 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Mon, 17 Feb 2014, Malcolm wrote:
On Sun 16 Feb 2014 07:37:35 PM CST, David C. Rankin wrote:
Of course you are right, but I was hoping to avoid subscribing to yet another mailing list :)
Then don't ;) If you use gmane (usenet) and subscribe via nomail it's just like having a new inbox in your client.......
With procmail: :0 H: * ^X-Mailinglist: *\/opensuse.* $MATCH for _all_ opensuse MLs and I get folders like opensuse for this list and e.g. opensuse-packaging for that ;) All I need is the subscribe-mail plus answering the resulting challenge-mail. -dnh, yeah, I know that won't actually help dcr, but others might be interested -- Neither. The Universe, as we all really know, came into existence by itself - purely and malevolently to spite the Gods who were at the time actually trying to create something with a lot more order to it. They've been trying to explain it away ever since. -- Tanuki -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Sun, 16 Feb 2014, David C. Rankin wrote:
# Make proper document dir, mv doc files, rm old doc dir mkdir -p %{buildroot}/usr/share/doc/packages/WordNet mv %{buildroot}/usr/doc/* %{buildroot}/usr/share/doc/packages/WordNet rm -rf %{buildroot}/usr/doc/
Try mkdir tmpdocs mv %{buildroot}/usr/doc/* tmpdocs [..] %files %doc AUTHORS ... %doc tmpdocs/* BTW: version 3.0 is available in opensuse, if you want to update to 3.1, grab the spec-file from the Edu-Repo and adapt that to 3.1. https://build.opensuse.org/package/show?project=Education&package=wordnet HTH, -dnh -- What got my attention one time, however, was the list that included both "chicken" and "chicken meat" as distinct ingredients. -- Kenneth Brody -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Carl Hartung
-
David C. Rankin
-
David Haller
-
Malcolm
-
Patrick Shanahan