diff options
author | Remi Collet <remi@remirepo.net> | 2020-07-01 17:53:42 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-07-01 17:53:42 +0200 |
commit | 47260ec7a16edb4ff9584825341f6219c6f25bfe (patch) | |
tree | 0729532de0a23f2ef910361633a4b11369678dbf | |
parent | 184767869e742dbf13a800e480c9df7cd4f76b3d (diff) |
better sed
-rw-r--r-- | dlib.spec | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |