1 | # -*- mode: rpm-spec -*- |
---|
2 | |
---|
3 | Summary: GTK+ DocBook Documentation Generator |
---|
4 | Name: gtk-doc |
---|
5 | Version: @VERSION@ |
---|
6 | Release: 1 |
---|
7 | License: GPL |
---|
8 | Group: Utilities/Text |
---|
9 | Source: ftp://ftp.gtk.org/pub/gtk/v1.1/docs/rdp/gtk-doc-%{version}.tar.gz |
---|
10 | BuildRoot: /var/tmp/%{name}-%{version}-root |
---|
11 | URL: http://www.gtk.org/rdp/ |
---|
12 | BuildArchitectures: noarch |
---|
13 | Requires: openjade |
---|
14 | Requires: perl >= 5.6.0 |
---|
15 | Requires: libxslt |
---|
16 | Requires: docbook-dtds |
---|
17 | Requires: docbook-style-xsl |
---|
18 | Provides: perl(gtkdoc-common.pl) |
---|
19 | |
---|
20 | BuildRequires: perl, openjade, libxslt, docbook-dtds, docbook-style-xsl |
---|
21 | |
---|
22 | %description |
---|
23 | gtk-doc is a set of perl scripts that generate API reference documention in |
---|
24 | DocBook format. It can extract documentation from source code comments in a |
---|
25 | manner similar to java-doc. It is used to generate the documentation for |
---|
26 | GLib, Gtk+, and GNOME. |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q |
---|
30 | |
---|
31 | # Move this doc file to avoid name collisions |
---|
32 | mv doc/README doc/README.docs |
---|
33 | |
---|
34 | %build |
---|
35 | CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \ |
---|
36 | --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} |
---|
37 | |
---|
38 | make |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | |
---|
43 | make prefix=$RPM_BUILD_ROOT%{_prefix} \ |
---|
44 | sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ |
---|
45 | datadir=$RPM_BUILD_ROOT%{_datadir} install |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %files |
---|
51 | %defattr(-, root, root) |
---|
52 | |
---|
53 | %doc AUTHORS COPYING ChangeLog README doc/* examples |
---|
54 | # INSTALL is generic instructions from autoconf |
---|
55 | # NEWS is currently empty |
---|
56 | # %doc INSTALL |
---|
57 | %doc NEWS |
---|
58 | |
---|
59 | %{_bindir}/* |
---|
60 | %dir %{_datadir}/gtk-doc |
---|
61 | %dir %{_datadir}/gtk-doc/html |
---|
62 | %dir %{_datadir}/gtk-doc/data |
---|
63 | %{_datadir}/gtk-doc/data/* |
---|
64 | %{_libdir}/pkgconfig/* |
---|
65 | |
---|
66 | %changelog |
---|
67 | * Tue Jun 03 2003 Matthias Clasen <maclas@gmx.de> |
---|
68 | - Add a missing Provides: and include the .pc file. |
---|
69 | (#106568, Joe Pranevich) |
---|
70 | |
---|
71 | * Sun Aug 12 2001 Jens Finke <jens@gnome.org> |
---|
72 | - Modified to match GPP standard: |
---|
73 | - Changed to Copyright to License |
---|
74 | - Don't use hardcoded path, use rpm macros instead |
---|
75 | - Moved ChangeLog to the end of the file. |
---|
76 | - Removed packager |
---|
77 | - Don't set docdir path. |
---|
78 | - Use /var/tmp as installation prefix |
---|
79 | |
---|
80 | * Fri Apr 27 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu> |
---|
81 | - Merge in some of the features of the redhat spec file. |
---|
82 | |
---|
83 | * Wed Nov 15 2000 John Gotts <jgotts@linuxsavvy.com> |
---|
84 | - Minor updates for 0.4. |
---|
85 | * Thu Aug 26 1999 John E. Gotts <jgotts@engin.umich.edu> |
---|
86 | - Created spec file. |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | |
---|