Mailinglist Archive: opensuse-packaging (138 mails)

< Previous Next >
[opensuse-packaging] new QA checks in Autobuild: gconf scriptlets, fixed icon check
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Mon, 12 Mar 2007 17:20:13 +0100
  • Message-id: <1173716413.31465.8.camel@xxxxxxxxxxxxxx>
Hallo.

I wrote a new check for Autobuild and fixed icon check.

If your package will fails due to these checks:


Icon check:

- It is now able to find icons/hicolor icons and it is no more to
symlink them.
- It is now not able to find icons/crystalsvg and icons/gnome icons for
system wide desktop files and it will fail for them.
https://bugzilla.novell.com/show_bug.cgi?id=248676

Possible fixes:
- Add OnlyShowIn=KDE (to allow icons/crystalsvg only path) or
OnlyShowIn=GNOME (to allow icons/gnome only path) and report this
issue upstream.
- Install or symlink icon to publicly visible "hicolor" or "pixmaps"
path and report this issue upstream.


GConf scriptlet check:

Not using new scriptlets (and especially new PreReq) is a Blocker.
https://bugzilla.novell.com/show_bug.cgi?id=235896

To fix your package, you have to follow these instructions
(see /etc/rpm/macros.gconf2 from gconf2 package):

Preamble:
%gconf_schemas_prereq

%install
...
%find_gconf_schemas
or
%def_gconf_schemas subpackage1
%add_gconf_schemas schemas_name1
%add_gconf_schemas schemas_name2
%def_gconf_schemas subpackage2
%add_gconf_schemas schemas_name3
%add_gconf_schemas schemas_name4
%end_gconf_schemas
schemas names are without path and suffix

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%files -f %{name}.schemas_list
or
%files -f subpackage.schemas_list

You don't have to list schemas files in the file list, it is done
automatically for you.


In case of more -f needed for one %files:

%install
...
%find_gconf_schemas
%find_lang %{name}
cat %{name}.schemas_list %{name}.lang >%{name}.lst

%files -f %{name}.lst

--
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 >
This Thread
  • No further messages