#
# Conditional build:
%bcond_with tests # build regression tests programs
+%bcond_without gnome # build without gtk-doc-manual in GNOME help format
#
%include /usr/lib/rpm/macros.perl
#
Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME
Summary(pt_BR.UTF-8): O gerador de documentação do GTK
Name: gtk-doc
-Version: 1.14
+Version: 1.21
Release: 1
License: GPL v2+
Group: Development/Tools
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.14/%{name}-%{version}.tar.bz2
-# Source0-md5: 7aa8a1262c70692ebbdf33395fddd5c4
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: e361de4750b707590d9ea1b5550fa738
Patch0: %{name}-noarch.patch
URL: http://www.gtk.org/rdp/
-BuildRequires: autoconf >= 2.58
-BuildRequires: automake
-BuildRequires: docbook-dtd412-xml >= 1.0-10
+BuildRequires: autoconf >= 2.63
+BuildRequires: automake >= 1:1.11
BuildRequires: docbook-dtd43-xml
BuildRequires: docbook-style-xsl >= 1.74.0
-BuildRequires: gettext-devel
%{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0}
-BuildRequires: gnome-common >= 2.12.0-3
-BuildRequires: gnome-doc-utils >= 0.3.2
%{?with_tests:BuildRequires: libtool}
BuildRequires: libxslt-progs >= 1.1.15
BuildRequires: perl-base >= 1:5.6.0
BuildRequires: pkgconfig >= 1:0.19
-BuildRequires: python >= 2.3
+BuildRequires: python >= 1:2.3
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(find_lang) >= 1.23
-BuildRequires: scrollkeeper >= 1:0.3.5
-Requires(post,postun): scrollkeeper
+BuildRequires: rpmbuild(macros) >= 1.446
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+%{?with_gnome:BuildRequires: yelp-tools}
Requires: %{name}-automake = %{version}-%{release}
Requires: docbook-dtd43-xml
Requires: docbook-style-dsssl >= 1.77
%{!?with_tests:BuildArch: noarch}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# architecture-independant pkgconfig dir
-%define _pkgconfigdir %{_datadir}/pkgconfig
-
%description
gtk-doc is a tool for generating API reference documentation. It is
used for generating the documentation for GTK+, GLib and GNOME.
mv -f doc/README doc/README.docs
%build
-%{__gnome_doc_common}
%{?with_tests:%{__libtoolize}}
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
%configure \
- HIGHLIGHT="%{_bindir}/source-highlight"
+ HIGHLIGHT="%{_bindir}/source-highlight" \
+ --disable-silent-rules
+
%{__make}
%install
install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%find_lang %{name} --with-gnome --with-omf --all-name
+%if %{with gnome}
+%find_lang gtk-doc-manual --with-gnome
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-%scrollkeeper_update_post
-
-%postun
-%scrollkeeper_update_postun
-
-%files -f %{name}.lang
+%files %{?with_gnome:-f gtk-doc-manual.lang}
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
%attr(755,root,root) %{_bindir}/gtkdoc-*
%attr(755,root,root) %{_bindir}/gtkdocize
%{_datadir}/gtk-doc
-%{_pkgconfigdir}/%{name}.pc
+%{_npkgconfigdir}/gtk-doc.pc
%{_datadir}/sgml/%{name}
%{_examplesdir}/%{name}-%{version}