base-specs/gtk-doc.spec
author yippi
Thu, 31 May 2012 20:16:52 +0000
changeset 22481 1ff6784d9b6f
parent 22198 c07430be2af1
permissions -rw-r--r--
2012-05-31 Brian Cameron <[email protected]> * base-specs/shared-mime-info.spec: Bump to 1.0. * base-specs/nautilus.spec, base-specs/pulseaudio.spec, base-specs/gnome-settings-daemon.spec, specs/SUNWdconf.spec: Add patch comments. * base-specs/gnome-panel.spec: Add --disable-telepathy-glib so it does not build with this module we do not deliver.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
     4
# Copyright 2009 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16430
diff changeset
     8
%define owner laca
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
15377
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
    10
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
    11
%define pythonver 2.6
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
    12
17852
edfc096bfd70 2010-04-16 Christian Kelly <[email protected]>
chrisk
parents: 17773
diff changeset
    13
%define OSR LFI#105446 (gnome Exec. summary):n/a
16430
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15425
diff changeset
    14
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Name:			gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
License:		GPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Group:			Utilities/Text
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
BuildArchitectures:	noarch
22198
c07430be2af1 2011-10-21 Brian Cameron <[email protected]>
yippi
parents: 21848
diff changeset
    19
Version:		1.18
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    20
Release:		1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Distribution:		Java Desktop System
17864
337913e88a9d 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 17852
diff changeset
    22
Vendor:			Gnome Community
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Summary:		GTK+ DocBook Documentation Generator
18009
f1edb0605318 2010-05-21 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    24
Source:			http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/gtk-doc-%{version}.tar.bz2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
URL:			http://www.gnome.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%define libxslt_version 1.0.19
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%define libxml2_version 2.5.3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
BuildRequires: docbook-xsl-stylesheets
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: libxml2 >= %{libxml2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires: libxslt >= %{libxslt_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
gtk-doc is a set of perl scripts that generate API reference documention in
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
DocBook format.  It can extract documentation from source code comments in a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
manner similar to java-doc.  It is used to generate the documentation for
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
GLib, Gtk+, and GNOME.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
22198
c07430be2af1 2011-10-21 Brian Cameron <[email protected]>
yippi
parents: 21848
diff changeset
    58
aclocal-1.11 $ACLOCAL_FLAGS
c07430be2af1 2011-10-21 Brian Cameron <[email protected]>
yippi
parents: 21848
diff changeset
    59
automake-1.11 -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
CFLAGS="$RPM_OPT_FLAGS"
15377
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
    62
export PYTHON=/usr/bin/python%{pythonver}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
./configure $MYARCH_FLAGS --prefix=%{_prefix}		\
14718
6366b9eb7ae9 2008-12-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 14710
diff changeset
    64
                          --disable-scrollkeeper        \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
                	  --sysconfdir=%{_sysconfdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
for f in `find . -name '*.omf' -print`; do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
    echo Creating $f.out
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
    loc=`echo $f | sed -e 's/.*-\([a-zA-Z_]*\).omf/\1/'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
    sed -e 's,url=",url="file://%{_datadir}/gnome/help/gtk-doc-manual/'${loc}'/,' $f > $f.out
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
make DESTDIR=$RPM_BUILD_ROOT install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%{_datadir}/gtk-doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%{_datadir}/aclocal/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%{_datadir}/sgml/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%changelog
22198
c07430be2af1 2011-10-21 Brian Cameron <[email protected]>
yippi
parents: 21848
diff changeset
    89
* Thu Oct 20 2011 - [email protected]
c07430be2af1 2011-10-21 Brian Cameron <[email protected]>
yippi
parents: 21848
diff changeset
    90
- Bump to 1.18.
18009
f1edb0605318 2010-05-21 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    91
* Fri May 21 2010 - [email protected]
f1edb0605318 2010-05-21 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    92
- Bump to 1.15.
17773
529e4724ccce 2010-03-29 Brian Cameron <[email protected]>
yippi
parents: 17206
diff changeset
    93
* Mon Mar 29 2010 - [email protected]
18009
f1edb0605318 2010-05-21 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    94
- Bump to 1.14.
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    95
* Fri Dec 18 2009 - [email protected]
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    96
- Bump to 1.13.  Remove upstream gtk-doc-01-cmp-space-escape.diff patch.
15425
3dd7b0eb0191 Add patch 01-cmp-space-escape.diff to handle the file name with space char.
davelam
parents: 15377
diff changeset
    97
* Wed mar 18 2009 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    98
- Add patch 01-cmp-space-escape.diff to handle the file name that contains
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
    99
  space.
15377
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
   100
* Thu Mar 12 2009 - [email protected]
f958f4ffbfb5 2009-03-12 Brian Cameron <[email protected]>
yippi
parents: 14718
diff changeset
   101
- Change pythonver from 2.5 to 2.6.
14718
6366b9eb7ae9 2008-12-05 Laszlo (Laca) Peter <[email protected]>
laca
parents: 14710
diff changeset
   102
* Fri Dec  5 2008 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   103
- delete old scrollkeeper hack and disable scrollkeeper install properly.
14710
e18e7910112a bump gtk-doc to 1.11
davelam
parents: 11980
diff changeset
   104
* Thu Dec 04 2008 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   105
- Bump to 1.11.
11980
94840d79b2b5 base-specs/gtk-doc.spec: Change download dir
pale
parents: 11892
diff changeset
   106
* Mon Mar 31 2008 - [email protected]
94840d79b2b5 base-specs/gtk-doc.spec: Change download dir
pale
parents: 11892
diff changeset
   107
- Change download directory to 1.10
11892
73c9890643d1 2008-03-23 Damien Carbery <[email protected]>
dcarbery
parents: 11312
diff changeset
   108
* Sun Mar 23 2008 - [email protected]
73c9890643d1 2008-03-23 Damien Carbery <[email protected]>
dcarbery
parents: 11312
diff changeset
   109
- Bump to 1.10.
10591
0483bc0ee44e 2007-10-02 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   110
* Tue Oct  2 2007 - [email protected]
0483bc0ee44e 2007-10-02 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   111
- Bump to 1.9.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
* Fri Feb 16 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
- Bump to 1.8.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
* Sat Sep 16 2006 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   115
- set scrollkeeper_config so that docs are always installed.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
- create .omf.out files using sed since scrollkeeper-preinstall is not
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   117
  available yet.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
* Mon Jul 31 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
- Bump to 1.7.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
* Tue Apr 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
- Specify ACLOCAL_FLAGS for use on Solaris to find a pkgconfig macro.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Mon Apr 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- Bump to 1.6.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
* Tue Mar  7 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
- Bump to 1.5.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
* Fri May 06 2005 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   127
- Bump to 1.3.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
* Tue Aug 24 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
- Added BuildRequires with docbook-xsl-stylesheets.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
  so that this can be detected even at -bp state.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
* Wed Jul 07 2004 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   132
- added "-j $CPUS" to make to speed up builds.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
* Mon Feb 23 2004 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   134
- Back up to 1.1 as 1.2 DTD XML is causing build failures... DANG.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Mon Dec 15 2003 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   136
- Add the m4 macro to installation.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
* Sat Oct 04 2003 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
- upgrade to 1.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
* Thu May 12 2003 - [email protected]
17206
c9355ec42045 2009-12-18 Brian Cameron <[email protected]>
yippi
parents: 16434
diff changeset
   140
- Created new spec file for gtk-doc.