rpms/gtk-doc/devel dochelpdir.patch, NONE, 1.1 gtk-doc.spec, 1.33, 1.34
Matthias Clasen (mclasen)
fedora-extras-commits at redhat.com
Tue Oct 16 00:17:11 UTC 2007
Author: mclasen
Update of /cvs/extras/rpms/gtk-doc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15525
Modified Files:
gtk-doc.spec
Added Files:
dochelpdir.patch
Log Message:
fix location of the manual
dochelpdir.patch:
--- NEW FILE dochelpdir.patch ---
--- trunk/xmldocs.make 2006/04/15 12:04:42 388
+++ trunk/xmldocs.make 2007/01/03 15:05:00 413
@@ -33,19 +33,17 @@
#
-# ************* Begin of section some packagers may need to modify **************
-# This variable (gtkdochelpdir) specifies where the documents should be installed.
+# ********** Begin of section some packagers may need to modify **********
+# This variable (docdir) specifies where the documents should be installed.
# This default value should work for most packages.
-# gtkdochelpdir = $(datadir)/@PACKAGE@/doc/$(docname)/$(lang)
-gtkdochelpdir = $(datadir)/gnome/help/$(docname)/$(lang)
+docdir = $(datadir)/gnome/help/$(docname)/$(lang)
-# ************** You should not have to edit below this line *******************
+# ********** You should not have to edit below this line **********
xml_files = $(entities) $(docname).xml
EXTRA_DIST = $(xml_files) $(omffile)
CLEANFILES = omf_timestamp
-# If the following file is in a subdir (like help/) you need to add that to the path
include $(top_srcdir)/omf.make
all: omf
@@ -65,15 +63,15 @@
fi
install-data-local: omf
- $(mkinstalldirs) $(DESTDIR)$(gtkdochelpdir)
+ $(mkinstalldirs) $(DESTDIR)$(docdir)
for file in $(xml_files); do \
- cp $(srcdir)/$$file $(DESTDIR)$(gtkdochelpdir); \
+ cp $(srcdir)/$$file $(DESTDIR)$(docdir); \
done
if test "$(figdir)"; then \
- $(mkinstalldirs) $(DESTDIR)$(gtkdochelpdir)/$(figdir); \
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/$(figdir); \
for file in $(srcdir)/$(figdir)/*.png; do \
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
- $(INSTALL_DATA) $$file $(DESTDIR)$(gtkdochelpdir)/$(figdir)/$$basefile; \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$(figdir)/$$basefile; \
done \
fi
@@ -85,12 +83,19 @@
-if test "$(figdir)"; then \
for file in $(srcdir)/$(figdir)/*.png; do \
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
- rm -f $(gtkdochelpdir)/$(figdir)/$$basefile; \
+ rm -f $(DESTDIR)$(docdir)/$(figdir)/$$basefile; \
done; \
- rmdir $(DESTDIR)$(gtkdochelpdir)/$(figdir); \
+ rmdir $(DESTDIR)$(docdir)/$(figdir); \
fi
-for file in $(xml_files); do \
- rm -f $(DESTDIR)$(gtkdochelpdir)/$$file; \
+ rm -f $(DESTDIR)$(docdir)/$$file; \
done
- -rmdir $(DESTDIR)$(gtkdochelpdir)
+ -rmdir $(DESTDIR)$(docdir)
+clean-local: clean-local-doc clean-local-omf
+
+# for non-srcdir builds, remove the copied entities.
+clean-local-doc:
+ if test $(srcdir) != .; then \
+ rm -f $(entities); \
+ fi
Index: gtk-doc.spec
===================================================================
RCS file: /cvs/extras/rpms/gtk-doc/devel/gtk-doc.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- gtk-doc.spec 15 Oct 2007 22:04:51 -0000 1.33
+++ gtk-doc.spec 16 Oct 2007 00:16:38 -0000 1.34
@@ -31,6 +31,9 @@
Source1: filter-requires-gtk-doc.sh
%define __perl_requires %{SOURCE1}
+# revert a broken upstream change
+Patch0: dochelpdir.patch
+
%description
gtk-doc is a tool for generating API reference documentation.
It is used for generating the documentation for GTK+, GLib
@@ -39,11 +42,15 @@
%prep
%setup -q
+%patch0 -p1 -R -b .dochelpdir
# Move this doc file to avoid name collisions
mv doc/README doc/README.docs
%build
+aclocal
+automake
+autoconf
%configure --enable-public-id --disable-scrollkeeper
make
@@ -57,9 +64,6 @@
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html
-# we already package the files from the source tree
-rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gtk-doc
-
%clean
rm -rf $RPM_BUILD_ROOT
More information about the fedora-extras-commits
mailing list