]> git.pld-linux.org Git - packages/gtk-doc.git/blobdiff - gtk-doc.spec
- updated to 1.21, massive cleanup
[packages/gtk-doc.git] / gtk-doc.spec
index abf00476299bfc60481177fbf5a3245ea2cf1f42..6ca074506b0b87dd27ef096adb35dd453fd07bb0 100644 (file)
@@ -1,4 +1,8 @@
 #
+# 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:       API documentation generation tool for GTK+ and GNOME
@@ -6,46 +10,43 @@ Summary(es.UTF-8):   El generador de documentación del GTK
 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.11
+Version:       1.21
 Release:       1
 License:       GPL v2+
 Group:         Development/Tools
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.11/%{name}-%{version}.tar.bz2
-# Source0-md5: b5e268c71fa90aad890cf53715664d0a
+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.52
-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: docbook-utils
-BuildRequires: glib2-devel >= 1:2.6.0
-BuildRequires: gnome-common >= 2.12.0-3
-BuildRequires: gnome-doc-utils >= 0.3.2
-BuildRequires: libtool
+%{?with_tests:BuildRequires:   glib2-devel >= 1:2.6.0}
+%{?with_tests:BuildRequires:   libtool}
 BuildRequires: libxslt-progs >= 1.1.15
-BuildRequires: openjade
 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
-Requires:      docbook-style-xsl >= 1.55.0-3
+Requires:      docbook-style-xsl >= 1.74.0
 Requires:      docbook-utils >= 0.6.10
 Requires:      libxslt-progs >= 1.1.15
 Requires:      openjade
+Requires:      source-highlight
 Conflicts:     pkgconfig < 1:0.19
-#BuildArch:    noarch (rejected by autoconf)
+%{!?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.
@@ -82,15 +83,18 @@ pomocą gtk-doc.
 
 %prep
 %setup -q
+%{!?with_tests:%patch0 -p1}
 mv -f doc/README doc/README.docs
 
 %build
-%{__gnome_doc_common}
-%{__libtoolize}
-%{__aclocal}
+%{?with_tests:%{__libtoolize}}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       HIGHLIGHT="%{_bindir}/source-highlight" \
+       --disable-silent-rules
+
 %{__make}
 
 %install
@@ -103,24 +107,20 @@ install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
 
 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}
 
This page took 0.046345 seconds and 4 git commands to generate.