2006-12-19 00:16:57 +01:00
|
|
|
#
|
2022-03-20 21:49:01 +01:00
|
|
|
# spec file
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
2022-03-20 21:49:01 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-08-02 10:26:28 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-03-20 21:49:01 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "testsuite"
|
|
|
|
%define psuffix -testsuite
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%endif
|
|
|
|
Name: libtool%{psuffix}
|
|
|
|
Version: 2.4.7
|
2015-04-25 10:11:35 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Tool to Build Shared Libraries
|
2022-03-20 21:49:01 +01:00
|
|
|
License: GFDL-1.2-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
2015-04-25 10:11:35 +02:00
|
|
|
Group: Development/Tools/Building
|
2022-03-20 21:49:01 +01:00
|
|
|
URL: https://www.gnu.org/software/libtool/
|
|
|
|
Source0: https://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz.sig
|
2015-04-25 10:11:35 +02:00
|
|
|
Source2: libtool.keyring
|
|
|
|
Source3: baselibs.conf
|
|
|
|
Source4: libtool-rpmlintrc
|
2018-05-09 09:07:51 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909
|
|
|
|
Patch0: libtool-reproducible-hostname.patch
|
2022-03-29 15:47:07 +02:00
|
|
|
# PATCH-FIX-OPENSUSE: workaround irrelevant compiler warning
|
|
|
|
Patch1: handle-Werror-return-type.patch
|
2022-09-05 09:06:56 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- fix tests with GNU grep 3.8 boo#1203097
|
|
|
|
Patch2: libtool-2.4.7-grep-3.8.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
|
2011-03-14 09:53:05 +01:00
|
|
|
Provides: libltdl-devel
|
|
|
|
# fedora name
|
|
|
|
Provides: libtool-ltdl-devel
|
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
|
2018-05-04 14:56:38 +02:00
|
|
|
License: LGPL-2.1-or-later
|
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
|
2022-03-29 15:47:07 +02:00
|
|
|
%autosetup -p1 -n libtool-%{version}
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%build
|
2022-03-29 15:47:07 +02:00
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%configure
|
2009-02-07 16:54:35 +01:00
|
|
|
rm -f doc/libtool.info
|
2022-03-20 21:49:01 +01:00
|
|
|
%make_build
|
2008-09-24 00:03:14 +02:00
|
|
|
|
2022-03-20 21:49:01 +01:00
|
|
|
%if "%{flavor}" == "testsuite"
|
2008-09-24 00:03:14 +02:00
|
|
|
%check
|
|
|
|
trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
|
2022-03-29 15:47:07 +02:00
|
|
|
%make_build check
|
2010-09-16 12:22:45 +02:00
|
|
|
|
|
|
|
%install
|
2010-05-28 17:12:11 +02:00
|
|
|
%else
|
2022-03-20 21:49:01 +01:00
|
|
|
|
2006-12-19 00:16:57 +01:00
|
|
|
%install
|
2022-03-20 21:49:01 +01:00
|
|
|
%make_install
|
2014-11-21 12:00:38 +01:00
|
|
|
chmod +x %{buildroot}%{_datadir}/libtool/build-aux/ltmain.sh
|
2018-05-04 14:56:38 +02:00
|
|
|
# Do not add builder's hostname into generated scripts
|
|
|
|
sed -i "/uname -n/d" %{buildroot}%{_datadir}/aclocal/libtool.m4
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%post -n libltdl7 -p /sbin/ldconfig
|
|
|
|
%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
|
2018-05-04 14:56:38 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README THANKS ChangeLog
|
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
|
2022-03-20 21:49:01 +01:00
|
|
|
%{_infodir}/libtool.info%{?ext_info}
|
|
|
|
%{_infodir}/libtool.info-1%{?ext_info}
|
|
|
|
%{_infodir}/libtool.info-2%{?ext_info}
|
|
|
|
%{_mandir}/man1/libtool.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/libtoolize.1%{?ext_man}
|
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
|
2022-03-29 14:26:08 +02:00
|
|
|
%{_libdir}/libltdl.so.7*
|
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
|