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