]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- updated to gtk-doc
[packages/gtk-doc.git] / gtk-doc.spec
CommitLineData
60bdc4ff 1#
72b3d8bc
SS
2# Conditional build:
3%bcond_with tests # build regression tests programs
b3c0fe9b 4%bcond_without gnome # build without gnome-doc
72b3d8bc 5#
60bdc4ff 6%include /usr/lib/rpm/macros.perl
7#
7b22e308 8Summary: API documentation generation tool for GTK+ and GNOME
74774265
ER
9Summary(es.UTF-8): El generador de documentación del GTK
10Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME
11Summary(pt_BR.UTF-8): O gerador de documentação do GTK
7b22e308 12Name: gtk-doc
c06bc04e 13Version: 1.20
3a2048f3 14Release: 1
b70cae61 15License: GPL v2+
7b22e308 16Group: Development/Tools
c06bc04e
JB
17Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.20/%{name}-%{version}.tar.xz
18# Source0-md5: 58532fed036f72fc3bfd4fe79473247b
72b3d8bc 19Patch0: %{name}-noarch.patch
b3e13577 20URL: http://www.gtk.org/rdp/
231cbe6f
MB
21BuildRequires: autoconf >= 2.63
22BuildRequires: automake >= 1:1.11
591d7987 23BuildRequires: docbook-dtd412-xml >= 1.0-10
074b1085 24BuildRequires: docbook-dtd43-xml
cd365e4b 25BuildRequires: docbook-style-xsl >= 1.74.0
2944aaa9 26BuildRequires: gettext-devel
72b3d8bc 27%{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0}
b3c0fe9b
JK
28%{?with_gnome:BuildRequires: gnome-common >= 2.12.0-3}
29%{?with_gnome:BuildRequires: gnome-doc-utils >= 0.3.2}
72b3d8bc 30%{?with_tests:BuildRequires: libtool}
b892fe89 31BuildRequires: libxslt-progs >= 1.1.15
57b68753 32BuildRequires: perl-base >= 1:5.6.0
f5cbd25d 33BuildRequires: pkgconfig >= 1:0.19
1089fddb 34BuildRequires: python >= 2.3
60bdc4ff 35BuildRequires: rpm-perlprov >= 4.1-13
1aa783e1 36BuildRequires: rpm-pythonprov
0845d9f0 37BuildRequires: rpmbuild(find_lang) >= 1.23
436fce70 38BuildRequires: scrollkeeper >= 1:0.3.5
231cbe6f
MB
39BuildRequires: tar >= 1:1.22
40BuildRequires: xz
9f83d836 41Requires(post,postun): scrollkeeper
cef1438c 42Requires: %{name}-automake = %{version}-%{release}
1089fddb 43Requires: docbook-dtd43-xml
1fb28e76 44Requires: docbook-style-dsssl >= 1.77
ea5747a2 45Requires: docbook-style-xsl >= 1.74.0
7dad3221 46Requires: docbook-utils >= 0.6.10
06bbea80 47Requires: libxslt-progs >= 1.1.15
7b22e308 48Requires: openjade
56e3bd38 49Requires: source-highlight
a951711c 50Conflicts: pkgconfig < 1:0.19
72b3d8bc 51%{!?with_tests:BuildArch: noarch}
3765bdbf 52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7b22e308 53
60bdc4ff 54# architecture-independant pkgconfig dir
55%define _pkgconfigdir %{_datadir}/pkgconfig
56
7b22e308 57%description
58gtk-doc is a tool for generating API reference documentation. It is
59used for generating the documentation for GTK+, GLib and GNOME.
60
a5a7e927
JR
61%description -l pl.UTF-8
62gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
b3e13577
JB
63do generowania dokumentacji GLib, GTK+ i GNOME.
64
1089fddb
JB
65%package automake
66Summary: Automake macros for gtk-doc
67Summary(pl.UTF-8): Makra automake'a do gtk-doc
68Group: Development/Tools
69Requires: automake
70Conflicts: gtk-doc < 0:1.4-3
71
72%description automake
73Automake macros for gtk-doc.
74
75%description automake -l pl.UTF-8
76Makra automake'a do gtk-doc.
77
1ec56c5d 78%package common
79Summary: Common directories for documetation generated using gtk-doc
74774265 80Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
b892fe89 81Group: Development
1ec56c5d 82
83%description common
f1036ddf 84Common directories for API documentation for various packages,
85generated using gtk-doc.
1ec56c5d 86
a5a7e927
JR
87%description common -l pl.UTF-8
88Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
89pomocą gtk-doc.
1ec56c5d 90
7b22e308 91%prep
7b22e308 92%setup -q
72b3d8bc 93%{!?with_tests:%patch0 -p1}
b3e13577 94mv -f doc/README doc/README.docs
7b22e308 95
96%build
b3c0fe9b 97%{?with_gnome:%{__gnome_doc_common}}
72b3d8bc 98%{?with_tests:%{__libtoolize}}
a4d529c8 99%{__aclocal} -I m4
65b2d50e 100%{__autoconf}
101%{__automake}
a4d529c8 102%configure \
21ea4191
MB
103 HIGHLIGHT="%{_bindir}/source-highlight" \
104 --disable-silent-rules
105
7b22e308 106%{__make}
107
108%install
109rm -rf $RPM_BUILD_ROOT
463d5dc7 110install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
20f2d0c2 111 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b22e308 112
7f12a063 113%{__make} install \
114 DESTDIR=$RPM_BUILD_ROOT
7b22e308 115
20f2d0c2 116install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
117
f194c8a9 118%if %{with gnome}
0845d9f0 119%find_lang %{name} --with-gnome --with-omf --all-name
c633cd6c 120%else
bee9c6e0 121touch %{name}.lang
f194c8a9 122%endif
a52ff9f8 123
7b22e308 124%clean
125rm -rf $RPM_BUILD_ROOT
126
9f83d836 127%post
128%scrollkeeper_update_post
129
130%postun
131%scrollkeeper_update_postun
132
a52ff9f8 133%files -f %{name}.lang
7b22e308 134%defattr(644,root,root,755)
20f2d0c2 135%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
0897b407
JB
136%attr(755,root,root) %{_bindir}/gtkdoc-*
137%attr(755,root,root) %{_bindir}/gtkdocize
be69a2b3 138%{_datadir}/gtk-doc
e0423b2e 139%{_pkgconfigdir}/%{name}.pc
7f12a063 140%{_datadir}/sgml/%{name}
20f2d0c2 141%{_examplesdir}/%{name}-%{version}
1ec56c5d 142
1089fddb
JB
143%files automake
144%defattr(644,root,root,755)
145%{_aclocaldir}/gtk-doc.m4
146
1ec56c5d 147%files common
148%defattr(644,root,root,755)
36ab6cad 149%dir %{_docdir}/gtk-doc
463d5dc7 150%dir %{_gtkdocdir}
This page took 0.110775 seconds and 4 git commands to generate.