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