On Mon, 9 Apr 2007, Petr Sobotka wrote:
> Hello,
> Finally I found free time to play with xfce and spec files ;-)
>
> I tried to create spec file for verve-plugin to xfce.
>
> It compiles, and nearly install ...
> I get this message at the end of install:
> pkgbuild: error: Installed (but unpackaged) file(s) found:
> pkgbuild:         /usr/bin
> pkgbuild:         /usr/bin/verve-focus
> pkgbuild: pkgbuild: xfce4-verve-plugin.spec(93): Installed (but unpackaged) 
> file(s) found
> --- command output ends --- finished at Mon Apr  9 13:47:24 CEST 2007
>
> And on this I freeze ...
> Any suggestions? (Also it would be great if you review whole spec file,
> I copied it from doug's spec file for other xfce plugin and I'm not sure
> if I modified it well)
>
> Is there any good link/resource which explain the use of spec + pkgbuild
> on OpenSolaris?

Hi Petr,

The %files block is by far the trickiest part of an RPM spec
file. (That makes sense though because when it comes to
properly fitting F/OSS software to a specific platform,
%files is also one of the most important parts.) Anyway,
you're probably modeling the verve plugin after
xfce-mcs-plugins.spec. So in an effort to help, and maybe
generate some FAQ content for this topic, below is a
description breakdown of each line of the %files block of
xfce-mcs-plugins.spec. Laca, Doug, other spec file gurus,
please advise of any improvements or corrections.

Eric



%defattr(-,root,bin)
# Sets default attributes

%dir %attr (0755, root, bin) %{_libdir}
# This packages delivers a directory called /usr/lib (with the
# attributes shown)

%dir %attr (0755, root, sys) %{_datadir}
# This package also delivers a directory called /usr/share. Note
# the override of the default group attribute from bin to sys.

%{_libdir}/xfce4*
# This package also delivers files and possibly directories and
# more files rooted at /usr/lib that match the wildcard
# expression "xfce4*".

%{_datadir}/xfce4*
# (same as above, except rooted at /usr/share)

%{_datadir}/xfce-mcs-plugins*
# (same as above, except matching wildcard "xfce-mcs-plugins*")

%defattr(-,root,other)
# Change the default group attribute (from bin to other)

%{_datadir}/locale*
# This package also delivers files and possibly directories and
# more files rooted at /usr/share that match the wildcard
# expression "locale*"

%{_datadir}/applications*
# (same as above, except matching the wildcard "applications*")

%{_datadir}/icons*
# (same as above, except matching the wildcard "icons*")

Reply via email to