Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:buildbot-worker
libtool
libtool.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libtool.spec of Package libtool
# # spec file for package libtool # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %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 Name: libtool Version: 2.4.6 Release: 0 Summary: The GNU Portable Library Tool License: GPL-2.0-or-later AND LGPL-2.1-or-later AND GFDL # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Development/Tools URL: https://www.gnu.org/software/libtool/ Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz # ~> downstream # ~> remove possibly once #1158915 gets fixed somehow Patch0: libtool-2.4.5-rpath.patch # ~> downstream (TODO) Patch1: libtool-2.4.6-am-1.16-test.patch # ~> upstream 702a97fbb Patch2: libtool-2.4.6-specs.patch Patch3: libtool-2.4.6-hardening.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-gfortran BuildRequires: help2man # make sure we can configure all supported langs BuildRequires: libstdc++-devel Requires: autoconf Requires: automake Requires: findutils # /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 Requires: sed Requires: tar Requires(post): /sbin/install-info Requires(preun): /sbin/install-info # 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 %if ! 0%{?_module_build} Patch100: libtool-nodocs.patch %endif %if ! 0%{?_module_build} BuildRequires: texinfo %endif %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 License: LGPL-2.1-or-later # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: System Environment/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Provides: %{name}-libs = %{version}-%{release} %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 License: LGPL-2.1-or-later # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Development/Libraries Requires: %{name}-ltdl = %{version}-%{release} Requires: automake = %{automake_version} %description ltdl-devel Static libraries and header files for development with ltdl. %prep %setup -q -n libtool-%{version} %patch0 -p1 -b .rpath %patch1 -p1 -b .test %patch2 -p1 -b .gcc-specs %patch3 -p1 -b .ltdl-hardening %if ! 0%{?_module_build} %patch100 -p1 -b .nodocs %endif autoreconf -v %build export CC=gcc export CXX=g++ export F77=gfortran export CFLAGS="%{optflags} -fPIC" %configure --prefix=%{_prefix} \ --exec-prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --includedir=%{_includedir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} %make_build \ CUSTOM_LTDL_CFLAGS="%{_hardening_cflags}" \ CUSTOM_LTDL_LDFLAGS="%{_hardening_ldflags}" %check %if %{with check} %make_build check VERBOSE=yes || { cat 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} %post /sbin/install-info %{_infodir}/libtool.info.gz %{_infodir}/dir || : %post ltdl -p /sbin/ldconfig %preun if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/libtool.info.gz %{_infodir}/dir || : fi %postun ltdl -p /sbin/ldconfig %files %license COPYING %doc AUTHORS NEWS README THANKS TODO ChangeLog* %{_infodir}/libtool.info*.gz %{_mandir}/man1/libtool.1%{?ext_man} %{_mandir}/man1/libtoolize.1%{?ext_man} %{_bindir}/libtool %{_bindir}/libtoolize %{_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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor