]>
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 | # |
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 |
ce8e0528 | 13 | Version: 1.21 |
3a2048f3 | 14 | Release: 1 |
b70cae61 | 15 | License: GPL v2+ |
7b22e308 | 16 | Group: Development/Tools |
ce8e0528 JB |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz |
18 | # Source0-md5: e361de4750b707590d9ea1b5550fa738 | |
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 | |
074b1085 | 23 | BuildRequires: docbook-dtd43-xml |
cd365e4b | 24 | BuildRequires: docbook-style-xsl >= 1.74.0 |
72b3d8bc | 25 | %{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0} |
72b3d8bc | 26 | %{?with_tests:BuildRequires: libtool} |
b892fe89 | 27 | BuildRequires: libxslt-progs >= 1.1.15 |
57b68753 | 28 | BuildRequires: perl-base >= 1:5.6.0 |
f5cbd25d | 29 | BuildRequires: pkgconfig >= 1:0.19 |
ce8e0528 | 30 | BuildRequires: python >= 1:2.3 |
60bdc4ff | 31 | BuildRequires: rpm-perlprov >= 4.1-13 |
1aa783e1 | 32 | BuildRequires: rpm-pythonprov |
0845d9f0 | 33 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
ce8e0528 | 34 | BuildRequires: rpmbuild(macros) >= 1.446 |
231cbe6f MB |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
ce8e0528 | 37 | %{?with_gnome:BuildRequires: yelp-tools} |
cef1438c | 38 | Requires: %{name}-automake = %{version}-%{release} |
1089fddb | 39 | Requires: docbook-dtd43-xml |
1fb28e76 | 40 | Requires: docbook-style-dsssl >= 1.77 |
ea5747a2 | 41 | Requires: docbook-style-xsl >= 1.74.0 |
7dad3221 | 42 | Requires: docbook-utils >= 0.6.10 |
06bbea80 | 43 | Requires: libxslt-progs >= 1.1.15 |
7b22e308 | 44 | Requires: openjade |
56e3bd38 | 45 | Requires: source-highlight |
a951711c | 46 | Conflicts: pkgconfig < 1:0.19 |
72b3d8bc | 47 | %{!?with_tests:BuildArch: noarch} |
3765bdbf | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b22e308 | 49 | |
50 | %description | |
51 | gtk-doc is a tool for generating API reference documentation. It is | |
52 | used for generating the documentation for GTK+, GLib and GNOME. | |
53 | ||
a5a7e927 JR |
54 | %description -l pl.UTF-8 |
55 | gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany | |
b3e13577 JB |
56 | do generowania dokumentacji GLib, GTK+ i GNOME. |
57 | ||
1089fddb JB |
58 | %package automake |
59 | Summary: Automake macros for gtk-doc | |
60 | Summary(pl.UTF-8): Makra automake'a do gtk-doc | |
61 | Group: Development/Tools | |
62 | Requires: automake | |
63 | Conflicts: gtk-doc < 0:1.4-3 | |
64 | ||
65 | %description automake | |
66 | Automake macros for gtk-doc. | |
67 | ||
68 | %description automake -l pl.UTF-8 | |
69 | Makra automake'a do gtk-doc. | |
70 | ||
1ec56c5d | 71 | %package common |
72 | Summary: Common directories for documetation generated using gtk-doc | |
74774265 | 73 | Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc |
b892fe89 | 74 | Group: Development |
1ec56c5d | 75 | |
76 | %description common | |
f1036ddf | 77 | Common directories for API documentation for various packages, |
78 | generated using gtk-doc. | |
1ec56c5d | 79 | |
a5a7e927 JR |
80 | %description common -l pl.UTF-8 |
81 | Katalogi na dokumentację API do różnych pakietów, wygenerowaną za | |
82 | pomocą gtk-doc. | |
1ec56c5d | 83 | |
7b22e308 | 84 | %prep |
7b22e308 | 85 | %setup -q |
72b3d8bc | 86 | %{!?with_tests:%patch0 -p1} |
b3e13577 | 87 | mv -f doc/README doc/README.docs |
7b22e308 | 88 | |
89 | %build | |
72b3d8bc | 90 | %{?with_tests:%{__libtoolize}} |
a4d529c8 | 91 | %{__aclocal} -I m4 |
65b2d50e | 92 | %{__autoconf} |
93 | %{__automake} | |
a4d529c8 | 94 | %configure \ |
21ea4191 MB |
95 | HIGHLIGHT="%{_bindir}/source-highlight" \ |
96 | --disable-silent-rules | |
97 | ||
7b22e308 | 98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
463d5dc7 | 102 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} \ |
20f2d0c2 | 103 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7b22e308 | 104 | |
7f12a063 | 105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
7b22e308 | 107 | |
20f2d0c2 | 108 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
109 | ||
f194c8a9 | 110 | %if %{with gnome} |
ce8e0528 | 111 | %find_lang gtk-doc-manual --with-gnome |
f194c8a9 | 112 | %endif |
a52ff9f8 | 113 | |
7b22e308 | 114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
ce8e0528 | 117 | %files %{?with_gnome:-f gtk-doc-manual.lang} |
7b22e308 | 118 | %defattr(644,root,root,755) |
20f2d0c2 | 119 | %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/* |
0897b407 JB |
120 | %attr(755,root,root) %{_bindir}/gtkdoc-* |
121 | %attr(755,root,root) %{_bindir}/gtkdocize | |
be69a2b3 | 122 | %{_datadir}/gtk-doc |
ce8e0528 | 123 | %{_npkgconfigdir}/gtk-doc.pc |
7f12a063 | 124 | %{_datadir}/sgml/%{name} |
20f2d0c2 | 125 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 126 | |
1089fddb JB |
127 | %files automake |
128 | %defattr(644,root,root,755) | |
129 | %{_aclocaldir}/gtk-doc.m4 | |
130 | ||
1ec56c5d | 131 | %files common |
132 | %defattr(644,root,root,755) | |
36ab6cad | 133 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 134 | %dir %{_gtkdocdir} |