]> git.pld-linux.org Git - packages/libtool.git/blob - libtool.spec
- release 8 (gcc 13.3.0)
[packages/libtool.git] / libtool.spec
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.7
14 Release:        8
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:  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
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 < 1.4
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 %{__sed} -i -e '1s, /usr/bin/env sh,/bin/sh,' libtoolize.in build-aux/ltmain.{in,sh}
160
161 %build
162 %{__aclocal} -I m4
163 %{__autoconf}
164 %{__automake}
165 cd libltdl
166 %{__aclocal} -I ../m4
167 %{__autoconf}
168 %{__automake}
169 cd ..
170
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
177 %configure \
178         --disable-silent-rules
179
180 %{__make}
181
182 %{?with_tests:%{__make} check GCJ= %{!?with_tests_expensive:TESTSUITEFLAGS='-k "!expensive"'}}
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186 %{__make} install \
187         INSTALL="install -p" \
188         DESTDIR=$RPM_BUILD_ROOT
189
190 # decompress only "ja" manuals; English ones are back in upstream
191 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} ja
192
193 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
194
195 %clean
196 rm -rf $RPM_BUILD_ROOT
197
198 %post   -p /sbin/postshell
199 -/usr/sbin/fix-info-dir -c %{_infodir}
200
201 %postun -p /sbin/postshell
202 -/usr/sbin/fix-info-dir -c %{_infodir}
203
204 %post   -n libltdl -p /sbin/ldconfig
205 %postun -n libltdl -p /sbin/ldconfig
206
207 %files
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
245
246 %files -n libltdl
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libltdl.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/libltdl.so.7
250
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
259
260 %files -n libltdl-static
261 %defattr(644,root,root,755)
262 %{_libdir}/libltdl.a
This page took 0.118468 seconds and 4 git commands to generate.