%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} %global gcc_major %(gcc -dumpversion || echo "666") Summary: The GNU Portable Library Tool Summary(ja): GNU ポータブルライブラリツール Name: libtool Version: 2.4.7 Release: 3%{?_dist_release} Group: programming Vendor: Project Vine Distribution: Vine Linux License: GPLv2+ and LGPLv2+ and GFDL URL: https://www.gnu.org/software/libtool/ Source: https://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz # ~> downstream # ~> remove possibly once #1158915 gets fixed somehow Patch0: libtool-2.4.5-rpath.patch # See the rhbz#1289759 and rhbz#1214506. We disable hardening namely because # that bakes the CFLAGS/LDFLAGS into installed /bin/libtool and ltmain.sh files. # At the same time we want to have libltdl.so hardened. Downstream-only patch. %undefine _hardened_build Patch1: libtool-2.4.6-hardening.patch # The testsuite seems to not properly handle template instantiation and as # a result fails. libtool itself appears to be OK from my by-hand testing. (by Jeff Law) # Disable LTO for link-order2 test (Related: #1988112) Patch2: libtool-2.4.6-disable-lto-link-order2.patch # non-PIC libraries are not supported on ARMv7 # Since we removed "-fPIC" from global CFLAGS this test fails on this arch (as expected) # Please refer to the following ticket regarding PIC support on ARM: # https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/503448 Patch3: libtool-2.4.6-disable_non-pic_arm.patch # rhbz#2047389, patch sent upstream # https://lists.gnu.org/archive/html/libtool-patches/2022-02/msg00000.html Patch4: libtool-2.4.6-keep-compiler-deps.patch # Patch sent upstream # https://lists.gnu.org/archive/html/libtool-patches/2022-12/msg00004.html Patch5: 0001-tests-Fix-grep-warning-about-stray-before.patch Patch101: libtool-c99.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: autoconf >= 2.59, automake >= 1.9.2, texinfo, help2man Requires: autoconf >= 2.58, automake >= 1.4 # make sure we can configure all supported langs BuildRequires: gcc, gcc-c++, libstdc++-devel, gcc-gfortran #BuildRequires: gcc-java # /usr/bin/libtool includes paths within gcc's versioned directories # Libtool must be rebuilt whenever a new upstream gcc is built Requires: gcc(major) = %{gcc_major} Requires: autoconf >= 2.50, automake >= 1.4p1, m4, perl Requires: libtool-ltdl = %{version}-%{release}, mktemp %description GNU Libtool is a set of shell scripts which automatically configure UNIX and UNIX-like systems to generically build shared libraries. Libtool provides a consistent, portable interface which simplifies the process of using shared libraries. If you are developing programs which will use shared libraries, but do not use the rest of the GNU Autotools (such as GNU Autoconf and GNU Automake), you should install the libtool package. The libtool package also includes all files needed to integrate the GNU Portable Library Tool (libtool) and the GNU Libtool Dynamic Module Loader (ltdl) into a package built using the GNU Autotools (including GNU Autoconf and GNU Automake). This package includes a modification from the original GNU Libtool to allow support for multi-architecture systems, such as the AMD64 Opteron and the Intel 64-bit Xeon. %description -l ja GNU Libtoolは、UNIX及びUNIXライクなアーキテクチャで共有ライブラリを汎用的 にビルドするための設定を自動化するシェルスクリプトのセットです。libtoolは、 共有ライブラリを利用する工程を単純化する首尾一貫した移植可能なインターフェー スを提供します。 もし、GNU Autotools (GNU Autoconf および GNU Automake) を使わずに共有ライ ブラリを利用するプログラムを開発するなら、libtool パッケージをインストール する必要があります。 このパッケージの Libtool は、AMD64 や Intel EM64T などのマルチアーキテクチャ システムをサポートするために、オリジナルのGNU Libtoolから変更が施されています。 %package ltdl Summary: Runtime libraries for GNU Libtool Dynamic Module Loader Summary(ja): GNU Libtool ダイナミックモジュールローダのランタイムライブラリ Group: system Provides: libtool-libs = %{version}-%{release} Obsoletes: libtool-libs < 1.5.20 License: LGPL %description ltdl The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a library that provides a consistent, portable interface which simplifies the process of using dynamic modules. These runtime libraries are needed by programs that link directly to the system-installed ltdl libraries; they are not needed by software built using the rest of the GNU Autotools (including GNU Autoconf and GNU Automake). %description -l ja ltdl libtool-ltdl パッケージにはGNU Libtool 動的モジュールローダのランタイムライ ブラリが含まれています。GNU Libtool 動的モジュールローダは、動的モジュールを 利用する工程を単純化する首尾一貫した移植可能なインターフェースを提供します。 %package ltdl-devel Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader Summary(ja): GNU Libtool ダイナミックモジュールローダを使った開発に必要なファイル群 Group: programming Requires: libtool-ltdl = %{version}-%{release} License: LGPL %description ltdl-devel Static libraries and header files for development with ltdl. %description -l ja ltdl-devel ltdlを使った開発に必要なスタティックライブラリおよびヘッダファイル ## to build compat32 for x86_64 architecture support %package -n compat32-%{name}-ltdl Summary: Runtime libraries for GNU Libtool Dynamic Module Loader Group: system %description -n compat32-%{name}-ltdl The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a library that provides a consistent, portable interface which simplifies the process of using dynamic modules. %package -n compat32-%{name}-ltdl-devel Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader Group: programming Requires: compat32-%{name}-ltdl = %{version}-%{release} %description -n compat32-%{name}-ltdl-devel Static libraries and header files for development with ltdl. %debug_package %prep %autosetup -p1 autoreconf -v %build %configure %make_build \ CUSTOM_LTDL_CFLAGS="%{?_hardening_cflags}" \ CUSTOM_LTDL_LDFLAGS="%{?_hardening_ldflags}" #check #make check VERBOSE=yes > make_check.log 2>&1 || (cat make_check.log && false) %install rm -rf %{buildroot} make install DESTDIR=$RPM_BUILD_ROOT rm -f %{buildroot}%{_infodir}/dir rm -f %{buildroot}%{_libdir}/libltdl.{a,la} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %license COPYING %doc AUTHORS NEWS README THANKS TODO ChangeLog %{_bindir}/libtool %{_bindir}/libtoolize %{_datadir}/aclocal/*.m4 %{_datadir}/libtool %{_infodir}/libtool.info*.gz %{_mandir}/man1/libtool.1.gz %{_mandir}/man1/libtoolize.1.gz %files ltdl %defattr(-,root,root) %license libltdl/COPYING.LIB %doc libltdl/README %{_libdir}/libltdl.so.* %files ltdl-devel %defattr(-,root,root) %{_libdir}/libltdl.so %{_includedir}/ltdl.h %{_includedir}/libltdl/* %if %{build_compat32} ## to build compat32 for x86_64 architecture support %files -n compat32-%{name}-ltdl %defattr(-,root,root) %{_libdir}/libltdl.so.* %files -n compat32-%{name}-ltdl-devel %defattr(-,root,root) %{_libdir}/libltdl.so %endif %changelog * Sun Jun 09 2024 Tomohiro "Tomo-p" KATO 2.4.7-3 - rebuilt with gcc-14.1.1. * Fri Sep 22 2023 Tomohiro "Tomo-p" KATO 2.4.7-2 - rebuilt with gcc-13.2.1. * Sat Sep 10 2022 Tomohiro "Tomo-p" KATO 2.4.7-1 - new upstream release. - dropped install-info scriptltes. * Thu Aug 05 2021 Tomohiro "Tomo-p" KATO 2.4.6-9 - rebuilt with gcc-11.2.1. * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO 2.4.6-8 - rebuilt with gcc-10.3.1. - dropped ldconfig scriptltes. * Tue Feb 09 2021 Tomohiro "Tomo-p" KATO 2.4.6-7 - rebuilt with gcc-10.2.1. * Fri Mar 20 2020 Tomohiro "Tomo-p" KATO 2.4.6-6 - rebuilt with gcc-9.3.1. * Sun Sep 22 2019 Tomohiro "Tomo-p" KATO 2.4.6-5 - rebuilt with gcc-8.3.1. * Thu Aug 29 2019 Tomohiro "Tomo-p" KATO 2.4.6-4 - imported Patch1-4 from rawhide. * Mon Jan 21 2019 Tomohiro "Tomo-p" KATO 2.4.6-3 - rebuilt with gcc-8.2.0. * Sun Jun 26 2016 Yoji TOYODA 2.4.6-2 - rebuild with gcc-5.4.0 * Sat May 07 2016 Yoji TOYODA 2.4.6-1 - new upstream release - update Patch0 (libtool-2.4.6-rpath.patch) * Mon Nov 04 2013 Yoji TOYODA 2.4.2-4 - rebuild with gcc-4.8.2-1 * Tue Oct 01 2013 Yoji TOYODA 2.4.2-3 - rebuild with gcc-4.8.1-2 * Mon Sep 30 2013 Yoji TOYODA 2.4.2-2 - rebuild with gcc-4.8.1 - add BuildRequires: help2man * Sat Dec 03 2011 NAKAMURA Kenta 2.4.2-1 - new upstream release * Mon Nov 28 2011 NAKAMURA Kenta 2.4-2 - rebuilt with gcc-4.6.2 * Wed Aug 17 2011 Yoji TOYODA 2.4-1 - new upstream release - update Patch0 * Sun Mar 20 2011 Ryoichi INAGAKI 2.2.6b-2 - rebuilt with gcc-4.4.5 * Sat Feb 13 2010 Toshiharu Kudoh 2.2.6b-1 - new upstream release * Mon Jan 25 2010 Ryoichi INAGAKI 2.2.6a-4 - rebuilt with gcc-4.4.3-1 (w/o gcc-java) * Tue May 19 2009 Daisuke SUZUKI 2.2.6a-3 - remove comment before compat32 scriptlet to avoid scriptlet failure. * Sun May 10 2009 NAKAMURA Kenta 2.2.6a-2 - removed %%if !%%{build_compat32} case condition * Wed Apr 15 2009 Daisuke SUZUKI 2.2.6a-1 - update to 2.2.6a - remove libltdl static library * Wed Jun 18 2008 MATSUBAYASHI Kohji 1.5.26-3 - updated to 1.5.26, importing changes from Fedora 1.5.26-2 - new versioning policy; spec in UTF-8 - define gcc_version to 4.1.2 for Vine * Wed May 30 2007 MATSUBAYASHI Kohji 1.5.22-0vl4 - rebuilt with gcc-4.1.2-0vl10 (gcc -dumpversion begets 4.1.2, not 4.1.3) * Tue May 22 2007 Daisuke SUZUKI 1.5.22-0vl3 - remove BuildRequires: libstdc++3-devel - add Requres: libtool-ltdl instead of libtool-libs * Sun May 06 2007 MATSUBAYASHI Kohji 1.5.22-0vl2 - rebuilt with gcc4 (F77=gfortran now) - import Patch2 and Patch3 from FC6 1.5.22-6.1 - Thu Jun 29 2006 Karsten Hopp 1.5.22-6 - detect gcc path at runtime instead of requiring one specific version - Thu Jun 29 2006 Karsten Hopp 1.5.22-5 - miscellaneous upstream fixes * Sat Sep 23 2006 Daisuke SUZUKI 1.5.22-0vl1 - new upstream release * Mon Feb 06 2006 Shu KONNO 1.5.20-0vl4 - moved macros (_lib, gcc -m32) to /usr/lib/rpm/rpmrc or macros files - changed '%postun -p /sbin/ldconfig' to '%postun' and /sbin/ldconfig command * Thu Feb 02 2006 Shu KONNO 1.5.20-0vl3 - added compat32-* packages for x86_64 architecture support * Mon Oct 24 2005 Daisuke SUZUKI 1.5.20-0vl2 - add Japanese Summaries and descriptions * Mon Oct 24 2005 Daisuke SUZUKI 1.5.20-0vl1 - new upstream release * Tue Aug 16 2005 Ryoichi INAGAKI 1.5.18-3vl1 - updated to 1.5.18 based on Fedora package * Sun Feb 6 2005 Daniel Reed 1.5.12.multilib2-3.4.3 - update to the 1.5.12 bugfix release - Makes use of $datarootdir, which is necessary for Autoconf >= 2.60. - Correctly skip hppa, x86_64, and s390* in tests/demo-nopic.test. - Interpret `include' statements in toplevel ld.so.conf file. - While "parsing" /etc/ld.so.conf, skip comments. - add dependency on gcc version; /usr/bin/libtool hardcodes paths into gcc's internal directories - replace "libtool-libs" with "libtool-ltdl" and "libtool-ltdl-devel" * Tue Oct 26 2004 Daniel Reed 1.5.10-1 - update to the 1.5.10 bugfix release - obsoletes libtool-1.4-nonneg.patch - obsoletes libtool-1.5-libtool.m4-x86_64.patch - obsoletes libtool-1.4.2-multilib.patch - obsoletes libtool-1.4.2-demo.patch - obsoletes libtool-1.5-testfailure.patch * Thu May 13 2004 Thomas Woerner - 1.5.6-2 - compile libltdl.a PIC * Sun Mar 20 2005 Ryoichi INAGAKI 1.5.6-0vl2 - rebuild with gcc-3.3.5 * Sun May 2 2004 Daisuke SUZUKI 1.5.6-0vl1 - new upstream release * Fri Feb 20 2004 KOBAYASHI R. Taizo 1.5.2-2vl1 - merged with fedora-1.5.2-2 * Mon Jan 26 2004 Jens Petersen - 1.5.2-1 - update to 1.5.2 bugfix release - update libtool-1.5-libtool.m4-x86_64.patch - nolonger need libtool-1.5-mktemp.patch, libtool-1.5-expsym-linux.patch, libtool-1.5-readonlysym.patch, libtool-1.5-relink-libdir-order-91110.patch, libtool-1.5-AC_PROG_LD_GNU-quote-v-97608.patch and libtool-1.5-nostdlib.patch * Tue Oct 28 2003 Jens Petersen - 1.5-8 - update libtool-1.4.2-multilib.patch to also deal with powerpc64 (#103316) [Joe Orton] * Wed Sep 03 2003 Daisuke SUZUKI 1.5-5vl1 - merged with rawhide 1.5-5 * Mon Dec 09 2002 MATSUBAYASHI Kohji 1.4.3-2vl2 - based on 1.4.3-2 from Rawhide and built for Vine Linux - added BuildPreReq: automake14 * Thu Jul 17 2003 Jens Petersen - 1.5-5 - bring back libtool-1.4.2-demo.patch to disable nopic tests on amd64 and s390x again * Tue Jul 15 2003 Owen Taylor - Fix misapplied chunk for expsym-linux patch * Tue Jul 8 2003 Jens Petersen - 1.5-4 - remove the quotes around LD in AC_PROG_LD_GNU (#97608) [reported by twaugh] - use -nostdlib also when linking with g++ and non-GNU ld in _LT_AC_LANG_CXX_CONFIG [reported by fnasser, patch by aoliva] - use %%configure with CC and CXX set * Thu Jun 12 2003 Jens Petersen - 1.5-3 - don't use %%configure since target options caused libtool to assume i386-redhat-linux-gcc instead of gcc for CC (reported by Joe Orton) - add libtool-1.5-relink-libdir-order-91110.patch to fix order of lib dirs searched when relinking (#91110) [patch from Joe Orton] * Wed Jun 04 2003 Elliot Lee - rebuilt * Thu May 1 2003 Jens Petersen - 1.5-1 - update to 1.5 - no longer override config.{guess,sub} for rpmbuild %%configure, redhat-rpm-config owns those now - update and rename libtool-1.4.2-s390_x86_64.patch to libtool-1.5-libtool.m4-x86_64.patch since s390 now included - buildrequire autoconf and automake, no longer automake14 - skip make check on s390 temporarily - no longer skip demo-nopic.test on x86_64, s390 and s390x - from Owen Taylor - add libtool-1.4.2-expsym-linux.patch (#55607) [from James Henstridge] - add quoting in mktemp patch - add libtool-1.5-readonlysym.patch - add libtool-1.5-testfailure.patch workaround - relink patch no longer needed * Sat Feb 08 2003 Florian La Roche - 1.4.3-5 - add config.guess and config.sub, otherwise old versions of these files can creep into /usr/share/libtool/ * Wed Jan 22 2003 Tim Powers - rebuilt * Mon Jan 13 2003 Jens Petersen 1.4.3-3 - fix mktemp to work when running mktemp fails (#76602) [reported by (Oron Peled)] - remove info dir file, don't exclude it - fix typo in -libs description (#79619) - use buildroot instead of RPM_BUILD_ROOT * Tue Jan 07 2003 Karsten Hopp 1.4.3-2.2 - use lib64 on s390x, too. * Thu Dec 5 2002 Jens Petersen - add comment to explain why we use an old Automake for building - buildrequire automake14 * Sat Nov 23 2002 Jens Petersen - add --without check build option to allow disabling of "make check" - exclude info dir file rather than removing * Sat Nov 23 2002 Jens Petersen 1.4.3-2 - define SED in ltmain.sh for historic ltconfig files - define macro AUTOTOOLS to hold automake-1.4 and aclocal-1.4, and use it - leave old missing file for now - general spec file cleanup - don't copy install files to demo nor mess with installed ltdl files - don't need to run make in doc - force removal of info dir file - don't need to create install prefix dir - don't bother gzipping info files ourselves * Mon Nov 18 2002 Jens Petersen 1.4.3-1 - update to 1.4.3 - remove obsolete patches (test-quote, dup-deps, libtoolize-configure.ac) - apply the multilib patch to just the original config files - update x86_64/s390 patch and just apply to original config files - use automake-1.4 in "make check" for demo-make.test to pass! - remove info dir file that is not installed - make autoreconf update missing * Mon Oct 07 2002 Phil Knirsch 1.4.2-12.2 - Added s390x and x64_64 support. * Fri Oct 4 2002 Nalin Dahyabhai 1.4.2-12.1 - rebuild * Fri Sep 13 2002 Nalin Dahyabhai - patch to find the proper libdir on multilib boxes * Mon Aug 19 2002 Jens Petersen 1.4.2-12 - don't include demo in doc, specially now that we "make check" (#71609) * Tue Aug 13 2002 Jens Petersen 1.4.2-11 - don't hardcode "configure.in" in libtoolize (#70864) [reported by bastiaan@webcriminals.com] - make check, but not on ia64 * Fri Jun 21 2002 Tim Powers 1.4.2-10 - automated rebuild * Thu May 23 2002 Tim Powers 1.4.2-9 - automated rebuild * Fri Apr 26 2002 Jens Petersen 1.4.2-8 - add old patch from aoliva to fix relinking when installing into a buildroot - backport dup-deps fix from cvs stable branch * Wed Mar 27 2002 Jens Petersen 1.4.2-7 - run ldconfig in postin and postun * Thu Feb 28 2002 Jens Petersen 1.4.2-6 - rebuild in new environment * Tue Feb 12 2002 Jens Petersen 1.4.2-5 - revert filemagic and archive-shared patches following cvs (#54887) - don't change "&& test" to "-a" in ltmain.in * Wed Jan 09 2002 Tim Powers 1.4.2-4 - automated rebuild * Mon Dec 3 2001 Jens Petersen 1.4.2-3 - test quoting patch should be on ltmain.in not ltmain.sh (#53276) - use file_magic for Linux ELF (#54887) - allow link against an archive when building a shared library (#54887) - include ltdl.m4 in manifest (#56671) * Wed Oct 24 2001 Jens Petersen 1.4.2-2 - added URL to spec * Tue Sep 18 2001 Bernhard Rosenkraenzer 1.4.2-1 - 1.4.2 - sync up with autoconf... * Thu Jul 5 2001 Bernhard Rosenkraenzer 1.4-8 - extend s390 patch to 2 more files - s/Copyright/License/ * Wed Jul 04 2001 Karsten Hopp - add s390 patch for deplibs_check_method=pass_all * Tue Jun 12 2001 Florian La Roche - add patches from Tim Waugh #42724 * Mon Jun 11 2001 Florian La Roche - add patches from cvs mainline * Thu Jun 07 2001 Florian La Roche - fix a "test" bug in ltmain.sh * Sun Jun 03 2001 Florian La Roche - disable the post commands to modify /usr/share/doc/ * Sat May 12 2001 Owen Taylor - Require automake 1.4p1 * Wed May 09 2001 Florian La Roche - update to libtool 1.4 - adjust or remove patches * Thu Jul 13 2000 Elliot Lee - Fix recognition of ^0[0-9]+$ as a non-negative integer. * Thu Jul 13 2000 Prospector - automatic rebuild * Fri Jul 7 2000 Nalin Dahyabhai - patch to use mktemp to create the tempdir - use %%configure after defining __libtoolize to /bin/true * Mon Jul 3 2000 Matt Wilson - subpackage libltdl into libtool-libs * Sun Jun 18 2000 Bill Nottingham - running libtoolize on the libtool source tree ain't right :) * Mon Jun 5 2000 Jeff Johnson - FHS packaging. * Thu Jun 1 2000 Nalin Dahyabhai - update to 1.3.5. * Fri Mar 3 2000 Jeff Johnson - add prereqs for m4 and perl inorder to run autoconf/automake. * Mon Feb 28 2000 Jeff Johnson - functional /usr/doc/libtool-*/demo by end-user %post procedure (#9719). * Wed Dec 22 1999 Jeff Johnson - update to 1.3.4. * Mon Dec 6 1999 Jeff Johnson - change from noarch to per-arch in order to package libltdl.a (#7493). * Thu Jul 15 1999 Jeff Johnson - update to 1.3.3. * Mon Jun 14 1999 Jeff Johnson - update to 1.3.2. * Tue May 11 1999 Jeff Johnson - explicitly disable per-arch libraries (#2210) - undo hard links and remove zero length file (#2689) * Sat May 1 1999 Jeff Johnson - update to 1.3. * Fri Mar 26 1999 Cristian Gafton - disable the --cache-file passing to ltconfig; this breaks the older ltconfig scripts found around. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Fri Mar 19 1999 Jeff Johnson - update to 1.2f * Tue Mar 16 1999 Cristian Gafton - completed arm patch - added patch to make it more arm-friendly - upgrade to version 1.2d * Thu May 07 1998 Donnie Barnes - fixed busted group * Sat Jan 24 1998 Marc Ewing - Update to 1.0h - added install-info support * Tue Nov 25 1997 Elliot Lee - Update to 1.0f - BuildRoot it - Make it a noarch package