On 02/17/2014 01:09 PM, David C. Rankin wrote:
And that is in fact the reason :^) Either you (1) use "%doc foobar" in %files, *or* (2) you copy things in %install (as you already did) and use "%_docdir/%name/" in %files instead.
Ok, No dir on %doc line: %doc AUTHORS ChangeLog COPYING LICENSE README /usr/doc/html /usr/doc/pdf /usr/doc/ps <snip> Processing files: WordNet-3.0-2.x86_64 error: Two files on one line: /usr/doc/html error: Two files on one line: /usr/doc/pdf error: Can't mix special %doc with other forms: /usr/doc/ps So trying the %docdir for-all approach: # 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/ cp %{_builddir}/%{name}-%{version}/{AUTHORS,ChangeLog,COPYING,LICENSE,README} %{buildroot}/usr/share/doc/packages/WordNet <snip> %files <snip> %docdir /usr/share/doc /usr/share/doc Success! Thanks Jan. Full spec here: http://www.3111skyline.com/dl/openSUSE/pkg/wordnet.spec -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org