3 %bcond_without tests # "make check"
4 %bcond_without tests_expensive # expensive tests
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, набір утиліт для генерації динамічних бібліотек
17 Group: Development/Tools
18 Source0: http://ftp.gnu.org/gnu/libtool/%{name}-%{version}.tar.xz
19 # Source0-md5: 2fc0b6ddcd66a89ed6e45db28fa44232
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}-libx32.patch
27 Patch5: 0001-tests-Fix-grep-warning-about-stray-before.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
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)
51 GNU libtool is a set of shell scripts to automatically configure UNIX
52 architectures to build shared libraries in generic fashion.
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.
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
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.
69 %description -l ru.UTF-8
70 GNU libtool - это набор скриптов для автоматической генерации
71 динамических разделяемых библиотек на различных архитектурах UNIX.
73 %description -l uk.UTF-8
74 GNU libtool - це набір скриптів для автоматичної генерації динамічних
75 бібліотек на різних архітектурах UNIX.
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
83 Obsoletes: libtool-libs < 1.4
85 %description -n libltdl
86 System independent dlopen wrapper for GNU libtool.
88 %description -n libltdl -l pl.UTF-8
89 Biblioteka ogólnych wywołań dlopen.
91 %description -n libltdl -l pt_BR.UTF-8
92 GNU libltdl, um wrapper dlopen para o GNU libtool.
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
101 Group: Development/Libraries
102 Requires: libltdl = %{epoch}:%{version}-%{release}
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.
108 %description -n libltdl-devel -l pl.UTF-8
109 Biblioteka ogólnych wywołań dlopen - część dla programistów.
111 %description -n libltdl-devel -l pt_BR.UTF-8
112 Instale este pacote se você deseja desenvolver para a libltdl.
114 %description -n libltdl-devel -l uk.UTF-8
115 Файли для розробки програм з libltdl.
117 %description -n libltdl-devel -l ru.UTF-8
118 Файлы для разработки программ с libltdl.
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
127 Group: Development/Libraries
128 Requires: libltdl-devel = %{epoch}:%{version}-%{release}
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).
135 %description -n libltdl-static -l pl.UTF-8
136 Statyczna biblioteka ogólnych wywołań dlopen.
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).
142 %description -n libltdl-static -l ru.UTF-8
143 Это отдельный пакет со статическими библиотеками, которые больше не
146 %description -n libltdl-static -l uk.UTF-8
147 Це окремий пакет зі статичними бібліотеками, що більше не входять до
159 %{__sed} -i -e '1s, /usr/bin/env sh,/bin/sh,' libtoolize.in build-aux/ltmain.{in,sh}
166 %{__aclocal} -I ../m4
171 # Change in configure itself, so it will affect packaged %{_bindir}/libtool
172 # script, not local libtools generated during packages building:
173 # libtool packaged as /bin/sh script for general use should work with any
174 # POSIX sh, not just the ones having extensions (like "+=" operator) that
175 # shell used to build libtool package had.
176 %{__sed} -i 's/lt_shell_append=yes/lt_shell_append=no/' configure
178 --disable-silent-rules
182 %{?with_tests:%{__make} check GCJ= %{!?with_tests_expensive:TESTSUITEFLAGS='-k "!expensive"'}}
185 rm -rf $RPM_BUILD_ROOT
187 INSTALL="install -p" \
188 DESTDIR=$RPM_BUILD_ROOT
190 # decompress only "ja" manuals; English ones are back in upstream
191 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} ja
193 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
196 rm -rf $RPM_BUILD_ROOT
198 %post -p /sbin/postshell
199 -/usr/sbin/fix-info-dir -c %{_infodir}
201 %postun -p /sbin/postshell
202 -/usr/sbin/fix-info-dir -c %{_infodir}
204 %post -n libltdl -p /sbin/ldconfig
205 %postun -n libltdl -p /sbin/ldconfig
208 %defattr(644,root,root,755)
209 %doc AUTHORS NEWS README THANKS TODO ChangeLog
210 %attr(755,root,root) %{_bindir}/libtool
211 %attr(755,root,root) %{_bindir}/libtoolize
212 %dir %{_datadir}/libtool
213 # libltdl copy for libtoolize --ltdl
214 %dir %{_datadir}/libtool/build-aux
215 %attr(755,root,root) %{_datadir}/libtool/build-aux/compile
216 %attr(755,root,root) %{_datadir}/libtool/build-aux/config.guess
217 %attr(755,root,root) %{_datadir}/libtool/build-aux/config.sub
218 %attr(755,root,root) %{_datadir}/libtool/build-aux/depcomp
219 %attr(755,root,root) %{_datadir}/libtool/build-aux/install-sh
220 %attr(755,root,root) %{_datadir}/libtool/build-aux/ltmain.sh
221 %attr(755,root,root) %{_datadir}/libtool/build-aux/missing
222 %{_datadir}/libtool/COPYING.LIB
223 %{_datadir}/libtool/README
224 %{_datadir}/libtool/Makefile*
225 %{_datadir}/libtool/aclocal.m4
226 %{_datadir}/libtool/config-h.in
227 %attr(755,root,root) %{_datadir}/libtool/configure
228 %{_datadir}/libtool/configure.ac
229 %{_datadir}/libtool/lt*.c
230 %{_datadir}/libtool/ltdl.h
231 %{_datadir}/libtool/ltdl.mk
232 %{_datadir}/libtool/slist.c
233 %{_datadir}/libtool/libltdl
234 %{_datadir}/libtool/loaders
235 %{_mandir}/man1/libtool.1*
236 %{_mandir}/man1/libtoolize.1*
237 %lang(ja) %{_mandir}/ja/man1/libtool.1*
238 %lang(ja) %{_mandir}/ja/man1/libtoolize.1*
239 %{_infodir}/libtool.info*
240 %{_aclocaldir}/libtool.m4
241 %{_aclocaldir}/ltoptions.m4
242 %{_aclocaldir}/ltsugar.m4
243 %{_aclocaldir}/ltversion.m4
244 %{_aclocaldir}/lt~obsolete.m4
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libltdl.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/libltdl.so.7
251 %files -n libltdl-devel
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libltdl.so
254 %{_libdir}/libltdl.la
255 %{_includedir}/libltdl
256 %{_aclocaldir}/ltargz.m4
257 %{_includedir}/ltdl.h
258 %{_aclocaldir}/ltdl.m4
260 %files -n libltdl-static
261 %defattr(644,root,root,755)