]> git.pld-linux.org Git - packages/gtk-doc.git/blob - gtk-doc.spec
- added struct-end patch (fix for indented struct end); release 4
[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.33.2
12 Release:        4
13 License:        GPL v2+
14 Group:          Development/Tools
15 Source0:        https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz
16 # Source0-md5:  ea6563421abe964d02135ca0d5b8dd8e
17 Patch0:         %{name}-noarch.patch
18 Patch1:         %{name}-cmake.patch
19 Patch2:         %{name}-struct-end.patch
20 URL:            https://wiki.gnome.org/DocumentationProject/GtkDoc
21 BuildRequires:  autoconf >= 2.63
22 BuildRequires:  automake >= 1:1.11
23 BuildRequires:  docbook-dtd43-xml
24 BuildRequires:  docbook-style-xsl-nons >= 1.74.0
25 %{?with_tests:BuildRequires:    glib2-devel >= 1:2.6.0}
26 %{?with_tests:BuildRequires:    libtool >= 2:2.2}
27 BuildRequires:  libxml2 >= 1:2.3.6
28 BuildRequires:  libxslt-progs >= 1.1.15
29 BuildRequires:  pkgconfig >= 1:0.19
30 BuildRequires:  python3 >= 1:3.2
31 BuildRequires:  rpm-pythonprov
32 BuildRequires:  rpmbuild(find_lang) >= 1.23
33 BuildRequires:  rpmbuild(macros) >= 1.752
34 BuildRequires:  tar >= 1:1.22
35 BuildRequires:  xz
36 %{?with_gnome:BuildRequires:    yelp-tools}
37 Requires:       %{name}-automake = %{version}-%{release}
38 Requires:       docbook-dtd43-xml
39 Requires:       docbook-style-xsl-nons >= 1.74.0
40 Requires:       libxml2 >= 1:2.3.6
41 Requires:       libxslt-progs >= 1.1.15
42 Requires:       python3-pygments
43 # +for mkhtml2: python3-anytree python3-lxml
44 Conflicts:      pkgconfig < 1:0.19
45 %{!?with_tests:BuildArch:       noarch}
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 gtk-doc is a tool for generating API reference documentation. It is
50 used for generating the documentation for GTK+, GLib and GNOME.
51
52 %description -l pl.UTF-8
53 gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
54 do generowania dokumentacji GLib, GTK+ i GNOME.
55
56 %package automake
57 Summary:        Automake macros for gtk-doc
58 Summary(pl.UTF-8):      Makra automake'a do gtk-doc
59 Group:          Development/Tools
60 Requires:       automake
61 Requires:       pkgconfig
62 Conflicts:      glib2-devel < 1:2.10.0
63 Conflicts:      gtk-doc < 0:1.4-3
64 BuildArch:      noarch
65
66 %description automake
67 Automake macros for gtk-doc.
68
69 %description automake -l pl.UTF-8
70 Makra automake'a do gtk-doc.
71
72 %package common
73 Summary:        Common directories for documetation generated using gtk-doc
74 Summary(pl.UTF-8):      Katalogi na dokumentację wygenerowaną za pomocą gtk-doc
75 Group:          Development
76 BuildArch:      noarch
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 %patch1 -p1
90 %patch2 -p1
91
92 %{__mv} doc/README doc/README.docs
93
94 %build
95 install -d build-aux
96 %{?with_tests:%{__libtoolize}}
97 %{__aclocal} -I m4
98 %{__autoconf}
99 %{__automake}
100 %configure \
101         PKG_CONFIG=/usr/bin/pkg-config \
102         --disable-silent-rules
103
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
109         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT
113
114 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115
116 %if %{with gnome}
117 %find_lang gtk-doc-manual --with-gnome
118 %endif
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files %{?with_gnome:-f gtk-doc-manual.lang}
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
126 %attr(755,root,root) %{_bindir}/gtkdoc-*
127 %attr(755,root,root) %{_bindir}/gtkdocize
128 %{_datadir}/cmake/GtkDoc
129 %{_datadir}/gtk-doc
130 %{_npkgconfigdir}/gtk-doc.pc
131 %{_examplesdir}/%{name}-%{version}
132
133 %files automake
134 %defattr(644,root,root,755)
135 %{_aclocaldir}/gtk-doc.m4
136
137 %files common
138 %defattr(644,root,root,755)
139 %dir %{_docdir}/gtk-doc
140 %dir %{_gtkdocdir}
This page took 0.095799 seconds and 3 git commands to generate.