On Mon, Feb 17, 2014 at 2:09 PM, David C. Rankin
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:
David, Is there something wrong with the way it is currently done in the Education project for the wordnet package? https://build.opensuse.org/package/view_file/Education/wordnet/wordnet.spec?...
From the %install section:
# Remove duplicate copies of docs installed by make install rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/doc # Remove useless Makefiles installed by %%doc rm -rf doc/{html,ps,pdf}/Makefile*
From the %files section:
%doc AUTHORS COPYING INSTALL ChangeLog README doc/{html,ps,pdf} Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org