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
|
|
|
#
|
2011-03-09 15:11:11 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libtool-testsuite
|
|
|
|
BuildRequires: lzma zlib-devel
|
2011-07-29 15:12:43 +02:00
|
|
|
BuildRequires: gcc-c++ gcc-fortran gcc-objc
|
2010-05-28 17:12:11 +02:00
|
|
|
Requires: tar
|
2011-09-16 15:48:05 +02:00
|
|
|
Requires: automake > 1.4
|
2010-05-28 17:12:11 +02:00
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Summary: A Tool to Build Shared Libraries
|
2011-11-10 10:34:15 +01:00
|
|
|
Version: 2.4.2
|
|
|
|
Release: 1
|
2010-05-28 17:12:11 +02:00
|
|
|
AutoReqProv: on
|
|
|
|
# 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
|
2011-03-09 15:11:11 +01:00
|
|
|
#Patch: libtool-%%{version}.diff
|
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
|
|
|
|
License: GPLv2+
|
|
|
|
Summary: Libtool Runtime Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%description -n libltdl7
|
|
|
|
Library needed by programs that use the ltdl interface of GNU libtool.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libtool-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
--prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
|
|
|
|
# force rebuild with non-broken makeinfo
|
|
|
|
rm -f doc/libtool.info
|
2011-02-19 08:33:51 +01:00
|
|
|
make %{?_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
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%if "%{name}" == "libtool"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS NEWS README THANKS ChangeLog
|
|
|
|
/usr/bin/libtool
|
|
|
|
/usr/bin/libtoolize
|
|
|
|
/usr/include/libltdl
|
|
|
|
/usr/include/ltdl.h
|
|
|
|
%{_libdir}/libltdl.a
|
|
|
|
%attr(644, root, root) %{_libdir}/libltdl.la
|
|
|
|
%{_libdir}/libltdl.so
|
|
|
|
/usr/share/aclocal/*.m4
|
|
|
|
%doc %{_infodir}/libtool.info*
|
2011-03-09 15:11:11 +01:00
|
|
|
%doc %{_mandir}/man1/libtool.1.gz
|
|
|
|
%doc %{_mandir}/man1/libtoolize.1.gz
|
2010-05-28 17:12:11 +02:00
|
|
|
/usr/share/libtool
|
|
|
|
|
|
|
|
%files -n libltdl7
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libltdl.so.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|