]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # "make check" | |
4 | %bcond_without tests_expensive # expensive tests | |
5 | ||
6 | Summary: GNU libtool, a shared library generation tool | |
7 | Summary(es.UTF-8): GNU libtool, una herramienta de creación de bibliotecas compartidas | |
8 | Summary(pl.UTF-8): GNU libtool - narzędzie do generowania bibliotek współdzielonych | |
9 | Summary(pt_BR.UTF-8): GNU libtool, uma ferramenta de geração de bibliotecas compartilhadas | |
10 | Summary(ru.UTF-8): GNU libtool, набор утилит для генерации разделяемых библиотек | |
11 | Summary(uk.UTF-8): GNU libtool, набір утиліт для генерації динамічних бібліотек | |
12 | Name: libtool | |
13 | Version: 2.4.6 | |
14 | Release: 21 | |
15 | Epoch: 2 | |
16 | License: GPL v2+ | |
17 | Group: Development/Tools | |
18 | Source0: http://ftp.gnu.org/gnu/libtool/%{name}-%{version}.tar.xz | |
19 | # Source0-md5: 1bfb9b923f2c1339b4d2ce1807064aa5 | |
20 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 | |
21 | # Source1-md5: b95e215961860c66f0868b0d551358c9 | |
22 | Patch0: %{name}-info.patch | |
23 | Patch1: %{name}-libdirs.patch | |
24 | Patch2: %{name}-multilib.patch | |
25 | Patch3: %{name}-linking-order.patch | |
26 | Patch4: %{name}-fuse-ld.patch | |
27 | Patch5: %{name}-libx32.patch | |
28 | URL: http://www.gnu.org/software/libtool/ | |
29 | BuildRequires: /usr/bin/which | |
30 | BuildRequires: autoconf >= 2.62 | |
31 | BuildRequires: automake >= 1:1.11.1 | |
32 | BuildRequires: help2man | |
33 | BuildRequires: libstdc++-devel >= 5:3.3.3 | |
34 | BuildRequires: rpmbuild(macros) >= 1.213 | |
35 | BuildRequires: sed >= 4.0 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: texinfo | |
38 | BuildRequires: xz | |
39 | %requires_eq gcc | |
40 | Requires: coreutils | |
41 | Requires: grep | |
42 | Requires: mktemp | |
43 | Requires: sed | |
44 | Requires: tar | |
45 | Obsoletes: libltdl-devel < 2:2.2 | |
46 | Conflicts: autoconf < 2.58 | |
47 | Conflicts: gettext-devel < 0.17 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | GNU libtool is a set of shell scripts to automatically configure UNIX | |
52 | architectures to build shared libraries in generic fashion. | |
53 | ||
54 | %description -l es.UTF-8 | |
55 | GNU libtool es un conjunto de scripts shell para configurar | |
56 | automáticamente la creación de bibliotecas compartidas para varias | |
57 | arquitecturas UNIX de una manera genérica. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | GNU libtool jest zbiorem skryptów shellowych do automatycznego | |
61 | generowania bibliotek współdzielonych niezależnie od typu platformy | |
62 | systemowej. | |
63 | ||
64 | %description -l pt_BR.UTF-8 | |
65 | GNU libtool é um conjunto de scripts shell para configurar | |
66 | automaticamente a geração de bibliotecas compartilhadas para várias | |
67 | arquiteturas UNIX de uma maneira genérica. | |
68 | ||
69 | %description -l ru.UTF-8 | |
70 | GNU libtool - это набор скриптов для автоматической генерации | |
71 | динамических разделяемых библиотек на различных архитектурах UNIX. | |
72 | ||
73 | %description -l uk.UTF-8 | |
74 | GNU libtool - це набір скриптів для автоматичної генерації динамічних | |
75 | бібліотек на різних архітектурах UNIX. | |
76 | ||
77 | %package -n libltdl | |
78 | Summary: System independent dlopen wrapper for GNU libtool | |
79 | Summary(pl.UTF-8): Biblioteka ogólnych wywołań dlopen | |
80 | Summary(pt_BR.UTF-8): GNU libltdl, um wrapper dlopen para o GNU libtool | |
81 | License: LGPL v2+ | |
82 | Group: Libraries | |
83 | Obsoletes: libtool-libs | |
84 | ||
85 | %description -n libltdl | |
86 | System independent dlopen wrapper for GNU libtool. | |
87 | ||
88 | %description -n libltdl -l pl.UTF-8 | |
89 | Biblioteka ogólnych wywołań dlopen. | |
90 | ||
91 | %description -n libltdl -l pt_BR.UTF-8 | |
92 | GNU libltdl, um wrapper dlopen para o GNU libtool. | |
93 | ||
94 | %package -n libltdl-devel | |
95 | Summary: Development components for libltdl | |
96 | Summary(pl.UTF-8): Część libltdl przeznaczona dla programistów | |
97 | Summary(pt_BR.UTF-8): Componentes de desenvolvimento para a libltdl | |
98 | Summary(ru.UTF-8): Файлы для разработки программ с libltdl | |
99 | Summary(uk.UTF-8): Файли для розробки програм з libltdl | |
100 | License: LGPL v2+ | |
101 | Group: Development/Libraries | |
102 | Requires: libltdl = %{epoch}:%{version}-%{release} | |
103 | ||
104 | %description -n libltdl-devel | |
105 | System independent dlopen wrapper for GNU libtool - development part. | |
106 | Install this package if you want to develop for libltdl. | |
107 | ||
108 | %description -n libltdl-devel -l pl.UTF-8 | |
109 | Biblioteka ogólnych wywołań dlopen - część dla programistów. | |
110 | ||
111 | %description -n libltdl-devel -l pt_BR.UTF-8 | |
112 | Instale este pacote se você deseja desenvolver para a libltdl. | |
113 | ||
114 | %description -n libltdl-devel -l uk.UTF-8 | |
115 | Файли для розробки програм з libltdl. | |
116 | ||
117 | %description -n libltdl-devel -l ru.UTF-8 | |
118 | Файлы для разработки программ с libltdl. | |
119 | ||
120 | %package -n libltdl-static | |
121 | Summary: Static system independent dlopen wrapper for GNU libtool | |
122 | Summary(pl.UTF-8): Statyczna biblioteka ogólnych wywołań dlopen | |
123 | Summary(pt_BR.UTF-8): Componentes de desenvolvimento para a libltdl | |
124 | Summary(ru.UTF-8): Статическая библиотека libltdl из libltdl | |
125 | Summary(uk.UTF-8): Статична бібліотека libltdl з libltdl | |
126 | License: LGPL v2+ | |
127 | Group: Development/Libraries | |
128 | Requires: libltdl-devel = %{epoch}:%{version}-%{release} | |
129 | ||
130 | %description -n libltdl-static | |
131 | Static system independent dlopen wrapper for GNU libtool. Install this | |
132 | package if you want to develop for libltdl, but using static | |
133 | components (seldom used). | |
134 | ||
135 | %description -n libltdl-static -l pl.UTF-8 | |
136 | Statyczna biblioteka ogólnych wywołań dlopen. | |
137 | ||
138 | %description -n libltdl-static -l pt_BR.UTF-8 | |
139 | Instale este pacote se você deseja desenvolver para a libltdl, | |
140 | utilizando componentes estáticos (raramente necessário). | |
141 | ||
142 | %description -n libltdl-static -l ru.UTF-8 | |
143 | Это отдельный пакет со статическими библиотеками, которые больше не | |
144 | входят в libltdl. | |
145 | ||
146 | %description -n libltdl-static -l uk.UTF-8 | |
147 | Це окремий пакет зі статичними бібліотеками, що більше не входять до | |
148 | складу libltdl. | |
149 | ||
150 | %prep | |
151 | %setup -q | |
152 | %patch0 -p1 | |
153 | %patch1 -p1 | |
154 | %patch2 -p1 | |
155 | %patch3 -p1 | |
156 | %patch4 -p1 | |
157 | %patch5 -p1 | |
158 | ||
159 | %build | |
160 | %{__aclocal} -I m4 | |
161 | %{__autoconf} | |
162 | %{__automake} | |
163 | cd libltdl | |
164 | %{__aclocal} -I ../m4 | |
165 | %{__autoconf} | |
166 | %{__automake} | |
167 | cd .. | |
168 | ||
169 | # Change in configure itself, so it will affect packaged %{_bindir}/libtool | |
170 | # script, not local libtools generated during packages building: | |
171 | # libtool packaged as /bin/sh script for general use should work with any | |
172 | # POSIX sh, not just the ones having extensions (like "+=" operator) that | |
173 | # shell used to build libtool package had. | |
174 | %{__sed} -i 's/lt_shell_append=yes/lt_shell_append=no/' configure | |
175 | %configure \ | |
176 | --disable-silent-rules | |
177 | ||
178 | %{__make} | |
179 | ||
180 | %{?with_tests:%{__make} check GCJ= %{!?with_tests_expensive:TESTSUITEFLAGS='-k "!expensive"'}} | |
181 | ||
182 | %install | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | %{__make} install \ | |
185 | INSTALL="install -p" \ | |
186 | DESTDIR=$RPM_BUILD_ROOT | |
187 | ||
188 | # decompress only "ja" manuals; English ones are back in upstream | |
189 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} ja | |
190 | ||
191 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
192 | ||
193 | %clean | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
196 | %post -p /sbin/postshell | |
197 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
198 | ||
199 | %postun -p /sbin/postshell | |
200 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
201 | ||
202 | %post -n libltdl -p /sbin/ldconfig | |
203 | %postun -n libltdl -p /sbin/ldconfig | |
204 | ||
205 | %files | |
206 | %defattr(644,root,root,755) | |
207 | %doc AUTHORS NEWS README THANKS TODO ChangeLog | |
208 | %attr(755,root,root) %{_bindir}/libtool | |
209 | %attr(755,root,root) %{_bindir}/libtoolize | |
210 | %dir %{_datadir}/libtool | |
211 | # libltdl copy for libtoolize --ltdl | |
212 | %dir %{_datadir}/libtool/build-aux | |
213 | %attr(755,root,root) %{_datadir}/libtool/build-aux/compile | |
214 | %attr(755,root,root) %{_datadir}/libtool/build-aux/config.guess | |
215 | %attr(755,root,root) %{_datadir}/libtool/build-aux/config.sub | |
216 | %attr(755,root,root) %{_datadir}/libtool/build-aux/depcomp | |
217 | %attr(755,root,root) %{_datadir}/libtool/build-aux/install-sh | |
218 | %attr(755,root,root) %{_datadir}/libtool/build-aux/ltmain.sh | |
219 | %attr(755,root,root) %{_datadir}/libtool/build-aux/missing | |
220 | %{_datadir}/libtool/COPYING.LIB | |
221 | %{_datadir}/libtool/README | |
222 | %{_datadir}/libtool/Makefile* | |
223 | %{_datadir}/libtool/aclocal.m4 | |
224 | %{_datadir}/libtool/config-h.in | |
225 | %attr(755,root,root) %{_datadir}/libtool/configure | |
226 | %{_datadir}/libtool/configure.ac | |
227 | %{_datadir}/libtool/lt*.c | |
228 | %{_datadir}/libtool/ltdl.h | |
229 | %{_datadir}/libtool/ltdl.mk | |
230 | %{_datadir}/libtool/slist.c | |
231 | %{_datadir}/libtool/libltdl | |
232 | %{_datadir}/libtool/loaders | |
233 | %{_mandir}/man1/libtool.1* | |
234 | %{_mandir}/man1/libtoolize.1* | |
235 | %lang(ja) %{_mandir}/ja/man1/libtool.1* | |
236 | %lang(ja) %{_mandir}/ja/man1/libtoolize.1* | |
237 | %{_infodir}/libtool.info* | |
238 | %{_aclocaldir}/libtool.m4 | |
239 | %{_aclocaldir}/ltoptions.m4 | |
240 | %{_aclocaldir}/ltsugar.m4 | |
241 | %{_aclocaldir}/ltversion.m4 | |
242 | %{_aclocaldir}/lt~obsolete.m4 | |
243 | ||
244 | %files -n libltdl | |
245 | %defattr(644,root,root,755) | |
246 | %attr(755,root,root) %{_libdir}/libltdl.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libltdl.so.7 | |
248 | ||
249 | %files -n libltdl-devel | |
250 | %defattr(644,root,root,755) | |
251 | %attr(755,root,root) %{_libdir}/libltdl.so | |
252 | %{_libdir}/libltdl.la | |
253 | %{_includedir}/libltdl | |
254 | %{_aclocaldir}/ltargz.m4 | |
255 | %{_includedir}/ltdl.h | |
256 | %{_aclocaldir}/ltdl.m4 | |
257 | ||
258 | %files -n libltdl-static | |
259 | %defattr(644,root,root,755) | |
260 | %{_libdir}/libltdl.a |