# See the bug #429880 %global gcc_major %(gcc -dumpversion || echo "666") # See rhbz#1193591 %global automake_version %(set -- `automake --version | head -n 1` ; echo ${4-unknown}) %bcond_without check Summary: The GNU Portable Library Tool Name: libtool Version: 2.6.2 Release: 1.fc44.0.snap # To help future rebase, the following licenses were seen in the following files/folders: # '*' is anything that was not explicitly listed earlier in the folder # # From libtool package: # usr/bin/: # libtool - GPL-2.0-or-later WITH Libtool-exception AND MIT # libtoolize - GPL-2.0-or-later AND MIT # usr/share/: # aclocal/* - FSFULLR # doc/libtool: # AUTHORS - GPL-2.0-or-later # * - FSFAP # info/* - GFDL-1.3-or-later # libtool/build-aux/: # {compile,depcomp,missing} - GPL-2.0-or-later WITH Autoconf-exception-generic # config.{guess,sub} - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 # install-sh - X11 AND LicenseRef-Fedora-public-domain # ltmain.sh - GPL-2.0-or-later WITH Libtool-exception AND MIT # usr/share/man/man1/*: generated from usr/bin/libtool{,ize} using help2man # # From libtool-ltdl package: # usr/lib64/ # * - LGPL-2.0-or-later WITH Libtool-exception # # From libtool-ltdl-devel package: # usr/include/* - LGPL-2.0-or-later WITH Libtool-exception # usr/share/: # README - FSFAP # {*.c,*.h,Makefile.am,configure.ac,ltdl.mk} - LGPL-2.0-or-later WITH Libtool-exception # Makefile.in - FSFULLRWD # aclocal.m4 - FSFULLR AND FSFULLRWD # configure - FSFUL License: GPL-2.0-or-later AND GPL-2.0-or-later WITH Autoconf-exception-generic AND GPL-2.0-or-later WITH Libtool-exception AND LGPL-2.0-or-later WITH Libtool-exception AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND MIT AND FSFAP AND FSFULLR AND FSFULLRWD AND GFDL-1.3-or-later AND X11 AND LicenseRef-Fedora-public-domain URL: http://www.gnu.org/software/libtool/ Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz # ~> downstream # ~> remove possibly once #1158915 gets fixed somehow Patch: 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 Patch: libtool-2.4.7-hardening.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 Patch: libtool-2.4.6-disable_non-pic_arm.patch # Patch sent upstream # https://lists.gnu.org/archive/html/libtool-patches/2024-02/msg00002.html Patch: riscv-non-PIC-into-shared-objects.patch %if ! 0%{?_module_build} Patch: libtool-nodocs.patch %endif # /usr/bin/libtool includes paths within gcc's versioned directories # Libtool must be rebuilt whenever a new upstream gcc is built # Starting with gcc 7 gcc in Fedora is packaged so that only major # number changes need libtool rebuilding. Requires: gcc(major) = %{gcc_major} Requires: autoconf, automake, sed, tar, findutils %if ! 0%{?_module_build} BuildRequires: texinfo %endif BuildRequires: autoconf, automake BuildRequires: help2man # make sure we can configure all supported langs BuildRequires: libstdc++-devel, gcc-gfortran BuildRequires: gcc, gcc-c++ BuildRequires: make %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). %package ltdl Summary: Runtime libraries for GNU Libtool Dynamic Module Loader Provides: %{name}-libs = %{version}-%{release} License: LGPL-2.0-or-later WITH Libtool-exception %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). %package ltdl-devel Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader Requires: automake = %automake_version Requires: %{name}-ltdl = %{version}-%{release} License: LGPL-2.0-or-later WITH Libtool-exception %description ltdl-devel Static libraries and header files for development with ltdl. %prep %autosetup -n libtool-%{version} -p1 autoreconf -v %build %configure %make_build \ CUSTOM_LTDL_CFLAGS="%_hardening_cflags" \ CUSTOM_LTDL_LDFLAGS="%_hardening_ldflags" %check %if %{with check} make check VERBOSE=yes || { cat tests/testsuite.dir/*/testsuite.log ; false ; } %endif %install %make_install # info's TOP dir (by default owned by info) rm -f %{buildroot}%{_infodir}/dir # *.la *.a files generated by libtool shouldn't be distributed (and the # `./configure --disable-static' breaks testsuite) rm -f %{buildroot}%{_libdir}/libltdl.{a,la} %files %license COPYING %doc AUTHORS NEWS README THANKS TODO ChangeLog* %{_infodir}/libtool.info*.gz %{_mandir}/man1/libtool.1* %{_mandir}/man1/libtoolize.1* %{_mandir}/man1/libtool-next-version.1* %{_bindir}/libtool %{_bindir}/libtoolize %{_bindir}/libtool-next-version %{_datadir}/aclocal/*.m4 %dir %{_datadir}/libtool %{_datadir}/libtool/build-aux %files ltdl %license libltdl/COPYING.LIB %{_libdir}/libltdl.so.* %files ltdl-devel %license libltdl/COPYING.LIB %doc libltdl/README %{_datadir}/libtool %exclude %{_datadir}/libtool/build-aux %{_includedir}/ltdl.h %{_includedir}/libltdl # .so files without version must be in -devel subpackage %{_libdir}/libltdl.so %changelog * Wed Oct 14 2026 Siddhesh Poyarekar - 2.6.2-1.fc44.0.snap - Snapshot rebuild with rawhide changes.