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