]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- enhanced struct-end patch not to crash on empty row after nested struct/union ...
[packages/gtk-doc.git] / gtk-doc.spec
CommitLineData
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 6Summary: API documentation generation tool for GTK+ and GNOME
74774265
ER
7Summary(es.UTF-8): El generador de documentación del GTK
8Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME
9Summary(pt_BR.UTF-8): O gerador de documentação do GTK
7b22e308 10Name: gtk-doc
b99cc764 11Version: 1.33.2
1239a330 12Release: 5
b70cae61 13License: GPL v2+
7b22e308 14Group: Development/Tools
66e77da0 15Source0: https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz
b99cc764 16# Source0-md5: ea6563421abe964d02135ca0d5b8dd8e
72b3d8bc 17Patch0: %{name}-noarch.patch
d5827bf8 18Patch1: %{name}-cmake.patch
5ea2d35e 19Patch2: %{name}-struct-end.patch
c0228ccc 20URL: https://wiki.gnome.org/DocumentationProject/GtkDoc
231cbe6f
MB
21BuildRequires: autoconf >= 2.63
22BuildRequires: automake >= 1:1.11
074b1085 23BuildRequires: docbook-dtd43-xml
06182df0 24BuildRequires: docbook-style-xsl-nons >= 1.74.0
72b3d8bc 25%{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0}
edb19d8c
JB
26%{?with_tests:BuildRequires: libtool >= 2:2.2}
27BuildRequires: libxml2 >= 1:2.3.6
b892fe89 28BuildRequires: libxslt-progs >= 1.1.15
f5cbd25d 29BuildRequires: pkgconfig >= 1:0.19
90d76ebc 30BuildRequires: python3 >= 1:3.2
1aa783e1 31BuildRequires: rpm-pythonprov
0845d9f0 32BuildRequires: rpmbuild(find_lang) >= 1.23
66e77da0 33BuildRequires: rpmbuild(macros) >= 1.752
231cbe6f
MB
34BuildRequires: tar >= 1:1.22
35BuildRequires: xz
ce8e0528 36%{?with_gnome:BuildRequires: yelp-tools}
cef1438c 37Requires: %{name}-automake = %{version}-%{release}
1089fddb 38Requires: docbook-dtd43-xml
06182df0 39Requires: docbook-style-xsl-nons >= 1.74.0
edb19d8c 40Requires: libxml2 >= 1:2.3.6
06bbea80 41Requires: libxslt-progs >= 1.1.15
03728cdf
JB
42Requires: python3-pygments
43# +for mkhtml2: python3-anytree python3-lxml
a951711c 44Conflicts: pkgconfig < 1:0.19
03728cdf 45%{!?with_tests:BuildArch: noarch}
3765bdbf 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7b22e308 47
48%description
49gtk-doc is a tool for generating API reference documentation. It is
50used for generating the documentation for GTK+, GLib and GNOME.
51
a5a7e927
JR
52%description -l pl.UTF-8
53gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
b3e13577
JB
54do generowania dokumentacji GLib, GTK+ i GNOME.
55
1089fddb
JB
56%package automake
57Summary: Automake macros for gtk-doc
58Summary(pl.UTF-8): Makra automake'a do gtk-doc
59Group: Development/Tools
60Requires: automake
edb19d8c
JB
61Requires: pkgconfig
62Conflicts: glib2-devel < 1:2.10.0
1089fddb 63Conflicts: gtk-doc < 0:1.4-3
6e33f116 64BuildArch: noarch
1089fddb
JB
65
66%description automake
67Automake macros for gtk-doc.
68
69%description automake -l pl.UTF-8
70Makra automake'a do gtk-doc.
71
1ec56c5d 72%package common
73Summary: Common directories for documetation generated using gtk-doc
74774265 74Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
b892fe89 75Group: Development
6e33f116 76BuildArch: noarch
1ec56c5d 77
78%description common
f1036ddf 79Common directories for API documentation for various packages,
80generated using gtk-doc.
1ec56c5d 81
a5a7e927
JR
82%description common -l pl.UTF-8
83Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
84pomocą gtk-doc.
1ec56c5d 85
7b22e308 86%prep
7b22e308 87%setup -q
72b3d8bc 88%{!?with_tests:%patch0 -p1}
d5827bf8 89%patch1 -p1
5ea2d35e 90%patch2 -p1
539d664e 91
d98bfe37 92%{__mv} doc/README doc/README.docs
7b22e308 93
94%build
6f364e48 95install -d build-aux
72b3d8bc 96%{?with_tests:%{__libtoolize}}
a4d529c8 97%{__aclocal} -I m4
65b2d50e 98%{__autoconf}
99%{__automake}
a4d529c8 100%configure \
74fab98c 101 PKG_CONFIG=/usr/bin/pkg-config \
21ea4191
MB
102 --disable-silent-rules
103
7b22e308 104%{__make}
105
106%install
107rm -rf $RPM_BUILD_ROOT
463d5dc7 108install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
20f2d0c2 109 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b22e308 110
7f12a063 111%{__make} install \
112 DESTDIR=$RPM_BUILD_ROOT
7b22e308 113
20f2d0c2 114install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115
f194c8a9 116%if %{with gnome}
ce8e0528 117%find_lang gtk-doc-manual --with-gnome
f194c8a9 118%endif
a52ff9f8 119
7b22e308 120%clean
121rm -rf $RPM_BUILD_ROOT
122
ce8e0528 123%files %{?with_gnome:-f gtk-doc-manual.lang}
7b22e308 124%defattr(644,root,root,755)
20f2d0c2 125%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
0897b407
JB
126%attr(755,root,root) %{_bindir}/gtkdoc-*
127%attr(755,root,root) %{_bindir}/gtkdocize
03728cdf 128%{_datadir}/cmake/GtkDoc
be69a2b3 129%{_datadir}/gtk-doc
ce8e0528 130%{_npkgconfigdir}/gtk-doc.pc
20f2d0c2 131%{_examplesdir}/%{name}-%{version}
1ec56c5d 132
1089fddb
JB
133%files automake
134%defattr(644,root,root,755)
135%{_aclocaldir}/gtk-doc.m4
136
1ec56c5d 137%files common
138%defattr(644,root,root,755)
36ab6cad 139%dir %{_docdir}/gtk-doc
463d5dc7 140%dir %{_gtkdocdir}
This page took 0.124448 seconds and 4 git commands to generate.