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