2010-05-28 17:12:11 +02:00
|
|
|
#
|
2011-03-14 09:38:08 +01:00
|
|
|
# spec file for package libtool-testsuite
|
2010-05-28 17:12:11 +02:00
|
|
|
#
|
2019-08-02 10:26:28 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-28 17:12:11 +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/
|
2010-05-28 17:12:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-02-09 14:42:47 +01:00
|
|
|
#####################################################################
|
|
|
|
# #
|
|
|
|
# NOTE: PLEASE RUN pre_checkin.sh BEFORE SUBMITTING THE PACKAGE #
|
|
|
|
# #
|
|
|
|
#####################################################################
|
2010-05-28 17:12:11 +02:00
|
|
|
Name: libtool-testsuite
|
2015-04-25 10:11:35 +02:00
|
|
|
Version: 2.4.6
|
|
|
|
Release: 0
|
|
|
|
Summary: A Tool to Build Shared Libraries
|
2018-05-04 14:56:38 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND GFDL-1.2-or-later
|
2015-04-25 10:11:35 +02:00
|
|
|
Group: Development/Tools/Building
|
2018-12-10 09:58:51 +01:00
|
|
|
Url: http://www.gnu.org/software/libtool/
|
2015-04-25 10:11:35 +02:00
|
|
|
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
|
2018-05-09 09:07:51 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- do not add build host name boo#1084909
|
|
|
|
Patch0: libtool-reproducible-hostname.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-09-16 15:48:05 +02: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(post): %{install_info_prereq}
|
2018-05-04 14:56:38 +02:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2011-09-16 15:48:05 +02:00
|
|
|
Provides: libltdl-devel
|
|
|
|
# fedora name
|
|
|
|
Provides: libtool-ltdl-devel
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU libtool is a set of shell scripts to automatically configure UNIX
|
|
|
|
architectures to build shared libraries in a generic fashion.
|
|
|
|
|
|
|
|
%package -n libltdl7
|
|
|
|
Summary: Libtool Runtime Library
|
2018-05-04 14:56:38 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2010-05-28 17:12:11 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libltdl7
|
|
|
|
Library needed by programs that use the ltdl interface of GNU libtool.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libtool-%{version}
|
2018-05-09 09:07:51 +02:00
|
|
|
%patch0 -p1
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-02 10:26:28 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2014-11-21 12:00:38 +01:00
|
|
|
./configure CFLAGS="%{optflags}" \
|
2018-05-04 14:56:38 +02:00
|
|
|
--prefix=%{_prefix} --infodir=%{_infodir} --libdir=%{_libdir}
|
2010-05-28 17:12:11 +02: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}
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%if "%{name}" == "libtool-testsuite"
|
|
|
|
%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
|
|
|
|
%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
|
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
|
|
|
|
|
|
|
|
%post
|
2015-05-04 09:50:15 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
2016-03-18 11:08:19 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info-1.gz
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info-2.gz
|
2015-05-04 09:50:15 +02:00
|
|
|
|
2015-04-25 10:11:35 +02:00
|
|
|
%preun
|
2016-03-18 11:08:19 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info-1.gz
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info-2.gz
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%post -n libltdl7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libltdl7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%if "%{name}" == "libtool"
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
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
|
2010-05-28 17:12:11 +02: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
|
2018-05-04 14:56:38 +02:00
|
|
|
%{_infodir}/libtool.info*
|
|
|
|
%{_mandir}/man1/libtool.1.gz
|
|
|
|
%{_mandir}/man1/libtoolize.1.gz
|
2014-11-21 12:00:38 +01:00
|
|
|
%{_datadir}/libtool
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%files -n libltdl7
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libltdl.so.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|