File libtool.spec of Package libtool

#
# spec file for package libtool (Version 2.2.6)
#
# Copyright (c) 2009 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
License:        GPL v2 or later
Group:          Development/Tools/Building
Summary:        A Tool to Build Shared Libraries
Version:        2.2.6
Release:        1.<RELEASE36>
AutoReqProv:    on
PreReq:         %{install_info_prereq}
Requires:       libltdl7 = %{version}
Url:            http://www.gnu.org/software/libtool/
Source:         ftp://ftp.gnu.org/pub/gnu/libtool/libtool-%{version}a.tar.lzma
Patch0:         libtool-dont_load_from_current_dir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNU libtool is a set of shell scripts to automatically configure UNIX
architectures to build shared libraries in a generic fashion.



Authors:
--------
    Gordon Matzigkeit  <gord@gnu.org>
    Alexandre Oliva  <oliva@dcc.unicamp.br>
    Thomas Tanner  <tanner@ffii.org>
    Gary V. Vaughan  <gvv@techie.com>
    Ossama Othman  <ossama@debian.org>
    Robert Boehne  <rboehne@ricardo-us.com>
    Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>

%package -n libltdl7
License:        GPL v2 or later
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.



Authors:
--------
    Gordon Matzigkeit  <gord@gnu.org>
    Alexandre Oliva  <oliva@dcc.unicamp.br>
    Thomas Tanner  <tanner@ffii.org>
    Gary V. Vaughan  <gvv@techie.com>
    Ossama Othman  <ossama@debian.org>
    Robert Boehne  <rboehne@ricardo-us.com>
    Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>

%prep
%setup -q
%patch0

%build
./configure CFLAGS="$RPM_OPT_FLAGS" \
   --prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
make %{?jobs:-j %jobs}

%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

%install
%makeinstall

%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

%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*
/usr/share/libtool

%files -n libltdl7
%defattr(-, root, root)
%{_libdir}/libltdl.so.*

%changelog
openSUSE Build Service is sponsored by