]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- updated to 1.32
[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
e8f1877c 11Version: 1.32
539d664e 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
e8f1877c 16# Source0-md5: 07764836262e154e94922e5f2aa476ae
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
03728cdf
JB
40Requires: python3-pygments
41# +for mkhtml2: python3-anytree python3-lxml
a951711c 42Conflicts: pkgconfig < 1:0.19
03728cdf 43%{!?with_tests:BuildArch: noarch}
3765bdbf 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7b22e308 45
46%description
47gtk-doc is a tool for generating API reference documentation. It is
48used for generating the documentation for GTK+, GLib and GNOME.
49
a5a7e927
JR
50%description -l pl.UTF-8
51gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
b3e13577
JB
52do generowania dokumentacji GLib, GTK+ i GNOME.
53
1089fddb
JB
54%package automake
55Summary: Automake macros for gtk-doc
56Summary(pl.UTF-8): Makra automake'a do gtk-doc
57Group: Development/Tools
58Requires: automake
edb19d8c
JB
59Requires: pkgconfig
60Conflicts: glib2-devel < 1:2.10.0
1089fddb 61Conflicts: gtk-doc < 0:1.4-3
0713dce7
MB
62%if "%{_rpmversion}" >= "5"
63BuildArch: noarch
64%endif
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
0713dce7
MB
76%if "%{_rpmversion}" >= "5"
77BuildArch: noarch
78%endif
1ec56c5d 79
80%description common
f1036ddf 81Common directories for API documentation for various packages,
82generated using gtk-doc.
1ec56c5d 83
a5a7e927
JR
84%description common -l pl.UTF-8
85Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
86pomocą gtk-doc.
1ec56c5d 87
7b22e308 88%prep
7b22e308 89%setup -q
72b3d8bc 90%{!?with_tests:%patch0 -p1}
539d664e 91
d98bfe37 92%{__mv} doc/README doc/README.docs
7b22e308 93
94%build
72b3d8bc 95%{?with_tests:%{__libtoolize}}
a4d529c8 96%{__aclocal} -I m4
65b2d50e 97%{__autoconf}
98%{__automake}
a4d529c8 99%configure \
21ea4191
MB
100 --disable-silent-rules
101
7b22e308 102%{__make}
103
104%install
105rm -rf $RPM_BUILD_ROOT
463d5dc7 106install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
20f2d0c2 107 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b22e308 108
7f12a063 109%{__make} install \
110 DESTDIR=$RPM_BUILD_ROOT
7b22e308 111
20f2d0c2 112install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113
f194c8a9 114%if %{with gnome}
ce8e0528 115%find_lang gtk-doc-manual --with-gnome
f194c8a9 116%endif
a52ff9f8 117
7b22e308 118%clean
119rm -rf $RPM_BUILD_ROOT
120
ce8e0528 121%files %{?with_gnome:-f gtk-doc-manual.lang}
7b22e308 122%defattr(644,root,root,755)
20f2d0c2 123%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
0897b407
JB
124%attr(755,root,root) %{_bindir}/gtkdoc-*
125%attr(755,root,root) %{_bindir}/gtkdocize
03728cdf 126%{_datadir}/cmake/GtkDoc
be69a2b3 127%{_datadir}/gtk-doc
ce8e0528 128%{_npkgconfigdir}/gtk-doc.pc
20f2d0c2 129%{_examplesdir}/%{name}-%{version}
1ec56c5d 130
1089fddb
JB
131%files automake
132%defattr(644,root,root,755)
133%{_aclocaldir}/gtk-doc.m4
134
1ec56c5d 135%files common
136%defattr(644,root,root,755)
36ab6cad 137%dir %{_docdir}/gtk-doc
463d5dc7 138%dir %{_gtkdocdir}
This page took 0.18021 seconds and 4 git commands to generate.