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