On Tue, 2008-01-29 at 00:12 +0100, Patrick Ale wrote:
> On Jan 29, 2008 12:02 AM, Laszlo (Laca) Peter <Laszlo.Peter at sun.com> wrote:
> >
> > On Mon, 2008-01-28 at 23:47 +0100, Patrick Ale wrote:
> > Anyway, the %files sections are only used in the Solaris
> > spec files, when building Solaris packages.
> 
> Then that is the problem I think!
> I removed all %files and %files devel entries from SUNWgmime.spec.
> I merged the %files and the %files devel area from SUNWgmime.spec to
> base-specs/gmime.spec and TAH DAH! it builds and installs!

No, sorry, it's just the other way around.

Let me try a better wording: when building Solaris packages,
the %files sections of the base spec files are NOT used
for anything, the %files sections in the SUNW*.spec files are.

So now your build passed because it didn't create any packages.
Note in the output below that it didn't install anything either:

> $ /opt/jdsbld/bin/pkgtool build --without gtk-doc SUNWgmime.spec
> INFO: Copying %use'd or %include'd spec files to SPECS directory
> INFO: Processing spec files
> INFO: Finding sources
> INFO: Running pkgbuild -ba [...] SUNWgmime.spec (SUNWgmime)
> INFO: SUNWgmime PASSED

Laca

> 
> Now before I get all excited, the diffs :)
> 
> 
> 
> --- SUNWgmime.spec      (revision 12898)
> +++ SUNWgmime.spec      (working copy)
> @@ -56,26 +56,6 @@
>  %clean
>  rm -rf $RPM_BUILD_ROOT
> 
> -%files
> -%defattr(-, root, bin)
> -%dir %attr (0755, root, bin) %dir %{_libdir}
> -%{_libdir}/*.so*
> -
> -%files devel
> -%defattr(-, root, bin)
> -%dir %attr (0755, root, bin) %dir %{_includedir}
> -%{_includedir}/*
> -%dir %attr (0755, root, bin) %dir %{_bindir}
> -%{_bindir}/*
> -%dir %attr (0755, root, bin) %dir %{_libdir}
> -%{_libdir}/*.sh
> -%dir %attr (0755, root, other) %dir %{_libdir}/pkgconfig
> -%{_libdir}/pkgconfig/*
> -%if %{!?_without_gtk_doc:1}%{?_without_gtk_doc:0}
> -%dir %attr (0755, root, sys) %dir %{_datadir}
> -%{_datadir}/gtk-doc
> -%endif
> -
>  %changelog
>  * Thu Jan 24 2008 - nonsea at users.sourceforge.net
>  - Remove mono stuff
> 
> 
> 
> --- base-specs/gmime.spec       (revision 12898)
> +++ base-specs/gmime.spec       (working copy)
> @@ -94,18 +94,26 @@
>  %postun -p /sbin/ldconfig
> 
>  %files
> -%defattr(-,root,root)
> +%defattr(-, root, bin)
>  %doc AUTHORS ChangeLog README TODO
> -%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.*
> -%attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2
> +%dir %attr (0755, root, bin) %dir %{_libdir}
> +%{_libdir}/*.so*
> 
> +
>  %files devel
> -%defattr(-,root,root)
> +%defattr(-, root, bin)
>  %doc PORTING
> +%dir %attr (0755, root, bin) %dir %{_includedir}
> +%{_includedir}/*
> +%dir %attr (0755, root, bin) %dir %{_bindir}
> +%{_bindir}/*
> +%dir %attr (0755, root, bin) %dir %{_libdir}
> +%dir %attr (0755, root, other) %dir %{_libdir}/pkgconfig
> +%{_libdir}/pkgconfig/*
> +
>  %attr(755,root,root) %{_bindir}/gmime-config
>  %attr(755,root,root) %{_libdir}/libgmime-2.0.so
>  %attr(755,root,root) %{_libdir}/gmimeConf.sh
> -%{_libdir}/pkgconfig/gmime-2.0.pc
>  %{_includedir}/gmime-2.0
>  %{_datadir}/gtk-doc/html/gmime


Reply via email to