]>
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 |
03728cdf | 11 | Version: 1.30 |
dfc877b4 | 12 | Release: 2 |
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 |
03728cdf | 16 | # Source0-md5: 1045ba29ca0693ced2045523407aae4c |
72b3d8bc | 17 | Patch0: %{name}-noarch.patch |
dfc877b4 | 18 | Patch1: %{name}-chmod.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 |
06182df0 | 23 | BuildRequires: docbook-style-xsl-nons >= 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 |
90d76ebc | 29 | BuildRequires: python3 >= 1:3.2 |
1aa783e1 | 30 | BuildRequires: rpm-pythonprov |
0845d9f0 | 31 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
ce8e0528 | 32 | BuildRequires: rpmbuild(macros) >= 1.446 |
231cbe6f MB |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
ce8e0528 | 35 | %{?with_gnome:BuildRequires: yelp-tools} |
cef1438c | 36 | Requires: %{name}-automake = %{version}-%{release} |
1089fddb | 37 | Requires: docbook-dtd43-xml |
06182df0 | 38 | Requires: docbook-style-xsl-nons >= 1.74.0 |
edb19d8c | 39 | Requires: libxml2 >= 1:2.3.6 |
06bbea80 | 40 | Requires: libxslt-progs >= 1.1.15 |
03728cdf JB |
41 | Requires: python3-pygments |
42 | # +for mkhtml2: python3-anytree python3-lxml | |
a951711c | 43 | Conflicts: pkgconfig < 1:0.19 |
03728cdf | 44 | %{!?with_tests:BuildArch: noarch} |
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} |
dfc877b4 | 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 | --disable-silent-rules |
102 | ||
7b22e308 | 103 | %{__make} |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
463d5dc7 | 107 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} \ |
20f2d0c2 | 108 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7b22e308 | 109 | |
7f12a063 | 110 | %{__make} install \ |
111 | DESTDIR=$RPM_BUILD_ROOT | |
7b22e308 | 112 | |
20f2d0c2 | 113 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
114 | ||
f194c8a9 | 115 | %if %{with gnome} |
ce8e0528 | 116 | %find_lang gtk-doc-manual --with-gnome |
f194c8a9 | 117 | %endif |
a52ff9f8 | 118 | |
7b22e308 | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
ce8e0528 | 122 | %files %{?with_gnome:-f gtk-doc-manual.lang} |
7b22e308 | 123 | %defattr(644,root,root,755) |
20f2d0c2 | 124 | %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/* |
0897b407 JB |
125 | %attr(755,root,root) %{_bindir}/gtkdoc-* |
126 | %attr(755,root,root) %{_bindir}/gtkdocize | |
03728cdf | 127 | %{_datadir}/cmake/GtkDoc |
be69a2b3 | 128 | %{_datadir}/gtk-doc |
ce8e0528 | 129 | %{_npkgconfigdir}/gtk-doc.pc |
20f2d0c2 | 130 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 131 | |
1089fddb JB |
132 | %files automake |
133 | %defattr(644,root,root,755) | |
134 | %{_aclocaldir}/gtk-doc.m4 | |
135 | ||
1ec56c5d | 136 | %files common |
137 | %defattr(644,root,root,755) | |
36ab6cad | 138 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 139 | %dir %{_gtkdocdir} |