]> git.pld-linux.org Git - packages/gtk-doc.git/blame - gtk-doc.spec
- updated to 1.21, massive cleanup
[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#
60bdc4ff 6%include /usr/lib/rpm/macros.perl
7#
7b22e308 8Summary: API documentation generation tool for GTK+ and GNOME
74774265
ER
9Summary(es.UTF-8): El generador de documentación del GTK
10Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API do GTK+ i GNOME
11Summary(pt_BR.UTF-8): O gerador de documentação do GTK
7b22e308 12Name: gtk-doc
ce8e0528 13Version: 1.21
3a2048f3 14Release: 1
b70cae61 15License: GPL v2+
7b22e308 16Group: Development/Tools
ce8e0528
JB
17Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz
18# Source0-md5: e361de4750b707590d9ea1b5550fa738
72b3d8bc 19Patch0: %{name}-noarch.patch
b3e13577 20URL: http://www.gtk.org/rdp/
231cbe6f
MB
21BuildRequires: autoconf >= 2.63
22BuildRequires: automake >= 1:1.11
074b1085 23BuildRequires: docbook-dtd43-xml
cd365e4b 24BuildRequires: docbook-style-xsl >= 1.74.0
72b3d8bc 25%{?with_tests:BuildRequires: glib2-devel >= 1:2.6.0}
72b3d8bc 26%{?with_tests:BuildRequires: libtool}
b892fe89 27BuildRequires: libxslt-progs >= 1.1.15
57b68753 28BuildRequires: perl-base >= 1:5.6.0
f5cbd25d 29BuildRequires: pkgconfig >= 1:0.19
ce8e0528 30BuildRequires: python >= 1:2.3
60bdc4ff 31BuildRequires: rpm-perlprov >= 4.1-13
1aa783e1 32BuildRequires: rpm-pythonprov
0845d9f0 33BuildRequires: rpmbuild(find_lang) >= 1.23
ce8e0528 34BuildRequires: rpmbuild(macros) >= 1.446
231cbe6f
MB
35BuildRequires: tar >= 1:1.22
36BuildRequires: xz
ce8e0528 37%{?with_gnome:BuildRequires: yelp-tools}
cef1438c 38Requires: %{name}-automake = %{version}-%{release}
1089fddb 39Requires: docbook-dtd43-xml
1fb28e76 40Requires: docbook-style-dsssl >= 1.77
ea5747a2 41Requires: docbook-style-xsl >= 1.74.0
7dad3221 42Requires: docbook-utils >= 0.6.10
06bbea80 43Requires: libxslt-progs >= 1.1.15
7b22e308 44Requires: openjade
56e3bd38 45Requires: source-highlight
a951711c 46Conflicts: pkgconfig < 1:0.19
72b3d8bc 47%{!?with_tests:BuildArch: noarch}
3765bdbf 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7b22e308 49
50%description
51gtk-doc is a tool for generating API reference documentation. It is
52used for generating the documentation for GTK+, GLib and GNOME.
53
a5a7e927
JR
54%description -l pl.UTF-8
55gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
b3e13577
JB
56do generowania dokumentacji GLib, GTK+ i GNOME.
57
1089fddb
JB
58%package automake
59Summary: Automake macros for gtk-doc
60Summary(pl.UTF-8): Makra automake'a do gtk-doc
61Group: Development/Tools
62Requires: automake
63Conflicts: gtk-doc < 0:1.4-3
64
65%description automake
66Automake macros for gtk-doc.
67
68%description automake -l pl.UTF-8
69Makra automake'a do gtk-doc.
70
1ec56c5d 71%package common
72Summary: Common directories for documetation generated using gtk-doc
74774265 73Summary(pl.UTF-8): Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
b892fe89 74Group: Development
1ec56c5d 75
76%description common
f1036ddf 77Common directories for API documentation for various packages,
78generated using gtk-doc.
1ec56c5d 79
a5a7e927
JR
80%description common -l pl.UTF-8
81Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
82pomocą gtk-doc.
1ec56c5d 83
7b22e308 84%prep
7b22e308 85%setup -q
72b3d8bc 86%{!?with_tests:%patch0 -p1}
b3e13577 87mv -f doc/README doc/README.docs
7b22e308 88
89%build
72b3d8bc 90%{?with_tests:%{__libtoolize}}
a4d529c8 91%{__aclocal} -I m4
65b2d50e 92%{__autoconf}
93%{__automake}
a4d529c8 94%configure \
21ea4191
MB
95 HIGHLIGHT="%{_bindir}/source-highlight" \
96 --disable-silent-rules
97
7b22e308 98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
463d5dc7 102install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
20f2d0c2 103 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b22e308 104
7f12a063 105%{__make} install \
106 DESTDIR=$RPM_BUILD_ROOT
7b22e308 107
20f2d0c2 108install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
109
f194c8a9 110%if %{with gnome}
ce8e0528 111%find_lang gtk-doc-manual --with-gnome
f194c8a9 112%endif
a52ff9f8 113
7b22e308 114%clean
115rm -rf $RPM_BUILD_ROOT
116
ce8e0528 117%files %{?with_gnome:-f gtk-doc-manual.lang}
7b22e308 118%defattr(644,root,root,755)
20f2d0c2 119%doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
0897b407
JB
120%attr(755,root,root) %{_bindir}/gtkdoc-*
121%attr(755,root,root) %{_bindir}/gtkdocize
be69a2b3 122%{_datadir}/gtk-doc
ce8e0528 123%{_npkgconfigdir}/gtk-doc.pc
7f12a063 124%{_datadir}/sgml/%{name}
20f2d0c2 125%{_examplesdir}/%{name}-%{version}
1ec56c5d 126
1089fddb
JB
127%files automake
128%defattr(644,root,root,755)
129%{_aclocaldir}/gtk-doc.m4
130
1ec56c5d 131%files common
132%defattr(644,root,root,755)
36ab6cad 133%dir %{_docdir}/gtk-doc
463d5dc7 134%dir %{_gtkdocdir}
This page took 0.137003 seconds and 4 git commands to generate.