On Jan 27, 2008 1:22 AM, Laszlo (Laca) Peter <Laszlo.Peter at sun.com> wrote:
> Patrick,
> So you should never need to change these files.
You're right (duh). The catch was that the build failed when I was
building --without gtk-doc. I tried my patch, rebuild, but without
--without gtk-doc. So it was "fixed".
Real problem is a missing if-block in the %install area where the
gtk-doc directory isnt removed when compiling with --without gtk-doc.
I will revert my changes to the prototype and commit the patch
mentioned below. I also tried to build --with gtk-doc. This still
works correctly.
--
Patrick
--- base-specs/glade.spec (revision 12892)
+++ base-specs/glade.spec (working copy)
@@ -85,6 +85,11 @@
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+%if %{!?_without_gtk_doc:0}%{?_without_gtk_doc:1}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
+%endif
+
+
%clean
rm -rf $RPM_BUILD_ROOT