A new user interface for you!

File libtool.spec of Package libtool

BuildRequires: gcc-c++
# spec file for package libtool
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
BuildRequires:  lzma zlib-devel
Requires:       tar
License:        GPLv2+
Group:          Development/Tools/Building
Summary:        A Tool to Build Shared Libraries
Version:        2.2.6b
Release:        13.<RELEASE2>
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      libtool-64bit
PreReq:         %{install_info_prereq}
Requires:       libltdl7 = %{version}
Url:            http://www.gnu.org/software/libtool/
Source:         ftp://ftp.gnu.org/pub/gnu/libtool/libtool-%{version}.tar.lzma
Source2:        baselibs.conf
Patch0:         fix-AC_LANG_PROGRAM-warnings.patch
Patch1:         libtool-no-hostname.patch
#Patch:          libtool-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%setup -q -n libtool-%{version}
%patch0 -p1
%patch1 -p0
#%patch -p1

./configure CFLAGS="$RPM_OPT_FLAGS" \
   --prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
# force rebuild with non-broken makeinfo
rm -f doc/libtool.info
make %{?_smp_mflags}

%if "%{name}" == "libtool-testsuite"

trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
# Avoid spurious testsuite failures due to messages from icecream
make check



%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info.gz

%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"

%defattr(-, root, root)
%attr(644, root, root) %{_libdir}/libltdl.la
%doc %{_infodir}/libtool.info*

%files -n libltdl7
%defattr(-, root, root)