]> git.pld-linux.org Git - packages/gtk-doc.git/blob - gtk-doc.spec
- updated to 1.29, requires python3 now
[packages/gtk-doc.git] / gtk-doc.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # build regression tests programs
4 %bcond_without  gnome   # build without gtk-doc-manual in GNOME help format
5 #
6 Summary:        API documentation generation tool for GTK+ and GNOME
7 Summary(es.UTF-8):      El generador de documentación del GTK
8 Summary(pl.UTF-8):      Narzędzie do generowania dokumentacji API do GTK+ i GNOME
9 Summary(pt_BR.UTF-8):   O gerador de documentação do GTK
10 Name:           gtk-doc
11 Version:        1.29
12 Release:        1
13 License:        GPL v2+
14 Group:          Development/Tools
15 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz
16 # Source0-md5:  df26a38c209b3d7358f26268fcbdb9e3
17 Patch0:         %{name}-noarch.patch
18 URL:            http://www.gtk.org/gtk-doc/
19 BuildRequires:  autoconf >= 2.63
20 BuildRequires:  automake >= 1:1.11
21 BuildRequires:  docbook-dtd43-xml
22 BuildRequires:  docbook-style-xsl-nons >= 1.74.0
23 %{?with_tests:BuildRequires:    glib2-devel >= 1:2.6.0}
24 %{?with_tests:BuildRequires:    libtool >= 2:2.2}
25 BuildRequires:  libxml2 >= 1:2.3.6
26 BuildRequires:  libxslt-progs >= 1.1.15
27 BuildRequires:  pkgconfig >= 1:0.19
28 BuildRequires:  python3 >= 1:3.2
29 BuildRequires:  rpm-pythonprov
30 BuildRequires:  rpmbuild(find_lang) >= 1.23
31 BuildRequires:  rpmbuild(macros) >= 1.446
32 BuildRequires:  tar >= 1:1.22
33 BuildRequires:  xz
34 %{?with_gnome:BuildRequires:    yelp-tools}
35 Requires:       %{name}-automake = %{version}-%{release}
36 Requires:       docbook-dtd43-xml
37 Requires:       docbook-style-xsl-nons >= 1.74.0
38 Requires:       libxml2 >= 1:2.3.6
39 Requires:       libxslt-progs >= 1.1.15
40 Requires:       source-highlight
41 Conflicts:      pkgconfig < 1:0.19
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 gtk-doc is a tool for generating API reference documentation. It is
46 used for generating the documentation for GTK+, GLib and GNOME.
47
48 %description -l pl.UTF-8
49 gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
50 do generowania dokumentacji GLib, GTK+ i GNOME.
51
52 %package automake
53 Summary:        Automake macros for gtk-doc
54 Summary(pl.UTF-8):      Makra automake'a do gtk-doc
55 Group:          Development/Tools
56 Requires:       automake
57 Requires:       pkgconfig
58 Conflicts:      glib2-devel < 1:2.10.0
59 Conflicts:      gtk-doc < 0:1.4-3
60 %if "%{_rpmversion}" >= "5"
61 BuildArch:      noarch
62 %endif
63
64 %description automake
65 Automake macros for gtk-doc.
66
67 %description automake -l pl.UTF-8
68 Makra automake'a do gtk-doc.
69
70 %package common
71 Summary:        Common directories for documetation generated using gtk-doc
72 Summary(pl.UTF-8):      Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
73 Group:          Development
74 %if "%{_rpmversion}" >= "5"
75 BuildArch:      noarch
76 %endif
77
78 %description common
79 Common directories for API documentation for various packages,
80 generated using gtk-doc.
81
82 %description common -l pl.UTF-8
83 Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
84 pomocą gtk-doc.
85
86 %prep
87 %setup -q
88 %{!?with_tests:%patch0 -p1}
89 %{__mv} doc/README doc/README.docs
90
91 %build
92 %{?with_tests:%{__libtoolize}}
93 %{__aclocal} -I m4
94 %{__autoconf}
95 %{__automake}
96 %configure \
97         HIGHLIGHT="%{_bindir}/source-highlight" \
98         --disable-silent-rules
99
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
105         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
111
112 %if %{with gnome}
113 %find_lang gtk-doc-manual --with-gnome
114 %endif
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files %{?with_gnome:-f gtk-doc-manual.lang}
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
122 %attr(755,root,root) %{_bindir}/gtkdoc-*
123 %attr(755,root,root) %{_bindir}/gtkdocize
124 %dir %{_libdir}/cmake/GtkDoc
125 %{_libdir}/cmake/GtkDoc/GtkDocConfig.cmake
126 %{_libdir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
127 %{_libdir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
128 %{_datadir}/gtk-doc
129 %{_npkgconfigdir}/gtk-doc.pc
130 %{_examplesdir}/%{name}-%{version}
131
132 %files automake
133 %defattr(644,root,root,755)
134 %{_aclocaldir}/gtk-doc.m4
135
136 %files common
137 %defattr(644,root,root,755)
138 %dir %{_docdir}/gtk-doc
139 %dir %{_gtkdocdir}
This page took 0.105982 seconds and 3 git commands to generate.