Mailinglist Archive: opensuse-gnome (17 mails)
| < Previous | Next > |
Re: [opensuse-gnome] New GConf2 RPM macros for older products in GNOME:Community
- From: Stanislav Brabec <sbrabec@xxxxxxx>
- Date: Thu, 21 Jun 2007 10:34:05 +0200
- Message-id: <1182414846.4530.198.camel@xxxxxxxxxxxxxx>
James Ogley wrote:
> As the subject says, I've added a package that adds the new RPM macros
> that Stanislav has created for 10.3+ to GNOME:Community. This provides
> the same macros for 10.2 and older.
>
> Simply add this to your spec file and you can use roughly the same spec
> file across the versions:
>
> %if %suse_version <= 1020
> BuildRequires gconf2-rpm-macros
> %endif
Thanks for doing it.
Warnings:
1) It will not work with older RPM versions (< SuSE 10.0), which does
not implement %posttrans.
I see no possible work-around for it.
2) "rpm --test" will not work properly in OpenSUSE <= 10.2 - %posttrans
was called even in test mode:
https://bugzilla.novell.com/show_bug.cgi?id=235361
A work-around can be:
%post
touch /var/adm/%name-rpm_post_called
%posttrasn
# Verify, that the script is not called by mistake in test mode (#235361):
if test -f /var/adm/%name-rpm_post_called
rm /var/adm/%name-rpm_post_called
...
fi
--
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-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx
> As the subject says, I've added a package that adds the new RPM macros
> that Stanislav has created for 10.3+ to GNOME:Community. This provides
> the same macros for 10.2 and older.
>
> Simply add this to your spec file and you can use roughly the same spec
> file across the versions:
>
> %if %suse_version <= 1020
> BuildRequires gconf2-rpm-macros
> %endif
Thanks for doing it.
Warnings:
1) It will not work with older RPM versions (< SuSE 10.0), which does
not implement %posttrans.
I see no possible work-around for it.
2) "rpm --test" will not work properly in OpenSUSE <= 10.2 - %posttrans
was called even in test mode:
https://bugzilla.novell.com/show_bug.cgi?id=235361
A work-around can be:
%post
touch /var/adm/%name-rpm_post_called
%posttrasn
# Verify, that the script is not called by mistake in test mode (#235361):
if test -f /var/adm/%name-rpm_post_called
rm /var/adm/%name-rpm_post_called
...
fi
--
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-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx
| < Previous | Next > |