Mailinglist Archive: opensuse-packaging (102 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Please criticise my spec file.
- From: Stanislav Brabec <sbrabec@xxxxxxx>
- Date: Tue, 04 Sep 2007 16:49:05 +0200
- Message-id: <1188917346.25366.51.camel@xxxxxxxxxxxxxx>
Marcus Rueckert wrote:
> %if 0%{?suse_version} < 1030
> %define _prefix /opt/gnome
> %endif
Insufficient. If you want to use %configure, you have to redefine all
used paths (_bindir, _datadir and so on).
You also may use following trick:
%define _prefix %(pkg-config --variable=prefix libgnome-2.0)
%define _libdir %(pkg-config --variable=libdir libgnome-2.0)
...
Instead of "libgnome-2.0" you can use package of your choice. Not all
standard variables are defined in all packages.
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
> %if 0%{?suse_version} < 1030
> %define _prefix /opt/gnome
> %endif
Insufficient. If you want to use %configure, you have to redefine all
used paths (_bindir, _datadir and so on).
You also may use following trick:
%define _prefix %(pkg-config --variable=prefix libgnome-2.0)
%define _libdir %(pkg-config --variable=libdir libgnome-2.0)
...
Instead of "libgnome-2.0" you can use package of your choice. Not all
standard variables are defined in all packages.
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |