On 02/17/2014 01:53 AM, Jan Engelhardt wrote:
On Monday 2014-02-17 03:13, 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/
You could just use %configure --docdir="%_docdir/%name"
"that is just rpm being dumb, that's just the way it has always been."
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.
You won't lose anything doing it style 2.
Thank you Jan, Greg, What made the --docdir="%_docdir/%name" option undoable was the limited control provided by the configure script in WordNet itself: Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] That and the fact that it installs the documentation by default in PREFIX/doc. That prompted the manual move of the files in %buildroot after %build. I'll give the %doc ... /html /pdf /ps idea a go, but in reading the rpmbuild documentation and the Maximum RPM documentation, it does not mention that %doc will also handle directories. If that fails, we'll use %docdir on all. Will report back with success/failure. Thanks. -- 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