]> git.pld-linux.org Git - packages/gtk-doc.git/blob - gtk-doc.spec
86e428b7beb9fbbf4e69293e72edd2ece9f2036d
[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.31
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:  6239713011369a4fbdc7619350403772
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:       python3-pygments
41 # +for mkhtml2: python3-anytree python3-lxml
42 Conflicts:      pkgconfig < 1:0.19
43 %{!?with_tests:BuildArch:       noarch}
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 gtk-doc is a tool for generating API reference documentation. It is
48 used for generating the documentation for GTK+, GLib and GNOME.
49
50 %description -l pl.UTF-8
51 gtk-doc jest narzędziem do generowania dokumentacji API. Jest używany
52 do generowania dokumentacji GLib, GTK+ i GNOME.
53
54 %package automake
55 Summary:        Automake macros for gtk-doc
56 Summary(pl.UTF-8):      Makra automake'a do gtk-doc
57 Group:          Development/Tools
58 Requires:       automake
59 Requires:       pkgconfig
60 Conflicts:      glib2-devel < 1:2.10.0
61 Conflicts:      gtk-doc < 0:1.4-3
62 %if "%{_rpmversion}" >= "5"
63 BuildArch:      noarch
64 %endif
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 %if "%{_rpmversion}" >= "5"
77 BuildArch:      noarch
78 %endif
79
80 %description common
81 Common directories for API documentation for various packages,
82 generated using gtk-doc.
83
84 %description common -l pl.UTF-8
85 Katalogi na dokumentację API do różnych pakietów, wygenerowaną za
86 pomocą gtk-doc.
87
88 %prep
89 %setup -q
90 %{!?with_tests:%patch0 -p1}
91
92 %{__mv} doc/README doc/README.docs
93
94 %build
95 %{?with_tests:%{__libtoolize}}
96 %{__aclocal} -I m4
97 %{__autoconf}
98 %{__automake}
99 %configure \
100         --disable-silent-rules
101
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT%{_gtkdocdir} \
107         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113
114 %if %{with gnome}
115 %find_lang gtk-doc-manual --with-gnome
116 %endif
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %files %{?with_gnome:-f gtk-doc-manual.lang}
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog MAINTAINERS NEWS TODO README doc/*
124 %attr(755,root,root) %{_bindir}/gtkdoc-*
125 %attr(755,root,root) %{_bindir}/gtkdocize
126 %{_datadir}/cmake/GtkDoc
127 %{_datadir}/gtk-doc
128 %{_npkgconfigdir}/gtk-doc.pc
129 %{_examplesdir}/%{name}-%{version}
130
131 %files automake
132 %defattr(644,root,root,755)
133 %{_aclocaldir}/gtk-doc.m4
134
135 %files common
136 %defattr(644,root,root,755)
137 %dir %{_docdir}/gtk-doc
138 %dir %{_gtkdocdir}
This page took 0.334188 seconds and 2 git commands to generate.