]>
Commit | Line | Data |
---|---|---|
60bdc4ff | 1 | # |
2 | %include /usr/lib/rpm/macros.perl | |
3 | # | |
7b22e308 | 4 | Summary: API documentation generation tool for GTK+ and GNOME |
74774265 ER |
5 | Summary(es.UTF-8): El generador de documentación del GTK |
6 | Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME | |
7 | Summary(pt_BR.UTF-8): O gerador de documentação do GTK | |
7b22e308 | 8 | Name: gtk-doc |
0845d9f0 MB |
9 | Version: 1.10 |
10 | Release: 1 | |
b70cae61 | 11 | License: GPL v2+ |
7b22e308 | 12 | Group: Development/Tools |
0845d9f0 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.10/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: cbd4be396b0cf8b8ce1fc9b927cdf451 | |
b3e13577 | 15 | URL: http://www.gtk.org/rdp/ |
0791a0b4 | 16 | BuildRequires: autoconf >= 2.52 |
b3e13577 | 17 | BuildRequires: automake |
591d7987 | 18 | BuildRequires: docbook-dtd412-xml >= 1.0-10 |
19 | BuildRequires: docbook-style-xsl | |
b892fe89 | 20 | BuildRequires: docbook-utils |
0791a0b4 | 21 | BuildRequires: gnome-common >= 2.12.0-3 |
b892fe89 JB |
22 | BuildRequires: libxslt-progs >= 1.1.15 |
23 | BuildRequires: openjade | |
7f12a063 | 24 | BuildRequires: perl-base >= 5.6.0 |
f5cbd25d | 25 | BuildRequires: pkgconfig >= 1:0.19 |
60bdc4ff | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
0845d9f0 | 27 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
436fce70 | 28 | BuildRequires: scrollkeeper >= 1:0.3.5 |
9f83d836 | 29 | Requires(post,postun): scrollkeeper |
cef1438c | 30 | Requires: %{name}-automake = %{version}-%{release} |
1fb28e76 MM |
31 | Requires: docbook-dtd412-xml >= 1.0-10 |
32 | Requires: docbook-style-dsssl >= 1.77 | |
33 | Requires: docbook-style-xsl >= 1.55.0-3 | |
7dad3221 | 34 | Requires: docbook-utils >= 0.6.10 |
1fb28e76 | 35 | Requires: gnome-doc-tools >= 1.0-4 |
06bbea80 | 36 | Requires: libxslt-progs >= 1.1.15 |
7b22e308 | 37 | Requires: openjade |
a951711c | 38 | Conflicts: pkgconfig < 1:0.19 |
18ab47c5 | 39 | #BuildArch: noarch (rejected by autoconf) |
3765bdbf | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b22e308 | 41 | |
60bdc4ff | 42 | # architecture-independant pkgconfig dir |
43 | %define _pkgconfigdir %{_datadir}/pkgconfig | |
44 | ||
7b22e308 | 45 | %description |
46 | gtk-doc is a tool for generating API reference documentation. It is | |
47 | used for generating the documentation for GTK+, GLib and GNOME. | |
48 | ||
a5a7e927 JR |
49 | %description -l pl.UTF-8 |
50 | gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany | |
b3e13577 JB |
51 | do generowania dokumentacji GLib, GTK+ i GNOME. |
52 | ||
1ec56c5d | 53 | %package common |
54 | Summary: Common directories for documetation generated using gtk-doc | |
74774265 | 55 | Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc |
b892fe89 | 56 | Group: Development |
1ec56c5d | 57 | |
58 | %description common | |
f1036ddf | 59 | Common directories for API documentation for various packages, |
60 | generated using gtk-doc. | |
1ec56c5d | 61 | |
a5a7e927 JR |
62 | %description common -l pl.UTF-8 |
63 | Katalogi na dokumentację API do różnych pakietów, wygenerowaną za | |
64 | pomocą gtk-doc. | |
1ec56c5d | 65 | |
9ccdba8f | 66 | %package automake |
cef1438c | 67 | Summary: Automake macros for gtk-doc |
74774265 | 68 | Summary(pl.UTF-8): Makra dla automake do gtk-doc |
b892fe89 | 69 | Group: Development/Tools |
9ccdba8f | 70 | Requires: automake |
b892fe89 | 71 | Conflicts: gtk-doc < 0:1.4-3 |
9ccdba8f | 72 | |
73 | %description automake | |
74 | Automake macros for gtk-doc. | |
75 | ||
a5a7e927 | 76 | %description automake -l pl.UTF-8 |
9ccdba8f | 77 | Makra dla automake do gtk-doc. |
78 | ||
7b22e308 | 79 | %prep |
7b22e308 | 80 | %setup -q |
b3e13577 | 81 | mv -f doc/README doc/README.docs |
7b22e308 | 82 | |
83 | %build | |
c5022e5c | 84 | %{__gnome_doc_common} |
a7a0aecb | 85 | %{__aclocal} |
65b2d50e | 86 | %{__autoconf} |
87 | %{__automake} | |
7f12a063 | 88 | %configure |
7b22e308 | 89 | %{__make} |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
463d5dc7 | 93 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} \ |
20f2d0c2 | 94 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7b22e308 | 95 | |
7f12a063 | 96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
7b22e308 | 98 | |
20f2d0c2 | 99 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
100 | ||
0845d9f0 | 101 | %find_lang %{name} --with-gnome --with-omf --all-name |
a52ff9f8 | 102 | |
7b22e308 | 103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
9f83d836 | 106 | %post |
107 | %scrollkeeper_update_post | |
108 | ||
109 | %postun | |
110 | %scrollkeeper_update_postun | |
111 | ||
a52ff9f8 | 112 | %files -f %{name}.lang |
7b22e308 | 113 | %defattr(644,root,root,755) |
20f2d0c2 | 114 | %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/* |
0897b407 JB |
115 | %attr(755,root,root) %{_bindir}/gtkdoc-* |
116 | %attr(755,root,root) %{_bindir}/gtkdocize | |
be69a2b3 | 117 | %{_datadir}/gtk-doc |
e0423b2e | 118 | %{_pkgconfigdir}/%{name}.pc |
7f12a063 | 119 | %{_datadir}/sgml/%{name} |
20f2d0c2 | 120 | %{_examplesdir}/%{name}-%{version} |
1ec56c5d | 121 | |
122 | %files common | |
123 | %defattr(644,root,root,755) | |
36ab6cad | 124 | %dir %{_docdir}/gtk-doc |
463d5dc7 | 125 | %dir %{_gtkdocdir} |
b892fe89 JB |
126 | |
127 | %files automake | |
128 | %defattr(644,root,root,755) | |
0897b407 | 129 | %{_aclocaldir}/gtk-doc.m4 |