]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- updated to 1.26
[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
edb19d8c
JB
11Version: 1.26
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
edb19d8c 16# Source0-md5: 1ad4a1dbf804889fdc85f8eec45e8696
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
cd365e4b 22BuildRequires: docbook-style-xsl >= 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
edb19d8c
JB
28BuildRequires: python >= 1:2.7
29BuildRequires: python-six
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
ea5747a2 38Requires: docbook-style-xsl >= 1.74.0
edb19d8c 39Requires: libxml2 >= 1:2.3.6
06bbea80 40Requires: libxslt-progs >= 1.1.15
edb19d8c 41Requires: python-six
56e3bd38 42Requires: source-highlight
a951711c 43Conflicts: pkgconfig < 1:0.19
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}
d98bfe37 91%{__mv} doc/README doc/README.docs
7b22e308 92
93%build
72b3d8bc 94%{?with_tests:%{__libtoolize}}
a4d529c8 95%{__aclocal} -I m4
65b2d50e 96%{__autoconf}
97%{__automake}
a4d529c8 98%configure \
21ea4191
MB
99 HIGHLIGHT="%{_bindir}/source-highlight" \
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
0713dce7
MB
126%dir %{_libdir}/cmake/GtkDoc
127%{_libdir}/cmake/GtkDoc/GtkDocConfig.cmake
128%{_libdir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
129%{_libdir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
be69a2b3 130%{_datadir}/gtk-doc
ce8e0528 131%{_npkgconfigdir}/gtk-doc.pc
20f2d0c2 132%{_examplesdir}/%{name}-%{version}
1ec56c5d 133
1089fddb
JB
134%files automake
135%defattr(644,root,root,755)
136%{_aclocaldir}/gtk-doc.m4
137
1ec56c5d 138%files common
139%defattr(644,root,root,755)
36ab6cad 140%dir %{_docdir}/gtk-doc
463d5dc7 141%dir %{_gtkdocdir}
This page took 0.108043 seconds and 4 git commands to generate.