2006-12-19 00:16:57 +01:00
|
|
|
#
|
2009-12-04 09:53:43 +01:00
|
|
|
# spec file for package libtool (Version 2.2.6b)
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
2010-01-08 17:31:11 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:57 +01:00
|
|
|
#
|
2008-09-24 00:03:14 +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.
|
|
|
|
|
2006-12-19 00:16:57 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 13:17:51 +02:00
|
|
|
|
2006-12-19 00:16:57 +01:00
|
|
|
Name: libtool
|
2009-12-04 09:53:43 +01:00
|
|
|
BuildRequires: lzma zlib-devel
|
2010-05-28 17:12:11 +02:00
|
|
|
Requires: tar
|
2009-12-04 09:53:43 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:16:57 +01:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Summary: A Tool to Build Shared Libraries
|
2009-12-04 09:53:43 +01:00
|
|
|
Version: 2.2.6b
|
2010-05-28 17:12:11 +02:00
|
|
|
Release: 4
|
2007-11-23 01:37:37 +01:00
|
|
|
AutoReqProv: on
|
2009-01-08 18:45:32 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libtool-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:16:57 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2008-09-24 00:03:14 +02:00
|
|
|
Requires: libltdl7 = %{version}
|
2007-11-23 01:37:37 +01:00
|
|
|
Url: http://www.gnu.org/software/libtool/
|
2009-12-04 09:53:43 +01:00
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/libtool/libtool-%{version}.tar.lzma
|
2010-01-08 17:31:11 +01:00
|
|
|
Source2: baselibs.conf
|
|
|
|
Patch1: libtool-no-hostname.patch
|
2008-09-24 00:03:14 +02:00
|
|
|
#Patch: libtool-%{version}.diff
|
2006-12-19 00:16:57 +01:00
|
|
|
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.
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%package -n libltdl7
|
2009-12-04 09:53:43 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:16:57 +01:00
|
|
|
Summary: Libtool Runtime Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-23 01:37:37 +01:00
|
|
|
AutoReqProv: on
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%description -n libltdl7
|
2006-12-19 00:16:57 +01:00
|
|
|
Library needed by programs that use the ltdl interface of GNU libtool.
|
|
|
|
|
|
|
|
%prep
|
2010-05-28 17:12:11 +02:00
|
|
|
%setup -q -n libtool-%{version}
|
2010-01-08 17:31:11 +01:00
|
|
|
%patch1 -p0
|
2008-09-24 00:03:14 +02:00
|
|
|
#%patch -p1
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
--prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
|
2009-02-07 16:54:35 +01:00
|
|
|
# force rebuild with non-broken makeinfo
|
|
|
|
rm -f doc/libtool.info
|
2008-09-24 00:03:14 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
2010-05-28 17:12:11 +02:00
|
|
|
%if "%{name}" == "libtool-testsuite"
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%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-05-31 11:56:36 +02:00
|
|
|
|
|
|
|
%install
|
2010-05-28 17:12:11 +02:00
|
|
|
%else
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libtool.info.gz
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%post -n libltdl7 -p /sbin/ldconfig
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%postun -n libltdl7 -p /sbin/ldconfig
|
2006-12-19 00:16:57 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-05-28 17:12:11 +02:00
|
|
|
%if "%{name}" == "libtool"
|
|
|
|
|
2006-12-19 00:16:57 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS NEWS README THANKS ChangeLog
|
|
|
|
/usr/bin/libtool
|
|
|
|
/usr/bin/libtoolize
|
2008-09-24 00:03:14 +02:00
|
|
|
/usr/include/libltdl
|
2006-12-19 00:16:57 +01:00
|
|
|
/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
|
|
|
|
|
2008-09-24 00:03:14 +02:00
|
|
|
%files -n libltdl7
|
2006-12-19 00:16:57 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libltdl.so.*
|
2010-05-28 17:12:11 +02:00
|
|
|
%endif
|
2006-12-19 00:16:57 +01:00
|
|
|
|
2007-06-14 18:34:04 +02:00
|
|
|
%changelog
|