]>
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 |
e8f1877c | 11 | Version: 1.32 |
539d664e | 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 |
e8f1877c | 16 | # Source0-md5: 07764836262e154e94922e5f2aa476ae |
72b3d8bc | 17 | Patch0: %{name}-noarch.patch |
464df307 | 18 | URL: http://www.gtk.org/gtk-doc/ |
231cbe6f MB |
19 | BuildRequires: autoconf >= 2.63 |
20 | BuildRequires: automake >= 1:1.11 | |
074b1085 | 21 | BuildRequires: docbook-dtd43-xml |
06182df0 | 22 | BuildRequires: docbook-style-xsl-nons >= 1.74.0 |
72b3d8bc | 23 | %{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0} |
edb19d8c JB |
24 | %{?with_tests:BuildRequires: libtool >= 2:2.2} |
25 | BuildRequires: libxml2 >= 1:2.3.6 | |
b892fe89 | 26 | BuildRequires: libxslt-progs >= 1.1.15 |
f5cbd25d | 27 | BuildRequires: pkgconfig >= 1:0.19 |
90d76ebc | 28 | BuildRequires: python3 >= 1:3.2 |
1aa783e1 | 29 | BuildRequires: rpm-pythonprov |
0845d9f0 | 30 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
ce8e0528 | 31 | BuildRequires: rpmbuild(macros) >= 1.446 |
231cbe6f MB |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
ce8e0528 | 34 | %{?with_gnome:BuildRequires: yelp-tools} |
cef1438c | 35 | Requires: %{name}-automake = %{version}-%{release} |
1089fddb | 36 | Requires: docbook-dtd43-xml |
06182df0 | 37 | Requires: docbook-style-xsl-nons >= 1.74.0 |
edb19d8c | 38 | Requires: libxml2 >= 1:2.3.6 |
06bbea80 | 39 | Requires: libxslt-progs >= 1.1.15 |
03728cdf JB |
40 | Requires: python3-pygments |
41 | # +for mkhtml2: python3-anytree python3-lxml | |
a951711c | 42 | Conflicts: pkgconfig < 1:0.19 |
03728cdf | 43 | %{!?with_tests:BuildArch: noarch} |
3765bdbf | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b22e308 | 45 | |
46 | %description | |
47 | gtk-doc is a tool for generating API reference documentation. It is | |
48 | used for generating the documentation for GTK+, GLib and GNOME. | |
49 | ||
a5a7e927 JR |
50 | %description -l pl.UTF-8 |
51 | gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany | |
b3e13577 JB |
52 | do generowania dokumentacji GLib, GTK+ i GNOME. |
53 | ||
1089fddb JB |
54 | %package automake |
55 | Summary: Automake macros for gtk-doc | |
56 | Summary(pl.UTF-8): Makra automake'a do gtk-doc | |
57 | Group: Development/Tools | |
58 | Requires: automake | |
edb19d8c JB |
59 | Requires: pkgconfig |
60 | Conflicts: glib2-devel < 1:2.10.0 | |
1089fddb | 61 | Conflicts: gtk-doc < 0:1.4-3 |
0713dce7 MB |
62 | %if "%{_rpmversion}" >= "5" |
63 | BuildArch: noarch | |
64 | %endif | |
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 |
0713dce7 MB |
76 | %if "%{_rpmversion}" >= "5" |
77 | BuildArch: noarch | |
78 | %endif | |
1ec56c5d | 79 | |
80 | %description common | |
f1036ddf | 81 | Common directories for API documentation for various packages, |
82 | generated using gtk-doc. | |
1ec56c5d | 83 | |
a5a7e927 JR |
84 | %description common -l pl.UTF-8 |
85 | Katalogi na dokumentację API do różnych pakietów, wygenerowaną za | |
86 | pomocą gtk-doc. | |
1ec56c5d | 87 | |
7b22e308 | 88 | %prep |
7b22e308 | 89 | %setup -q |
72b3d8bc | 90 | %{!?with_tests:%patch0 -p1} |
539d664e | 91 | |
d98bfe37 | 92 | %{__mv} doc/README doc/README.docs |
7b22e308 | 93 | |
94 | %build | |
72b3d8bc | 95 | %{?with_tests:%{__libtoolize}} |
a4d529c8 | 96 | %{__aclocal} -I m4 |
65b2d50e | 97 | %{__autoconf} |
98 | %{__automake} | |
a4d529c8 | 99 | %configure \ |
21ea4191 MB |
100 | --disable-silent-rules |
101 | ||
7b22e308 | 102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
463d5dc7 | 106 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} \ |
20f2d0c2 | 107 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7b22e308 | 108 | |
7f12a063 | 109 | %{__make} install \ |
110 | DESTDIR=$RPM_BUILD_ROOT | |
7b22e308 | 111 | |
20f2d0c2 | 112 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
113 | ||
f194c8a9 | 114 | %if %{with gnome} |
ce8e0528 | 115 | %find_lang gtk-doc-manual --with-gnome |
f194c8a9 | 116 | %endif |
a52ff9f8 | 117 | |
7b22e308 | 118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
ce8e0528 | 121 | %files %{?with_gnome:-f gtk-doc-manual.lang} |
7b22e308 | 122 | %defattr(644,root,root,755) |
20f2d0c2 | 123 | %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/* |
0897b407 JB |
124 | %attr(755,root,root) %{_bindir}/gtkdoc-* |
125 | %attr(755,root,root) %{_bindir}/gtkdocize | |
03728cdf | 126 | %{_datadir}/cmake/GtkDoc |
be69a2b3 | 127 | %{_datadir}/gtk-doc |
ce8e0528 | 128 | %{_npkgconfigdir}/gtk-doc.pc |
20f2d0c2 | 129 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 130 | |
1089fddb JB |
131 | %files automake |
132 | %defattr(644,root,root,755) | |
133 | %{_aclocaldir}/gtk-doc.m4 | |
134 | ||
1ec56c5d | 135 | %files common |
136 | %defattr(644,root,root,755) | |
36ab6cad | 137 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 138 | %dir %{_gtkdocdir} |