]>
Commit | Line | Data |
---|---|---|
60bdc4ff | 1 | # |
72b3d8bc SS |
2 | # Conditional build: |
3 | %bcond_with tests # build regression tests programs | |
b3c0fe9b | 4 | %bcond_without gnome # build without gnome-doc |
72b3d8bc | 5 | # |
60bdc4ff | 6 | %include /usr/lib/rpm/macros.perl |
7 | # | |
7b22e308 | 8 | Summary: API documentation generation tool for GTK+ and GNOME |
74774265 ER |
9 | Summary(es.UTF-8): El generador de documentación del GTK |
10 | Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME | |
11 | Summary(pt_BR.UTF-8): O gerador de documentação do GTK | |
7b22e308 | 12 | Name: gtk-doc |
c06bc04e | 13 | Version: 1.20 |
3a2048f3 | 14 | Release: 1 |
b70cae61 | 15 | License: GPL v2+ |
7b22e308 | 16 | Group: Development/Tools |
c06bc04e JB |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.20/%{name}-%{version}.tar.xz |
18 | # Source0-md5: 58532fed036f72fc3bfd4fe79473247b | |
72b3d8bc | 19 | Patch0: %{name}-noarch.patch |
b3e13577 | 20 | URL: http://www.gtk.org/rdp/ |
231cbe6f MB |
21 | BuildRequires: autoconf >= 2.63 |
22 | BuildRequires: automake >= 1:1.11 | |
591d7987 | 23 | BuildRequires: docbook-dtd412-xml >= 1.0-10 |
074b1085 | 24 | BuildRequires: docbook-dtd43-xml |
cd365e4b | 25 | BuildRequires: docbook-style-xsl >= 1.74.0 |
2944aaa9 | 26 | BuildRequires: gettext-devel |
72b3d8bc | 27 | %{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0} |
b3c0fe9b JK |
28 | %{?with_gnome:BuildRequires: gnome-common >= 2.12.0-3} |
29 | %{?with_gnome:BuildRequires: gnome-doc-utils >= 0.3.2} | |
72b3d8bc | 30 | %{?with_tests:BuildRequires: libtool} |
b892fe89 | 31 | BuildRequires: libxslt-progs >= 1.1.15 |
57b68753 | 32 | BuildRequires: perl-base >= 1:5.6.0 |
f5cbd25d | 33 | BuildRequires: pkgconfig >= 1:0.19 |
1089fddb | 34 | BuildRequires: python >= 2.3 |
60bdc4ff | 35 | BuildRequires: rpm-perlprov >= 4.1-13 |
1aa783e1 | 36 | BuildRequires: rpm-pythonprov |
0845d9f0 | 37 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
436fce70 | 38 | BuildRequires: scrollkeeper >= 1:0.3.5 |
231cbe6f MB |
39 | BuildRequires: tar >= 1:1.22 |
40 | BuildRequires: xz | |
9f83d836 | 41 | Requires(post,postun): scrollkeeper |
cef1438c | 42 | Requires: %{name}-automake = %{version}-%{release} |
1089fddb | 43 | Requires: docbook-dtd43-xml |
1fb28e76 | 44 | Requires: docbook-style-dsssl >= 1.77 |
ea5747a2 | 45 | Requires: docbook-style-xsl >= 1.74.0 |
7dad3221 | 46 | Requires: docbook-utils >= 0.6.10 |
06bbea80 | 47 | Requires: libxslt-progs >= 1.1.15 |
7b22e308 | 48 | Requires: openjade |
56e3bd38 | 49 | Requires: source-highlight |
a951711c | 50 | Conflicts: pkgconfig < 1:0.19 |
72b3d8bc | 51 | %{!?with_tests:BuildArch: noarch} |
3765bdbf | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b22e308 | 53 | |
60bdc4ff | 54 | # architecture-independant pkgconfig dir |
55 | %define _pkgconfigdir %{_datadir}/pkgconfig | |
56 | ||
7b22e308 | 57 | %description |
58 | gtk-doc is a tool for generating API reference documentation. It is | |
59 | used for generating the documentation for GTK+, GLib and GNOME. | |
60 | ||
a5a7e927 JR |
61 | %description -l pl.UTF-8 |
62 | gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany | |
b3e13577 JB |
63 | do generowania dokumentacji GLib, GTK+ i GNOME. |
64 | ||
1089fddb JB |
65 | %package automake |
66 | Summary: Automake macros for gtk-doc | |
67 | Summary(pl.UTF-8): Makra automake'a do gtk-doc | |
68 | Group: Development/Tools | |
69 | Requires: automake | |
70 | Conflicts: gtk-doc < 0:1.4-3 | |
71 | ||
72 | %description automake | |
73 | Automake macros for gtk-doc. | |
74 | ||
75 | %description automake -l pl.UTF-8 | |
76 | Makra automake'a do gtk-doc. | |
77 | ||
1ec56c5d | 78 | %package common |
79 | Summary: Common directories for documetation generated using gtk-doc | |
74774265 | 80 | Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc |
b892fe89 | 81 | Group: Development |
1ec56c5d | 82 | |
83 | %description common | |
f1036ddf | 84 | Common directories for API documentation for various packages, |
85 | generated using gtk-doc. | |
1ec56c5d | 86 | |
a5a7e927 JR |
87 | %description common -l pl.UTF-8 |
88 | Katalogi na dokumentację API do różnych pakietów, wygenerowaną za | |
89 | pomocą gtk-doc. | |
1ec56c5d | 90 | |
7b22e308 | 91 | %prep |
7b22e308 | 92 | %setup -q |
72b3d8bc | 93 | %{!?with_tests:%patch0 -p1} |
b3e13577 | 94 | mv -f doc/README doc/README.docs |
7b22e308 | 95 | |
96 | %build | |
b3c0fe9b | 97 | %{?with_gnome:%{__gnome_doc_common}} |
72b3d8bc | 98 | %{?with_tests:%{__libtoolize}} |
a4d529c8 | 99 | %{__aclocal} -I m4 |
65b2d50e | 100 | %{__autoconf} |
101 | %{__automake} | |
a4d529c8 | 102 | %configure \ |
21ea4191 MB |
103 | HIGHLIGHT="%{_bindir}/source-highlight" \ |
104 | --disable-silent-rules | |
105 | ||
7b22e308 | 106 | %{__make} |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
463d5dc7 | 110 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} \ |
20f2d0c2 | 111 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7b22e308 | 112 | |
7f12a063 | 113 | %{__make} install \ |
114 | DESTDIR=$RPM_BUILD_ROOT | |
7b22e308 | 115 | |
20f2d0c2 | 116 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
117 | ||
f194c8a9 | 118 | %if %{with gnome} |
0845d9f0 | 119 | %find_lang %{name} --with-gnome --with-omf --all-name |
c633cd6c | 120 | %else |
bee9c6e0 | 121 | touch %{name}.lang |
f194c8a9 | 122 | %endif |
a52ff9f8 | 123 | |
7b22e308 | 124 | %clean |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
9f83d836 | 127 | %post |
128 | %scrollkeeper_update_post | |
129 | ||
130 | %postun | |
131 | %scrollkeeper_update_postun | |
132 | ||
a52ff9f8 | 133 | %files -f %{name}.lang |
7b22e308 | 134 | %defattr(644,root,root,755) |
20f2d0c2 | 135 | %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/* |
0897b407 JB |
136 | %attr(755,root,root) %{_bindir}/gtkdoc-* |
137 | %attr(755,root,root) %{_bindir}/gtkdocize | |
be69a2b3 | 138 | %{_datadir}/gtk-doc |
e0423b2e | 139 | %{_pkgconfigdir}/%{name}.pc |
7f12a063 | 140 | %{_datadir}/sgml/%{name} |
20f2d0c2 | 141 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 142 | |
1089fddb JB |
143 | %files automake |
144 | %defattr(644,root,root,755) | |
145 | %{_aclocaldir}/gtk-doc.m4 | |
146 | ||
1ec56c5d | 147 | %files common |
148 | %defattr(644,root,root,755) | |
36ab6cad | 149 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 150 | %dir %{_gtkdocdir} |