gtk-doc.spec revision 10139
10139N/A#
10139N/A# spec file for package gtk-doc
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: laca
10139N/A#
10139N/AName: gtk-doc
10139N/ALicense: GPL
10139N/AGroup: Utilities/Text
11066N/ABuildArchitectures: noarch
10139N/AVersion: 1.8
10139N/ARelease: 2
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10596N/ASummary: GTK+ DocBook Documentation Generator
10778N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.8/gtk-doc-%{version}.tar.bz2
10972N/AURL: http://www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/A
10139N/A%define libxslt_version 1.0.19
10139N/A%define libxml2_version 2.5.3
10139N/A
10139N/ABuildRequires: docbook-xsl-stylesheets
10139N/ARequires: libxml2 >= %{libxml2_version}
10139N/ARequires: libxslt >= %{libxslt_version}
10139N/A
10139N/A%description
10139N/Agtk-doc is a set of perl scripts that generate API reference documention in
10139N/ADocBook format. It can extract documentation from source code comments in a
10139N/Amanner similar to java-doc. It is used to generate the documentation for
10139N/AGLib, Gtk+, and GNOME.
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A
10139N/A%build
10139N/A%ifos linux
10748N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/A# make sure gtk-doc help is installed even though scrollkeeper has
10139N/A# not yet been built
10139N/Aexport scrollkeeper_config=/bin/true
10139N/A
10139N/Alibtoolize --force
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautomake -a -c -f
10778N/Aautoconf
10778N/ACFLAGS="$RPM_OPT_FLAGS"
10139N/A./configure $MYARCH_FLAGS --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Afor f in `find . -name '*.omf' -print`; do
10139N/A echo Creating $f.out
10139N/A loc=`echo $f | sed -e 's/.*-\([a-zA-Z_]*\).omf/\1/'`
10139N/A sed -e 's,url=",url="file://%{_datadir}/gnome/help/gtk-doc-manual/'${loc}'/,' $f > $f.out
10139N/Adone
10139N/A
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%{_bindir}/*
10139N/A%{_datadir}/gtk-doc/*
10139N/A%{_datadir}/aclocal/*
10139N/A%{_datadir}/sgml/*
10424N/A%{_libdir}/pkgconfig/*
10139N/A
10139N/A%changelog
10139N/A* Fri Feb 16 2007 - damien.carbery@sun.com
10139N/A- Bump to 1.8.
10139N/A* Sat Sep 16 2006 - laca@sun.com
10139N/A- set scrollkeeper_config so that docs are always installed
10139N/A- create .omf.out files using sed since scrollkeeper-preinstall is not
10139N/A available yet
10139N/A* Mon Jul 31 2006 - damien.carbery@sun.com
10139N/A- Bump to 1.7.
10139N/A* Tue Apr 11 2006 - damien.carbery@sun.com
10139N/A- Specify ACLOCAL_FLAGS for use on Solaris to find a pkgconfig macro.
10139N/A* Mon Apr 10 2006 - damien.carbery@sun.com
10139N/A- Bump to 1.6.
10139N/A* Tue Mar 7 2006 - damien.carbery@sun.com
10139N/A- Bump to 1.5.
10139N/A* Fri May 06 2005 - glynn.foster@sun.com
10139N/A- Bump to 1.3
10139N/A* Tue Aug 24 2004 - ghee.teo@sun.com
10139N/A- Added BuildRequires with docbook-xsl-stylesheets.
10139N/A so that this can be detected even at -bp state.
10139N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
10139N/A- added "-j $CPUS" to make to speed up builds
10139N/A* Mon Feb 23 2004 - matt.keenan@sun.com
10139N/A- Back up to 1.1 as 1.2 DTD XML is causing build failures... DANG
10139N/A* Mon Dec 15 2003 - glynn.foster@sun.com
10139N/A- Add the m4 macro to installation
10139N/A* Sat Oct 04 2003 - laca@sun.com
10139N/A- upgrade to 1.1
10139N/A* Thu May 12 2003 - ghee.teo@Sun.COM
10139N/A- Created new spec file for gtk-doc
10139N/A