[PATCH] gtkhtml-0.7 spec file
- From: Dennis Bjorklund <dennisb cs chalmers se>
- To: gnome-devel-list gnome org
- Subject: [PATCH] gtkhtml-0.7 spec file
- Date: Wed, 25 Oct 2000 21:15:30 +0200 (MET DST)
When I compiled gtkhtml-0.7 it installed some *.c files in the
/usr/include/gtkhtml directory. It sounds strange, but it does. I guess
it's a bug.
And the spec file was really broken. But that's something om used of
:-) So, I've fixed the errors so it works for me. Who do I send it
to? Or hopefully someone will take it from here and apply it.
/Dennis
Index: gtkhtml.spec.in
===================================================================
RCS file: /cvs/gnome/gtkhtml/gtkhtml.spec.in,v
retrieving revision 1.4
diff -u -w -r1.4 gtkhtml.spec.in
--- gtkhtml.spec.in 2000/08/10 07:25:39 1.4
+++ gtkhtml.spec.in 2000/10/25 19:10:51
@@ -1,5 +1,6 @@
%define ver @VERSION@
%define prefix /usr
+%define sysconfdir /etc
Summary: gtkhtml library
Name: gtkhtml
@@ -36,15 +37,15 @@
# Needed for snapshot releases.
if [ ! -f configure ]; then
%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --with-bonobo
+ CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir=%{sysconfdir} --with-bonobo
%else
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --with-bonobo
+ CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir=%{sysconfdir} --with-bonobo
%endif
else
%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --with-bonobo
+ CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir=%{sysconfdir} --with-bonobo
%else
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --with-
+ CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=%{sysconfdir} --with-bonobo
%endif
fi
@@ -58,10 +59,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-# Note how DESTDIR is passed. Using prefix=$RPM_BUILD_ROOT%{prefix} instaead
-# nearly worked, but problems occured for /etc/CORBA/servers, where prefix
-# was ignored completely.
-make -k DESTDIR=$RPM_BUILD_ROOT prefix=%{prefix} install
+make sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} prefix=$RPM_BUILD_ROOT%{prefix} install
%clean
@@ -74,26 +72,21 @@
%files
%defattr(-, root, root)
%config /etc/CORBA/servers/*.gnorba
-%{prefix}/bin/gtkhtml-properties-capplet
-%{prefix}/bin/html-editor-control
-%{prefix}/lib/*.0
-%{prefix}/lib/*.3
+%{prefix}/bin/*
+%{prefix}/lib/lib*.so.*
%{prefix}/lib/*.sh
-%{prefix}/lib/*.so
%{prefix}/share/control-center/Documents/*.desktop
%{prefix}/share/gnome/apps/Settings/Documents/*.desktop
+%{prefix}/share/gnome/ui/*.xml
%{prefix}/share/gtkhtml/*.emacs
%{prefix}/share/gtkhtml/*.ms
-# do not know why it doesn't work
-#%{prefix}/share/locale/*/LC_MESSAGES/*.mo
+%{prefix}/share/locale/*/LC_MESSAGES/*.mo
%{prefix}/share/oaf/*.oafinfo
%doc AUTHORS ChangeLog NEWS README COPYING TODO
-# /etc/CORBA/servers/*
-
%files devel
%defattr(-, root, root)
-%{prefix}/include/gtkhtml/*.h
+%{prefix}/include/gtkhtml
%{prefix}/lib/*.a
%{prefix}/lib/*.la
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]