%if %mdkversion >= 200600 %define pkgconfigdir %_datadir/pkgconfig %else %define pkgconfigdir %_libdir/pkgconfig %endif Summary: API documentation generation tool for GTK+ and GNOME Name: gtk-doc Version: 1.14 Release: %mkrel 1 License: GPLv2+ and GFDL Group: Development/GNOME and GTK+ Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{name}-%{version}.tar.bz2 BuildRequires: libxslt-proc BuildRequires: openjade BuildRequires: docbook-dtd43-xml BuildRequires: docbook-style-xsl BuildRequires: scrollkeeper BuildRequires: gnome-doc-utils BuildRequires: dblatex BuildRequires: source-highlight #gw for building the checks BuildRequires: glib2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildArch: noarch URL: http://www.gtk.org/gtk-doc/ Requires: libxslt-proc Requires: docbook-utils Requires: docbook-dtd43-xml Requires: docbook-style-xsl Requires: diffutils Requires: dblatex Requires: source-highlight %define _requires_exceptions perl(gtkdoc-common.pl) Requires(post) : scrollkeeper >= 0.3 Requires(postun): scrollkeeper >= 0.3 %description gtk-doc is a tool for generating API reference documentation. it is used for generating the documentation for GTK+, GLib and GNOME. %prep %setup -q # Move this doc file to avoid name collisions mv doc/README doc/README.docs %build ./configure --prefix=%_prefix %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std pkgconfigdir=%pkgconfigdir # include shared directory install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html rm -rf %buildroot/var/lib/scrollkeeper %find_lang %name-manual --with-gnome for omf in %buildroot%_datadir/omf/*/*-??*.omf;do echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed -e s!%buildroot!!)" >> %name-manual.lang done %check PERL5LIB=$(pwd) PATH=$PATH:$(pwd) make check %post %update_scrollkeeper %postun %clean_scrollkeeper %clean rm -rf $RPM_BUILD_ROOT %files -f %name-manual.lang %defattr(-, root, root) %doc AUTHORS README doc/* examples %{_bindir}/* %{_datadir}/gtk-doc %{_datadir}/sgml/gtk-doc %pkgconfigdir/* %{_datadir}/aclocal/* %dir %_datadir/omf/%name-manual %_datadir/omf/%name-manual/*-C.omf %changelog * Sun Mar 28 2010 Götz Waschk <waschk@mandriva.org> 1.14-1mdv2010.1 + Revision: 528609 - new version - drop patch * Sun Dec 27 2009 Funda Wang <fwang@mandriva.org> 1.13-2mdv2010.1 + Revision: 482625 - add upstream patch to fix problem when building without module specified * Fri Dec 18 2009 Götz Waschk <waschk@mandriva.org> 1.13-1mdv2010.1 + Revision: 480015 - enable support for dblatex and source-highlight - new version - drop patch - update file list + Funda Wang <fwang@mandriva.org> - update url * Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.11-4mdv2010.0 + Revision: 425055 - rebuild * Wed Mar 18 2009 Götz Waschk <waschk@mandriva.org> 1.11-3mdv2009.1 + Revision: 357179 - fix for files with spaces in their names * Mon Nov 17 2008 Götz Waschk <waschk@mandriva.org> 1.11-2mdv2009.1 + Revision: 303874 - enable checks * Mon Nov 17 2008 Götz Waschk <waschk@mandriva.org> 1.11-1mdv2009.1 + Revision: 303860 - update build deps - new version - fix build - update license - update file list * Wed Aug 06 2008 Thierry Vignaud <tv@mandriva.org> 1.10-2mdv2009.0 + Revision: 264644 - rebuild early 2009.0 package (before pixel changes) * Tue Apr 08 2008 Götz Waschk <waschk@mandriva.org> 1.10-1mdv2009.0 + Revision: 192413 - new version + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Fri Oct 05 2007 Götz Waschk <waschk@mandriva.org> 1.9-1mdv2008.1 + Revision: 95553 - new version - update file list - fix configure call * Fri Feb 16 2007 Götz Waschk <waschk@mandriva.org> 1.8-1mdv2007.0 + Revision: 121905 - Import gtk-doc * Fri Feb 16 2007 Götz Waschk <waschk@mandriva.org> 1.8-1mdv2007.1 - use the new macros - remove scrollkeeper files - New version 1.8 * Mon Jul 31 2006 Götz Waschk <waschk@mandriva.org> 1.7-1mdv2007.0 - New release 1.7 * Thu Jul 27 2006 Frederic Crozat <fcrozat@mandriva.com> 1.6-2mdv2007.0 - Add missing dependency * Mon Apr 10 2006 Götz Waschk <waschk@mandriva.org> 1.6-1mdk - New release 1.6 * Tue Mar 07 2006 Götz Waschk <waschk@mandriva.org> 1.5-1mdk - add scrollkeeper stuff - New release 1.5 * Wed Feb 22 2006 Frederic Crozat <fcrozat@mandriva.com> 1.4-2mdk - Use mkrel * Thu Jul 07 2005 Götz Waschk <waschk@mandriva.org> 1.4-1mdk - New release 1.4 * Fri Apr 29 2005 Götz Waschk <waschk@mandriva.org> 1.3-2mdk - fix pkgconfig file location * Mon Jan 10 2005 Götz Waschk <waschk@linux-mandrake.com> 1.3-1mdk - new source URL - New release 1.3 * Sat Apr 03 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2-1mdk - Release 1.2