Enable fPIE and Remove rpath
This commit is contained in:
parent
4a81c1e60c
commit
39ad8fbdba
@ -1,6 +1,6 @@
|
|||||||
Name: harfbuzz
|
Name: harfbuzz
|
||||||
Version: 2.8.1
|
Version: 2.8.1
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A text shaping engine
|
Summary: A text shaping engine
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -12,7 +12,7 @@ Patch0002: backport-0001-CVE-2023-25193.patch
|
|||||||
Patch0003: backport-0002-CVE-2023-25193.patch
|
Patch0003: backport-0002-CVE-2023-25193.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ freetype-devel cairo-devel glib2-devel graphite2-devel
|
BuildRequires: gcc-c++ freetype-devel cairo-devel glib2-devel graphite2-devel
|
||||||
BuildRequires: gtk-doc libicu-devel gobject-introspection-devel
|
BuildRequires: gtk-doc libicu-devel gobject-introspection-devel chrpath
|
||||||
Provides: harfbuzz-icu
|
Provides: harfbuzz-icu
|
||||||
Obsoletes: harfbuzz-icu
|
Obsoletes: harfbuzz-icu
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ Header files and libraries for building a extension library for %{name}.
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --with-graphite2 --with-gobject --enable-introspection
|
%configure --disable-static --with-graphite2 --with-gobject --enable-introspection CFLAGS="-fPIE -pie"
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -45,10 +45,22 @@ make check
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||||
%delete_la
|
chrpath -d %{buildroot}%{_libdir}/lib%{name}-icu.so.*
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/lib%{name}-gobject.so.*
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/lib%{name}-subset.so.*
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
|
%delete_la
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS NEWS
|
%doc AUTHORS NEWS
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -58,6 +70,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
%{_libdir}/libharfbuzz-icu.so.*
|
%{_libdir}/libharfbuzz-icu.so.*
|
||||||
%dir %{_libdir}/girepository-1.0
|
%dir %{_libdir}/girepository-1.0
|
||||||
%{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
|
%{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
@ -73,6 +86,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
%{_datadir}/gtk-doc/html/harfbuzz/*
|
%{_datadir}/gtk-doc/html/harfbuzz/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 08 2023 zhangxianting <zhangxianting@uniontech.com> - 2.8.1-5
|
||||||
|
- Enable fPIE and Remove rpath
|
||||||
|
|
||||||
* Wed Feb 15 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.8.1-4
|
* Wed Feb 15 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.8.1-4
|
||||||
- fix CVE-2023-25193
|
- fix CVE-2023-25193
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user