jds SVN: spec-files

simon.zheng@sun.com Simon.Zheng at Sun.COM
Sun Mar 2 12:14:53 PST 2008


Hi Patrick and Laca,

At my end, vermillion devel 85, doc directory isn't *never* built. 
Looking into code, building doc requires tool *xmlto*, which doesn't 
exist at my vermillion. I guess you install SFExmlto manually, right?

Now, with your patch, I fails to build.
"pkgbuild: pkgbuild: File not found by glob: 
/var/tmp/pkgbuild-tty/SUNWgnome-power-manager-2.21.92-build/usr/share/doc
pkgbuild: pkgbuild: File not found by glob: 
/var/tmp/pkgbuild-tty/SUNWgnome-power-manager-2.21.92-build/usr/share/doc/gnome-power-manager
-2.21.92/spec/dbus-interface.html"

I'm not sure how to do this conflict because xmlto isn't installed by 
default. There's two options I can think.
- One is using condition statement to dectect, please see attached 
with_xmlto.diff.
- Another is that we just remove doc and never install it, like this.
  rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-power-manager-*

Which one is you preferred?

BTW, we'd better to replace "doc/gnome-power-manager-2.21.92" with 
"doc/gnome-power-manager-*" because version is changed often.

Thanks,
-Simon

Patrick Ale wrote:
> On Sat, Mar 1, 2008 at 11:34 PM, Laszlo (Laca) Peter
> <Laszlo.Peter at sun.com> wrote:
>   
>>  On Sat, 2008-03-01 at 23:18 +0100, Patrick Ale wrote:
>>     
>
>   
>>  I don't know the answer to the question, but there's a typo
>>  above: s/%_{_/%{_/
>>     
>
> Yes, I see it. Thanks for pointing it out. New patch looks like:
> --- SUNWgnome-power-manager.spec        (revision 13191)
> +++ SUNWgnome-power-manager.spec        (working copy)
> @@ -132,6 +132,8 @@
>  %{_datadir}/gnome-power-manager/*
>  %{_datadir}/dbus-1/services/gnome-power-manager.service
>  %{_datadir}/omf/gnome-power-manager/*
> +%dir %attr (0755, root, other) %{_datadir}/doc
> +%{_datadir}/doc/gnome-power-manager-2.21.92/spec/dbus-interface.html
>  %dir %attr (0755, root, other) %{_datadir}/applications
>  %{_datadir}/applications/gnome-power-*.desktop
>  %dir %attr (0755, root, other) %{_datadir}/icons
>   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: with_xmlto.diff
Url: http://mail.opensolaris.org/pipermail/jds-notify/attachments/20080302/311ea701/attachment.ksh 


More information about the jds-notify mailing list