From 47260ec7a16edb4ff9584825341f6219c6f25bfe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 1 Jul 2020 17:53:42 +0200 Subject: better sed --- dlib.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlib.spec b/dlib.spec index 8e9b565..69f7e2d 100644 --- a/dlib.spec +++ b/dlib.spec @@ -91,6 +91,10 @@ cd build make %{_smp_mflags} +# see https://github.com/davisking/dlib/issues/2111 +sed -E '/private/s:%{_libdir}/lib([^ ]*).so:-l\1:g' \ + -i dlib/dlib-1.pc + %install cd build @@ -101,9 +105,6 @@ cd build make install DESTDIR="%{buildroot}" -# see https://github.com/davisking/dlib/issues/2111 -sed -e 's:%{_libdir}/lib:-l:g;s/\.so//g' \ - -i %{buildroot}%{_libdir}/pkgconfig/dlib-1.pc %if 0%{?fedora} < 28 && 0%{?rhel} < 8 %post -p /sbin/ldconfig -- cgit