Aaron Bockover wrote:
> Hello,
> 
> I am trying to update Banshee's spec file to use the new GConf schemas
> macros [1] that Stanislav has come up with for 10.3, but am having some
> problems.
> 
> I'm no packaging guru, and am finding it a little confusing. This may
> stem from the fact that Banshee has many different .schema files to
> install in each of its packages.0
> 
> I have %gconf_schemas_prereq at the top of the spec file and %
> find_gconf_schemas in my %install section. I think this is correct,

Yes, if all your schemas go into the same sub-package, it is correct.

> but
> what I am unsure of is what to do for %files in each of the packages I
> am creating. Each package may have multiple .schema files to install,
> for example:

Use %files -f to include auto-generated list of gconf files is a
recommended solution.

> %files plugins-default
> %defattr(-,root,root)
> %{sysconfdir}/gconf/schemas/banshee-plugin-audioscrobbler.schemas
> %{sysconfdir}/gconf/schemas/banshee-plugin-metadatasearcher.schemas
> %{sysconfdir}/gconf/schemas/banshee-plugin-mmkeys.schemas
> %{sysconfdir}/gconf/schemas/banshee-plugin-notificationarea.schemas

If the auto-generated list includes gconf list (recommended), you don't
have to list these files explicitly.

Because %files supports only one -f for file to include, you have to
merge all auto-generated lists. In most cases it means merging of
%find_lang list and %find_gconf_scriptlets list.

> [1] http://en.opensuse.org/SUSE_Build_Tutorial/GConf_scritplets

This documents contains few examples of %files -f.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to