Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
Re: [opensuse-buildservice] RPMLINT warning: dir-or-file-in-usr-local
  • From: Andreas Jaeger <aj@xxxxxxx>
  • Date: Sun, 24 Aug 2008 21:32:18 +0200
  • Message-id: <87zln2qke5.fsf@xxxxxxx>
Carsten Gerlach <daswaldhorn@xxxxxx> writes:

Am Sonntag 24. August 2008 14:28:43 schrieb Bernhard Walle:
* Carsten Gerlach <daswaldhorn@xxxxxx> [2008-08-24 13:34]:
What can I do to avoid this warning?

Don't install to /usr/local/bin but to %{_bindir} (which is /usr/bin).

Ok, but how do I have to write this to the spec file?

Does your package use Autotools (configure && make && make install)?

Yes.

Does it makes sense to post my spec file here, or is the link enough?
https://build.opensuse.org/package/view_file?file=nted.spec&package=nted&project=home%3Adaswaldhorn

Yes, helped ;)

You use:
./configure

instead use
./configure --prefix=%{_prefix}
(%{_prefix} expands to /usr)

or even better use the macro %configure,

Andreas
--
Andreas Jaeger, Director Platform / openSUSE, aj@xxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
< Previous Next >
Follow Ups