]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- updated to 1.29, requires python3 now
[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
90d76ebc
JB
11Version: 1.29
12Release: 1
b70cae61 13License: GPL v2+
7b22e308 14Group: Development/Tools
ce8e0528 15Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz
90d76ebc 16# Source0-md5: df26a38c209b3d7358f26268fcbdb9e3
72b3d8bc 17Patch0: %{name}-noarch.patch
464df307 18URL: http://www.gtk.org/gtk-doc/
231cbe6f
MB
19BuildRequires: autoconf >= 2.63
20BuildRequires: automake >= 1:1.11
074b1085 21BuildRequires: docbook-dtd43-xml
06182df0 22BuildRequires: docbook-style-xsl-nons >= 1.74.0
72b3d8bc 23%{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0}
edb19d8c
JB
24%{?with_tests:BuildRequires: libtool >= 2:2.2}
25BuildRequires: libxml2 >= 1:2.3.6
b892fe89 26BuildRequires: libxslt-progs >= 1.1.15
f5cbd25d 27BuildRequires: pkgconfig >= 1:0.19
90d76ebc 28BuildRequires: python3 >= 1:3.2
1aa783e1 29BuildRequires: rpm-pythonprov
0845d9f0 30BuildRequires: rpmbuild(find_lang) >= 1.23
ce8e0528 31BuildRequires: rpmbuild(macros) >= 1.446
231cbe6f
MB
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz
ce8e0528 34%{?with_gnome:BuildRequires: yelp-tools}
cef1438c 35Requires: %{name}-automake = %{version}-%{release}
1089fddb 36Requires: docbook-dtd43-xml
06182df0 37Requires: docbook-style-xsl-nons >= 1.74.0
edb19d8c 38Requires: libxml2 >= 1:2.3.6
06bbea80 39Requires: libxslt-progs >= 1.1.15
56e3bd38 40Requires: source-highlight
a951711c 41Conflicts: pkgconfig < 1:0.19
3765bdbf 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7b22e308 43
44%description
45gtk-doc is a tool for generating API reference documentation. It is
46used for generating the documentation for GTK+, GLib and GNOME.
47
a5a7e927
JR
48%description -l pl.UTF-8
49gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
b3e13577
JB
50do generowania dokumentacji GLib, GTK+ i GNOME.
51
1089fddb
JB
52%package automake
53Summary: Automake macros for gtk-doc
54Summary(pl.UTF-8): Makra automake'a do gtk-doc
55Group: Development/Tools
56Requires: automake
edb19d8c
JB
57Requires: pkgconfig
58Conflicts: glib2-devel < 1:2.10.0
1089fddb 59Conflicts: gtk-doc < 0:1.4-3
0713dce7
MB
60%if "%{_rpmversion}" >= "5"
61BuildArch: noarch
62%endif
1089fddb
JB
63
64%description automake
65Automake macros for gtk-doc.
66
67%description automake -l pl.UTF-8
68Makra automake'a do gtk-doc.
69
1ec56c5d 70%package common
71Summary: Common directories for documetation generated using gtk-doc
74774265 72Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
b892fe89 73Group: Development
0713dce7
MB
74%if "%{_rpmversion}" >= "5"
75BuildArch: noarch
76%endif
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}
d98bfe37 89%{__mv} doc/README doc/README.docs
7b22e308 90
91%build
72b3d8bc 92%{?with_tests:%{__libtoolize}}
a4d529c8 93%{__aclocal} -I m4
65b2d50e 94%{__autoconf}
95%{__automake}
a4d529c8 96%configure \
21ea4191
MB
97 HIGHLIGHT="%{_bindir}/source-highlight" \
98 --disable-silent-rules
99
7b22e308 100%{__make}
101
102%install
103rm -rf $RPM_BUILD_ROOT
463d5dc7 104install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
20f2d0c2 105 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b22e308 106
7f12a063 107%{__make} install \
108 DESTDIR=$RPM_BUILD_ROOT
7b22e308 109
20f2d0c2 110install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
111
f194c8a9 112%if %{with gnome}
ce8e0528 113%find_lang gtk-doc-manual --with-gnome
f194c8a9 114%endif
a52ff9f8 115
7b22e308 116%clean
117rm -rf $RPM_BUILD_ROOT
118
ce8e0528 119%files %{?with_gnome:-f gtk-doc-manual.lang}
7b22e308 120%defattr(644,root,root,755)
20f2d0c2 121%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
0897b407
JB
122%attr(755,root,root) %{_bindir}/gtkdoc-*
123%attr(755,root,root) %{_bindir}/gtkdocize
0713dce7
MB
124%dir %{_libdir}/cmake/GtkDoc
125%{_libdir}/cmake/GtkDoc/GtkDocConfig.cmake
126%{_libdir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
127%{_libdir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
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}
This page took 0.129912 seconds and 4 git commands to generate.