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
|
|
|
#
|
2014-09-09 05:55:57 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-07-19 14:21:03 +02:00
|
|
|
###################################################################
|
|
|
|
# NOTE: PLease run pre_checkin.sh before checking in the package! #
|
|
|
|
###################################################################
|
|
|
|
|
2010-05-28 17:12:11 +02:00
|
|
|
Name: libtool-testsuite
|
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
|
2012-07-19 13:45:13 +02:00
|
|
|
Requires: tar
|
2010-05-28 17:12:11 +02:00
|
|
|
Summary: A Tool to Build Shared Libraries
|
2013-11-26 16:22:19 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and GFDL-1.2+
|
2012-07-19 13:45:13 +02:00
|
|
|
Group: Development/Tools/Building
|
2014-11-04 07:31:00 +01:00
|
|
|
Version: 2.4.3
|
2012-07-19 13:45:13 +02:00
|
|
|
Release: 0
|
2010-05-28 17:12:11 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libtool-64bit
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
PreReq: %{install_info_prereq}
|
|
|
|
Requires: libltdl7 = %{version}
|
|
|
|
Url: http://www.gnu.org/software/libtool/
|
2011-08-24 10:53:17 +02:00
|
|
|
Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.gz
|
2010-05-28 17:12:11 +02:00
|
|
|
Source2: baselibs.conf
|
2011-09-16 15:48:05 +02:00
|
|
|
Source3: libtool-rpmlintrc
|
2014-11-21 12:00:38 +01:00
|
|
|
Patch0: libtool-dont_delete_gnulib_files.patch
|
2010-05-28 17:12:11 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2013-11-26 16:14:47 +01:00
|
|
|
License: LGPL-2.1+
|
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}
|
2014-11-21 12:00:38 +01:00
|
|
|
%patch0 -p1
|
2010-05-28 17:12:11 +02:00
|
|
|
|
|
|
|
%build
|
2014-11-21 12:00:38 +01:00
|
|
|
./configure CFLAGS="%{optflags}" \
|
2010-05-28 17:12:11 +02:00
|
|
|
--prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
|
|
|
|
# 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
|
|
|
|
PATH=/usr/bin:$PATH
|
|
|
|
make check
|
2010-09-16 12:22:45 +02:00
|
|
|
|
|
|
|
%install
|
2010-05-28 17:12:11 +02:00
|
|
|
%else
|
|
|
|
|
|
|
|
%install
|
2014-11-21 12:00:38 +01:00
|
|
|
make V=1 install DESTDIR=%{buildroot}
|
|
|
|
chmod +x %{buildroot}%{_datadir}/libtool/build-aux/ltmain.sh
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
|
|
|
|
%post -n libltdl7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libltdl7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%if "%{name}" == "libtool"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-09-09 05:56:08 +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
|
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
|
2010-05-28 17:12:11 +02:00
|
|
|
%doc %{_infodir}/libtool.info*
|
2011-03-09 15:11:11 +01:00
|
|
|
%doc %{_mandir}/man1/libtool.1.gz
|
|
|
|
%doc %{_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
|