[packages/lucene++] - fix empty libdir path in pkgconfig files, rel 2
baggins
baggins at pld-linux.org
Fri Sep 29 10:27:39 CEST 2023
commit 31796952c421b6611e3f0b2795043075ec37dd86
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Sep 29 09:15:04 2023 +0200
- fix empty libdir path in pkgconfig files, rel 2
lucene++.spec | 4 +++-
pkgconfig.patch | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/lucene++.spec b/lucene++.spec
index 307bf95..4ca5cbb 100644
--- a/lucene++.spec
+++ b/lucene++.spec
@@ -1,7 +1,7 @@
Summary: A high-performance, full-featured text search engine written in C++
Name: lucene++
Version: 3.0.8
-Release: 1
+Release: 2`
License: Apache v2.0 or LGPLv3+
Group: Libraries
Source0: https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_%{version}/%{name}-%{version}.tar.gz
@@ -9,6 +9,7 @@ Source0: https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_%{version}
Patch0: stdc++.patch
Patch1: contrib-soversion.patch
Patch2: config-install.patch
+Patch3: pkgconfig.patch
URL: https://github.com/luceneplusplus/LucenePlusPlus
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8.6
@@ -34,6 +35,7 @@ search engine written in C++
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
mkdir -p build
diff --git a/pkgconfig.patch b/pkgconfig.patch
new file mode 100644
index 0000000..512974d
--- /dev/null
+++ b/pkgconfig.patch
@@ -0,0 +1,35 @@
+--- LucenePlusPlus-rel_3.0.8/src/config/core/liblucene++.pc.in~ 2020-12-29 13:10:43.000000000 +0100
++++ LucenePlusPlus-rel_3.0.8/src/config/core/liblucene++.pc.in 2023-09-29 09:03:57.213964577 +0200
+@@ -1,12 +1,11 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}/bin
+-libdir=@LIB_DESTINATION@
++libdir=@CMAKE_INSTALL_LIBDIR@
+ includedir=${prefix}/include/lucene++
+ lib=lucene++
+
+ Name: liblucene++
+ Description: Lucene++ - a C++ search engine, ported from the popular Apache Lucene
+ Version: @lucene++_VERSION@
+-Libs: -L at LIB_DESTINATION@ -l${lib}
++Libs: -L${libdir} -l${lib}
+ Cflags: -I${includedir}
+-
+--- LucenePlusPlus-rel_3.0.8/src/config/contrib/liblucene++-contrib.pc.in~ 2020-12-29 13:10:43.000000000 +0100
++++ LucenePlusPlus-rel_3.0.8/src/config/contrib/liblucene++-contrib.pc.in 2023-09-29 09:04:44.724865773 +0200
+@@ -1,13 +1,12 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}/bin
+-libdir=@LIB_DESTINATION@
++libdir=@CMAKE_INSTALL_LIBDIR@
+ includedir=${prefix}/include/lucene++
+ lib=lucene++-contrib
+
+ Name: liblucene++-contrib
+ Description: Contributions for Lucene++ - a C++ search engine, ported from the popular Apache Lucene
+ Version: @lucene++_VERSION@
+-Libs: -L at LIB_DESTINATION@ -l${lib}
++Libs: -L${libdir} -l${lib}
+ Cflags: -I${includedir}
+ Requires: liblucene++ = @lucene++_VERSION@
+-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lucene++.git/commitdiff/31796952c421b6611e3f0b2795043075ec37dd86
More information about the pld-cvs-commit
mailing list