10139N/A#
10139N/A# spec file for package gtk-doc
10139N/A#
17957N/A# Copyright 2009 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#
17185N/A%define owner laca
10139N/A#
16128N/A
16128N/A%define pythonver 2.6
16128N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
17181N/A
10139N/AName: gtk-doc
10139N/ALicense: GPL
10139N/AGroup: Utilities/Text
10139N/ABuildArchitectures: noarch
20862N/AVersion: 1.18
17957N/ARelease: 1
10139N/ADistribution: Java Desktop System
18615N/AVendor: Gnome Community
10139N/ASummary: GTK+ DocBook Documentation Generator
18760N/ASource: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/gtk-doc-%{version}.tar.bz2
10139N/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
10139N/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
20862N/Aaclocal-1.11 $ACLOCAL_FLAGS
20862N/Aautomake-1.11 -a -c -f
10139N/Aautoconf
10139N/ACFLAGS="$RPM_OPT_FLAGS"
16128N/Aexport PYTHON=/usr/bin/python%{pythonver}
10139N/A./configure $MYARCH_FLAGS --prefix=%{_prefix} \
15469N/A --disable-scrollkeeper \
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/*
10139N/A%{_libdir}/pkgconfig/*
10139N/A
10139N/A%changelog
20862N/A* Thu Oct 20 2011 - brian.cameron@oracle.com
20862N/A- Bump to 1.18.
18760N/A* Fri May 21 2010 - brian.cameron@oracle.com
18760N/A- Bump to 1.15.
18524N/A* Mon Mar 29 2010 - brian.cameron@sun.com
18760N/A- Bump to 1.14.
17957N/A* Fri Dec 18 2009 - brian.cameron@sun.com
17957N/A- Bump to 1.13. Remove upstream gtk-doc-01-cmp-space-escape.diff patch.
16176N/A* Wed mar 18 2009 - dave.lin@sun.com
17957N/A- Add patch 01-cmp-space-escape.diff to handle the file name that contains
17957N/A space.
16128N/A* Thu Mar 12 2009 - brian.cameron@sun.com
16128N/A- Change pythonver from 2.5 to 2.6.
15469N/A* Fri Dec 5 2008 - laca@sun.com
17957N/A- delete old scrollkeeper hack and disable scrollkeeper install properly.
15461N/A* Thu Dec 04 2008 - dave.lin@sun.com
17957N/A- Bump to 1.11.
12722N/A* Mon Mar 31 2008 - patrick.ale@gmail.com
12722N/A- Change download directory to 1.10
12634N/A* Sun Mar 23 2008 - damien.carbery@sun.com
12634N/A- Bump to 1.10.
11333N/A* Tue Oct 2 2007 - damien.carbery@sun.com
11333N/A- Bump to 1.9.
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
17957N/A- set scrollkeeper_config so that docs are always installed.
10139N/A- create .omf.out files using sed since scrollkeeper-preinstall is not
17957N/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
17957N/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
17957N/A- added "-j $CPUS" to make to speed up builds.
10139N/A* Mon Feb 23 2004 - matt.keenan@sun.com
17957N/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
17957N/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
17957N/A- Created new spec file for gtk-doc.