]> git.pld-linux.org Git - packages/gtk-doc.git/blob - gtk-doc.spec
79f57d191a4b2396f76be9885170f9331aafa03b
[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.28
12 Release:        2
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:  48550c33f9b9b530f9e5f397979b613a
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:  python >= 1:2.7
29 BuildRequires:  python-six
30 BuildRequires:  rpm-pythonprov
31 BuildRequires:  rpmbuild(find_lang) >= 1.23
32 BuildRequires:  rpmbuild(macros) >= 1.446
33 BuildRequires:  tar >= 1:1.22
34 BuildRequires:  xz
35 %{?with_gnome:BuildRequires:    yelp-tools}
36 Requires:       %{name}-automake = %{version}-%{release}
37 Requires:       docbook-dtd43-xml
38 Requires:       docbook-style-xsl-nons >= 1.74.0
39 Requires:       libxml2 >= 1:2.3.6
40 Requires:       libxslt-progs >= 1.1.15
41 Requires:       python-six
42 Requires:       source-highlight
43 Conflicts:      pkgconfig < 1:0.19
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 %{__mv} doc/README doc/README.docs
92
93 %build
94 %{?with_tests:%{__libtoolize}}
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__automake}
98 %configure \
99         HIGHLIGHT="%{_bindir}/source-highlight" \
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 %dir %{_libdir}/cmake/GtkDoc
127 %{_libdir}/cmake/GtkDoc/GtkDocConfig.cmake
128 %{_libdir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
129 %{_libdir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
130 %{_datadir}/gtk-doc
131 %{_npkgconfigdir}/gtk-doc.pc
132 %{_examplesdir}/%{name}-%{version}
133
134 %files automake
135 %defattr(644,root,root,755)
136 %{_aclocaldir}/gtk-doc.m4
137
138 %files common
139 %defattr(644,root,root,755)
140 %dir %{_docdir}/gtk-doc
141 %dir %{_gtkdocdir}
This page took 0.100753 seconds and 2 git commands to generate.