[opensuse-gnome] New GConf2 RPM macros for older products in GNOME:Community
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 If you include this within the %if statement then the spec file will normally be exactly the same throughout with no more %suse_version checks required %define _prefix /opt/gnome %define _sysconfdir /etc%_prefix Of course, there will be some exceptions to that but not many :) -- James Ogley james@usr-local-bin.org http://usr-local-bin.org GNOME for openSUSE: http://software.opensuse.org/download/GNOME:/ Help end poverty: http://oxfam.org.uk/in -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
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
Thanks for doing it.
Scratched an itch ;)
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.
We don't support such products any more anyway and certainly don't build for them in the Build Service.
2) "rpm --test" will not work properly in OpenSUSE <= 10.2 A work-around can be:
I'll put this work-around in - thanks. James -- James Ogley james@usr-local-bin.org http://usr-local-bin.org GNOME for openSUSE: http://software.opensuse.org/download/GNOME:/ Help end poverty: http://oxfam.org.uk/in -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
A work-around can be:
Sorry, did you mean these could go in the macros file or in individual specs? -- James Ogley james@usr-local-bin.org http://usr-local-bin.org GNOME for openSUSE: http://software.opensuse.org/download/GNOME:/ Help end poverty: http://oxfam.org.uk/in -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
James Ogley wrote:
A work-around can be:
Sorry, did you mean these could go in the macros file or in individual specs?
Into macros. Scriptlet was only example, it's doable in macros, even if it can be more complicated. -- 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
participants (2)
-
James Ogley
-
Stanislav Brabec