libtool/libtool.spec

134 lines
3.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:58:33 -04:00
%undefine _hardened_build
%global gcc_major 7.3.0
Name: libtool
2022-11-04 14:37:52 +08:00
Version: 2.4.7
Release: 1
License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later
2019-09-30 10:58:33 -04:00
Summary: The GNU Portable Library Tool
URL: http://www.gnu.org/software/libtool/
Source0: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
2020-01-08 16:00:09 +08:00
Patch0: libtool-2.4.5-rpath.patch
2019-09-30 10:58:33 -04:00
Requires: gcc(major),autoconf, automake, sed, tar, findutils
2021-07-23 11:46:59 +08:00
BuildRequires: texinfo autoconf automake help2man
2020-03-19 19:41:20 +08:00
BuildRequires: libstdc++-devel gcc-gfortran gcc gcc-c++
2019-09-30 10:58:33 -04:00
%description
GNU libtool is a generic library support script.
Libtool hides the complexity of using shared libraries behind a consistent, portable interface.
%package ltdl
Summary: Runtime libraries for GNU Libtool Dynamic Module Loader
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.
2019-09-30 10:58:33 -04:00
%package devel
Summary: Tools needed for development using the GNU Libtool Dynamic Module Loader
License: LGPLv2+
Requires: automake
Requires: %{name}-ltdl = %{version}-%{release}
2019-09-30 10:58:33 -04:00
Provides: %{name}-ltdl-devel
Obsoletes: %{name}-ltdl-devel
%description devel
Static libraries and header files for development with ltdl.
%package_help
%prep
%autosetup -n libtool-%{version} -p1
autoreconf -v
%build
export CC=gcc
export CXX=g++
export F77=gfortran
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
2020-08-20 14:41:13 +08:00
export FFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g')
export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g')
%ifarch x86_64
export FFLAGS="$RPM_OPT_FLAGS -fPIE"
export FCFLAGS="$RPM_OPT_FLAGS -fPIE"
%endif
2019-09-30 10:58:33 -04:00
%configure
%make_build CUSTOM_LTDL_CFLAGS="%_hardening_cflags" CUSTOM_LTDL_LDFLAGS="%_hardening_ldflags"
%check
make check VERBOSE=yes
%install
%make_install
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_libdir}/libltdl.{a,la}
%files
%license COPYING
%doc AUTHORS NEWS THANKS TODO ChangeLog*
%{_bindir}/libtool
%{_bindir}/libtoolize
%{_datadir}/aclocal/*.m4
%dir %{_datadir}/libtool
%{_datadir}/libtool/build-aux
%files ltdl
%license libltdl/COPYING.LIB
%{_libdir}/libltdl.so.*
2019-09-30 10:58:33 -04:00
%files devel
%license libltdl/COPYING.LIB
%doc libltdl/README
%{_datadir}/libtool
%exclude %{_datadir}/libtool/build-aux
%{_includedir}/ltdl.h
%{_includedir}/libltdl
%{_libdir}/libltdl.so
%files help
%doc README
%{_infodir}/libtool.info*.gz
%{_mandir}/man1/libtool.1*
%{_mandir}/man1/libtoolize.1*
%changelog
2022-11-04 14:37:52 +08:00
* Thu Nov 03 2022 renhongxun <renhongxun@h-partners.com> - 2.4.7-1
- upgrade version to 2.4.7
* Tue Apr 26 2022 renhongxun <renhongxun@h-partners.com> - 2.4.6-35
- udpate license from GFDL to GFDL-1.3-or-later
2022-04-22 11:17:38 +08:00
2021-07-23 11:46:59 +08:00
* Fri Jul 23 2021 yuanxin <yuanxin24@huawei.com> - 2.4.6-34
- remove BuildRequires gdb
2020-08-20 14:34:02 +08:00
* Thu Aug 20 2020 tianwei <tianwei12@huawei.com> - 2.4.6-33
- fixbug testcase fail for gfortan
2020-03-19 19:41:20 +08:00
* Thu Mar 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.4.6-32
- add necessary BuildRequires
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.4.6-31
- fixbug in wrong dependency of kernel-devel
2020-01-08 16:00:09 +08:00
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.4.6-30
- format patches
2019-09-30 10:58:33 -04:00
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.6-29
- Package init
* Sun Feb 24 2019 zoujing <zoujing13@huawei.com> - 2.4.6-28
- Type:NA
- ID:NA
- SUG:NA
- DESC: change gcc version number on aarch64