Name: gtk-doc
License: GPL
Group: Utilities/Text
BuildArchitectures: noarch
Version: 1.1
Release: 24
Distribution: Cinnabar
Vendor: Sun Microsystems, Inc.
Summary: GTK+ DocBook Documentation Generator
Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.2/gtk-doc-%{version}.tar.bz2
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: on
%define libxslt_version 1.0.19
%define libxml2_version 2.5.3
BuildRequires: docbook-xsl-stylesheets
Requires: libxml2 >= %{libxml2_version}
Requires: libxslt >= %{libxslt_version}
%description
gtk-doc is a set of perl scripts that generate API reference documention 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
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
CFLAGS="$RPM_OPT_FLAGS"
./configure $MYARCH_FLAGS --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir}
make -j $CPUS
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/gtk-doc/*
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/*
%changelog
* Tue Aug 24 2004 - [email protected]
- Added BuildRequires with docbook-xsl-stylesheets.
so that this can be detected even at -bp state.
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds
* Mon Feb 23 2004 - [email protected]
- Back up to 1.1 as 1.2 DTD XML is causing build failures... DANG
* Mon Dec 15 2003 - [email protected]
- Add the m4 macro to installation
* Sat Oct 04 2003 - [email protected]
- upgrade to 1.1
* Thu May 12 2003 - [email protected]
- Created new spec file for gtk-doc