]> git.pld-linux.org Git - packages/libtool.git/blob - libtool.spec
807b1469d2ad32427106f8d41db4fc1aac624461
[packages/libtool.git] / libtool.spec
1 #
2 # Conditional build:
3 %bcond_without  tests
4 %bcond_without  tests_expensive
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.3
14 Release:        1
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:  b5699a6d58f5594cdb0992c5e1f5e57e
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}-tests.patch
28 URL:            http://www.gnu.org/software/libtool/
29 BuildRequires:  /usr/bin/which
30 BuildRequires:  autoconf >= 2.59
31 BuildRequires:  automake >= 1:1.11.1
32 BuildRequires:  libstdc++-devel >= 5:3.3.3
33 BuildRequires:  rpmbuild(macros) >= 1.213
34 BuildRequires:  sed >= 4.0
35 BuildRequires:  tar >= 1:1.22
36 BuildRequires:  texinfo
37 BuildRequires:  xz
38 %requires_eq    gcc
39 Requires:       coreutils
40 Requires:       grep
41 Requires:       mktemp
42 Requires:       sed
43 Requires:       tar
44 Obsoletes:      libltdl-devel < 2:2.2
45 Conflicts:      autoconf < 2.58
46 Conflicts:      gettext-devel < 0.17
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %description
50 GNU libtool is a set of shell scripts to automatically configure UNIX
51 architectures to build shared libraries in generic fashion.
52
53 %description -l es.UTF-8
54 GNU libtool es un conjunto de scripts shell para configurar
55 automáticamente la creación de bibliotecas compartidas para varias
56 arquitecturas UNIX de una manera genérica.
57
58 %description -l pl.UTF-8
59 GNU libtool jest zbiorem skryptów shellowych do automatycznego
60 generowania bibliotek współdzielonych niezależnie od typu platformy
61 systemowej.
62
63 %description -l pt_BR.UTF-8
64 GNU libtool é um conjunto de scripts shell para configurar
65 automaticamente a geração de bibliotecas compartilhadas para várias
66 arquiteturas UNIX de uma maneira genérica.
67
68 %description -l ru.UTF-8
69 GNU libtool - это набор скриптов для автоматической генерации
70 динамических разделяемых библиотек на различных архитектурах UNIX.
71
72 %description -l uk.UTF-8
73 GNU libtool - це набір скриптів для автоматичної генерації динамічних
74 бібліотек на різних архітектурах UNIX.
75
76 %package -n libltdl
77 Summary:        System independent dlopen wrapper for GNU libtool
78 Summary(pl.UTF-8):      Biblioteka ogólnych wywołań dlopen
79 Summary(pt_BR.UTF-8):   GNU libltdl, um wrapper dlopen para o GNU libtool
80 License:        LGPL v2+
81 Group:          Libraries
82 Obsoletes:      libtool-libs
83
84 %description -n libltdl
85 System independent dlopen wrapper for GNU libtool.
86
87 %description -n libltdl -l pl.UTF-8
88 Biblioteka ogólnych wywołań dlopen.
89
90 %description -n libltdl -l pt_BR.UTF-8
91 GNU libltdl, um wrapper dlopen para o GNU libtool.
92
93 %package -n libltdl-devel
94 Summary:        Development components for libltdl
95 Summary(pl.UTF-8):      Część libltdl przeznaczona dla programistów
96 Summary(pt_BR.UTF-8):   Componentes de desenvolvimento para a libltdl
97 Summary(ru.UTF-8):      Файлы для разработки программ с libltdl
98 Summary(uk.UTF-8):      Файли для розробки програм з libltdl
99 License:        LGPL v2+
100 Group:          Development/Libraries
101 Requires:       libltdl = %{epoch}:%{version}-%{release}
102
103 %description -n libltdl-devel
104 System independent dlopen wrapper for GNU libtool - development part.
105 Install this package if you want to develop for libltdl.
106
107 %description -n libltdl-devel -l pl.UTF-8
108 Biblioteka ogólnych wywołań dlopen - część dla programistów.
109
110 %description -n libltdl-devel -l pt_BR.UTF-8
111 Instale este pacote se você deseja desenvolver para a libltdl.
112
113 %description -n libltdl-devel -l uk.UTF-8
114 Файли для розробки програм з libltdl.
115
116 %description -n libltdl-devel -l ru.UTF-8
117 Файлы для разработки программ с libltdl.
118
119 %package -n libltdl-static
120 Summary:        Static system independent dlopen wrapper for GNU libtool
121 Summary(pl.UTF-8):      Statyczna biblioteka ogólnych wywołań dlopen
122 Summary(pt_BR.UTF-8):   Componentes de desenvolvimento para a libltdl
123 Summary(ru.UTF-8):      Статическая библиотека libltdl из libltdl
124 Summary(uk.UTF-8):      Статична бібліотека libltdl з libltdl
125 License:        LGPL v2+
126 Group:          Development/Libraries
127 Requires:       libltdl-devel = %{epoch}:%{version}-%{release}
128
129 %description -n libltdl-static
130 Static system independent dlopen wrapper for GNU libtool. Install this
131 package if you want to develop for libltdl, but using static
132 components (seldom used).
133
134 %description -n libltdl-static -l pl.UTF-8
135 Statyczna biblioteka ogólnych wywołań dlopen.
136
137 %description -n libltdl-static -l pt_BR.UTF-8
138 Instale este pacote se você deseja desenvolver para a libltdl,
139 utilizando componentes estáticos (raramente necessário).
140
141 %description -n libltdl-static -l ru.UTF-8
142 Это отдельный пакет со статическими библиотеками, которые больше не
143 входят в libltdl.
144
145 %description -n libltdl-static -l uk.UTF-8
146 Це окремий пакет зі статичними бібліотеками, що більше не входять до
147 складу libltdl.
148
149 %prep
150 %setup -q
151 %patch0 -p1
152 %patch1 -p1
153 %patch2 -p1
154 %patch3 -p1
155 %patch4 -p1
156 %patch5 -p1
157
158 %build
159 %{__aclocal} -I m4
160 %{__autoconf}
161 %{__automake}
162 cd libltdl
163 %{__aclocal} -I ../m4
164 %{__autoconf}
165 %{__automake}
166 cd ..
167
168 # Change in configure itself, so it will affect packaged %{_bindir}/libtool
169 # script, not local libtools generated during packages building:
170 # libtool packaged as /bin/sh script for general use should work with any
171 # POSIX sh, not just the ones having extensions (like "+=" operator) that
172 # shell used to build libtool package had.
173 %{__sed} -i 's/lt_shell_append=yes/lt_shell_append=no/' configure
174 %configure \
175         --disable-silent-rules
176
177 %{__make}
178
179 %{?with_tests:%{__make} check %{!?with_tests_expensive:TESTSUITEFLAGS='-k "!expensive"'}}
180
181 %install
182 rm -rf $RPM_BUILD_ROOT
183 install -d $RPM_BUILD_ROOT%{_mandir}
184
185 %{__make} install \
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/argz.c
225 %{_datadir}/libtool/argz_.h
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 %{_includedir}/ltdl.h
257 %{_aclocaldir}/argz.m4
258 %{_aclocaldir}/ltdl.m4
259
260 %files -n libltdl-static
261 %defattr(644,root,root,755)
262 %{_libdir}/libltdl.a
This page took 0.053295 seconds and 2 git commands to generate.