2006-12-19 00:16:57 +01:00
|
|
|
#
|
2011-03-09 15:11:11 +01:00
|
|
|
# spec file for package libtool
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
2015-04-17 10:03:44 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
2008-09-24 00:03:14 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:16:57 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-02-09 14:42:47 +01:00
|
|
|
#####################################################################
|
|
|
|
# #
|
|
|
|
# NOTE: PLEASE RUN pre_checkin.sh BEFORE SUBMITTING THE PACKAGE #
|
|
|
|
# #
|
|
|
|
#####################################################################
|
2006-12-19 00:16:57 +01:00
|
|
|
Name: libtool
|
2015-04-25 10:11:35 +02:00
|
|
|
Version: 2.4.6
|
|
|
|
Release: 0
|
|
|
|
Summary: A Tool to Build Shared Libraries
|
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and GFDL-1.2+
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Url: http://www.gnu.org/software/libtool/
|
|
|
|
Source0: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
|
|
|
|
Source1: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz.sig
|
|
|
|
Source2: libtool.keyring
|
|
|
|
Source3: baselibs.conf
|
|
|
|
Source4: libtool-rpmlintrc
|
|
|
|
Patch0: libtool-no_host_name.patch
|
2012-07-19 13:45:13 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-fortran
|
|
|
|
BuildRequires: gcc-objc
|
2014-11-21 12:00:38 +01:00
|
|
|
BuildRequires: help2man
|
2012-07-19 13:45:13 +02:00
|
|
|
BuildRequires: lzma
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: zlib-devel
|
2011-03-14 09:53:05 +01:00
|
|
|
Requires: automake > 1.4
|
2015-04-25 10:11:35 +02:00
|
|
|
Requires: libltdl7 = %{version}
|
2014-12-08 07:44:25 +01:00
|
|
|
Requires: m4 >= 1.4.16
|
2012-07-19 13:45:13 +02:00
|
|
|
Requires: tar
|
2015-04-25 10:11:35 +02:00
|
|
|
Requires(preun): %{install_info_prereq}
|
|
|
|
Requires(post): %{install_info_prereq}
|
2011-03-14 09:53:05 +01:00
|
|
|
Provides: libltdl-devel
|
|
|
|
# fedora name
|
|
|
|
Provides: libtool-ltdl-devel
|
2015-04-25 10:11:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU libtool is a set of shell scripts to automatically configure UNIX
|
|
|
|
architectures to build shared libraries in a generic fashion.
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%package -n libltdl7
|
2006-12-19 00:16:57 +01:00
|
|
|
Summary: Libtool Runtime Library
|
2013-11-26 16:14:47 +01:00
|
|
|
License: LGPL-2.1+
|
2006-12-19 00:16:57 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%description -n libltdl7
|
2006-12-19 00:16:57 +01:00
|
|
|
Library needed by programs that use the ltdl interface of GNU libtool.
|
|
|
|
|
|
|
|
%prep
|
2010-05-28 17:12:11 +02:00
|
|
|
%setup -q -n libtool-%{version}
|
2015-02-09 14:42:47 +01:00
|
|
|
%patch0
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%build
|
2014-11-21 12:00:38 +01:00
|
|
|
./configure CFLAGS="%{optflags}" \
|
2006-12-19 00:16:57 +01:00
|
|
|
--prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
|
2009-02-07 16:54:35 +01:00
|
|
|
# force rebuild with non-broken makeinfo
|
|
|
|
rm -f doc/libtool.info
|
2014-11-21 12:00:38 +01:00
|
|
|
make V=1 %{?_smp_mflags}
|
2008-09-24 00:03:14 +02:00
|
|
|
|
2010-05-28 17:12:11 +02:00
|
|
|
%if "%{name}" == "libtool-testsuite"
|
2008-09-24 00:03:14 +02:00
|
|
|
%check
|
|
|
|
trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
|
|
|
|
# Avoid spurious testsuite failures due to messages from icecream
|
2015-04-25 10:11:35 +02:00
|
|
|
PATH=%{_prefix}/bin:$PATH
|
|
|
|
make %{?_smp_mflags} check
|
2010-09-16 12:22:45 +02:00
|
|
|
|
|
|
|
%install
|
2010-05-28 17:12:11 +02:00
|
|
|
%else
|
2006-12-19 00:16:57 +01:00
|
|
|
%install
|
2015-04-25 10:11:35 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-11-21 12:00:38 +01:00
|
|
|
chmod +x %{buildroot}%{_datadir}/libtool/build-aux/ltmain.sh
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%post
|
2015-05-04 09:50:15 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2015-04-25 10:11:35 +02:00
|
|
|
%preun
|
2015-04-17 10:03:44 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info*.gz
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%post -n libltdl7 -p /sbin/ldconfig
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%postun -n libltdl7 -p /sbin/ldconfig
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2010-05-28 17:12:11 +02:00
|
|
|
%if "%{name}" == "libtool"
|
2006-12-19 00:16:57 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-09-09 05:55:57 +02:00
|
|
|
%doc AUTHORS NEWS README THANKS ChangeLog COPYING
|
2014-11-21 12:00:38 +01:00
|
|
|
%{_bindir}/libtool
|
|
|
|
%{_bindir}/libtoolize
|
|
|
|
%{_includedir}/libltdl
|
|
|
|
%{_includedir}/ltdl.h
|
2006-12-19 00:16:57 +01:00
|
|
|
%{_libdir}/libltdl.a
|
|
|
|
%attr(644, root, root) %{_libdir}/libltdl.la
|
|
|
|
%{_libdir}/libltdl.so
|
2014-11-21 12:00:38 +01:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2006-12-19 00:16:57 +01:00
|
|
|
%doc %{_infodir}/libtool.info*
|
2011-02-19 08:33:51 +01:00
|
|
|
%doc %{_mandir}/man1/libtool.1.gz
|
|
|
|
%doc %{_mandir}/man1/libtoolize.1.gz
|
2014-11-21 12:00:38 +01:00
|
|
|
%{_datadir}/libtool
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%files -n libltdl7
|
2006-12-19 00:16:57 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libltdl.so.*
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2007-06-14 18:34:04 +02:00
|
|
|
%changelog
|