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