summaryrefslogtreecommitdiffstats
path: root/dlib.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-07-01 17:53:42 +0200
committerRemi Collet <remi@remirepo.net>2020-07-01 17:53:42 +0200
commit47260ec7a16edb4ff9584825341f6219c6f25bfe (patch)
tree0729532de0a23f2ef910361633a4b11369678dbf /dlib.spec
parent184767869e742dbf13a800e480c9df7cd4f76b3d (diff)
better sed
Diffstat (limited to 'dlib.spec')
-rw-r--r--dlib.spec7
1 files 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