]>
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 |
b99cc764 | 11 | Version: 1.33.2 |
1239a330 | 12 | Release: 5 |
b70cae61 | 13 | License: GPL v2+ |
7b22e308 | 14 | Group: Development/Tools |
66e77da0 | 15 | Source0: https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz |
b99cc764 | 16 | # Source0-md5: ea6563421abe964d02135ca0d5b8dd8e |
72b3d8bc | 17 | Patch0: %{name}-noarch.patch |
d5827bf8 | 18 | Patch1: %{name}-cmake.patch |
5ea2d35e | 19 | Patch2: %{name}-struct-end.patch |
c0228ccc | 20 | URL: https://wiki.gnome.org/DocumentationProject/GtkDoc |
231cbe6f MB |
21 | BuildRequires: autoconf >= 2.63 |
22 | BuildRequires: automake >= 1:1.11 | |
074b1085 | 23 | BuildRequires: docbook-dtd43-xml |
06182df0 | 24 | BuildRequires: docbook-style-xsl-nons >= 1.74.0 |
72b3d8bc | 25 | %{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0} |
edb19d8c JB |
26 | %{?with_tests:BuildRequires: libtool >= 2:2.2} |
27 | BuildRequires: libxml2 >= 1:2.3.6 | |
b892fe89 | 28 | BuildRequires: libxslt-progs >= 1.1.15 |
f5cbd25d | 29 | BuildRequires: pkgconfig >= 1:0.19 |
90d76ebc | 30 | BuildRequires: python3 >= 1:3.2 |
1aa783e1 | 31 | BuildRequires: rpm-pythonprov |
0845d9f0 | 32 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
66e77da0 | 33 | BuildRequires: rpmbuild(macros) >= 1.752 |
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 |
06182df0 | 39 | Requires: docbook-style-xsl-nons >= 1.74.0 |
edb19d8c | 40 | Requires: libxml2 >= 1:2.3.6 |
06bbea80 | 41 | Requires: libxslt-progs >= 1.1.15 |
03728cdf JB |
42 | Requires: python3-pygments |
43 | # +for mkhtml2: python3-anytree python3-lxml | |
a951711c | 44 | Conflicts: pkgconfig < 1:0.19 |
03728cdf | 45 | %{!?with_tests:BuildArch: noarch} |
3765bdbf | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b22e308 | 47 | |
48 | %description | |
49 | gtk-doc is a tool for generating API reference documentation. It is | |
50 | used for generating the documentation for GTK+, GLib and GNOME. | |
51 | ||
a5a7e927 JR |
52 | %description -l pl.UTF-8 |
53 | gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany | |
b3e13577 JB |
54 | do generowania dokumentacji GLib, GTK+ i GNOME. |
55 | ||
1089fddb JB |
56 | %package automake |
57 | Summary: Automake macros for gtk-doc | |
58 | Summary(pl.UTF-8): Makra automake'a do gtk-doc | |
59 | Group: Development/Tools | |
60 | Requires: automake | |
edb19d8c JB |
61 | Requires: pkgconfig |
62 | Conflicts: glib2-devel < 1:2.10.0 | |
1089fddb | 63 | Conflicts: gtk-doc < 0:1.4-3 |
6e33f116 | 64 | BuildArch: noarch |
1089fddb JB |
65 | |
66 | %description automake | |
67 | Automake macros for gtk-doc. | |
68 | ||
69 | %description automake -l pl.UTF-8 | |
70 | Makra automake'a do gtk-doc. | |
71 | ||
1ec56c5d | 72 | %package common |
73 | Summary: Common directories for documetation generated using gtk-doc | |
74774265 | 74 | Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc |
b892fe89 | 75 | Group: Development |
6e33f116 | 76 | BuildArch: noarch |
1ec56c5d | 77 | |
78 | %description common | |
f1036ddf | 79 | Common directories for API documentation for various packages, |
80 | generated using gtk-doc. | |
1ec56c5d | 81 | |
a5a7e927 JR |
82 | %description common -l pl.UTF-8 |
83 | Katalogi na dokumentację API do różnych pakietów, wygenerowaną za | |
84 | pomocą gtk-doc. | |
1ec56c5d | 85 | |
7b22e308 | 86 | %prep |
7b22e308 | 87 | %setup -q |
72b3d8bc | 88 | %{!?with_tests:%patch0 -p1} |
d5827bf8 | 89 | %patch1 -p1 |
5ea2d35e | 90 | %patch2 -p1 |
539d664e | 91 | |
d98bfe37 | 92 | %{__mv} doc/README doc/README.docs |
7b22e308 | 93 | |
94 | %build | |
6f364e48 | 95 | install -d build-aux |
72b3d8bc | 96 | %{?with_tests:%{__libtoolize}} |
a4d529c8 | 97 | %{__aclocal} -I m4 |
65b2d50e | 98 | %{__autoconf} |
99 | %{__automake} | |
a4d529c8 | 100 | %configure \ |
74fab98c | 101 | PKG_CONFIG=/usr/bin/pkg-config \ |
21ea4191 MB |
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 | |
03728cdf | 128 | %{_datadir}/cmake/GtkDoc |
be69a2b3 | 129 | %{_datadir}/gtk-doc |
ce8e0528 | 130 | %{_npkgconfigdir}/gtk-doc.pc |
20f2d0c2 | 131 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 132 | |
1089fddb JB |
133 | %files automake |
134 | %defattr(644,root,root,755) | |
135 | %{_aclocaldir}/gtk-doc.m4 | |
136 | ||
1ec56c5d | 137 | %files common |
138 | %defattr(644,root,root,755) | |
36ab6cad | 139 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 140 | %dir %{_gtkdocdir} |