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