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@suse.cz 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@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org