# # spec file for package gtk-doc # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: gtk-doc Version: 1.18 Release: 0 Summary: GTK+ DocBook Documentation Generator License: GPL-2.0+ Group: Productivity/Publishing/SGML Url: http://www.gtk.org/gtk-doc/ Source: http://download.gnome.org/sources/gtk-doc/1.18/%{name}-%{version}.tar.bz2 # When updating this package, please don't forget to update the gtk-doc.m4 Source # in glib2. BuildRequires: docbook-xsl-stylesheets BuildRequires: gnome-doc-utils-devel BuildRequires: libxslt BuildRequires: openjade BuildRequires: pkg-config BuildRequires: python BuildRequires: sgml-skel Requires: docbook-dsssl-stylesheets Requires: docbook-xsl-stylesheets Requires: docbook_4 Requires: libxml2 Requires: libxslt Requires: openjade Recommends: source-highlight # Old for <= 10.2 & CODE10 Provides: gtkdoc = %{version} Obsoletes: gtkdoc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description Gtkdoc is a set of Perl scripts that generate API reference documentation in DocBook format. It can extract documentation from source code comments in a manner similar to Java-doc. It is used to generate the documentation for GLib, Gtk+, and GNOME. %prep %setup -q %build %configure --disable-scrollkeeper make %{?_smp_mflags} %install %make_install mkdir -p %{buildroot}%{_datadir}/gtk-doc/html mv -v doc/README doc/doc.README %files %defattr(-,root,root) %doc AUTHORS COPYING COPYING-DOCS ChangeLog NEWS README TODO doc/* %{_bindir}/gtkdoc-* %{_bindir}/gtkdocize %dir %{_datadir}/aclocal %{_datadir}/aclocal/gtk-doc.m4 %{_datadir}/gtk-doc/ %{_datadir}/pkgconfig/gtk-doc.pc %{_datadir}/sgml/gtk-doc/ %doc %{_datadir}/gnome/help/gtk-doc-manual/ %doc %{_datadir}/omf/gtk-doc-manual/ # We have to own those directories since we can't depend on anything that will # own them, unfortunately :/ %dir %{_datadir}/gnome %dir %{_datadir}/gnome/help %dir %{_datadir}/omf %clean rm -rf %{buildroot} %changelog