Accepting request 833742 from home:alarrosa:branches:devel:libraries:c_c++

- Add fix for pkg-config file so the version and library are set properly
  in the resulting .pc file:
  * fix-pkg-config-file.patch

OBS-URL: https://build.opensuse.org/request/show/833742
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=11
This commit is contained in:
Dirk Mueller 2020-09-11 11:30:17 +00:00 committed by Git OBS Bridge
parent 0d03091bd3
commit b64282e788
3 changed files with 22 additions and 1 deletions

13
fix-pkg-config-file.patch Normal file
View File

@ -0,0 +1,13 @@
Index: zxing-cpp-1.1.0/zxing.pc.in
===================================================================
--- zxing-cpp-1.1.0.orig/zxing.pc.in
+++ zxing-cpp-1.1.0/zxing.pc.in
@@ -5,6 +5,6 @@ includedir=${prefix}/@CMAKE_INSTALL_INCL
Name: ZXing
Description: ZXing library set
-Version: @VERSION@
-Libs: -L${libdir} -l@TARGET_ZXING@
+Version: @PROJECT_VERSION@
+Libs: -L${libdir} -lZXing
Cflags: -I${includedir} -I${includedir}/ZXing

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 4 07:16:43 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Add fix for pkg-config file so the version and library are set properly
in the resulting .pc file:
* fix-pkg-config-file.patch
-------------------------------------------------------------------
Sun Aug 16 19:19:01 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -25,6 +25,7 @@ License: Apache-2.0 AND Zlib AND LGPL-2.1-with-Qt-Company-Qt-exception-1.
Group: Development/Languages/C and C++
URL: https://github.com/nu-book/zxing-cpp/
Source0: https://github.com/nu-book/zxing-cpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: fix-pkg-config-file.patch
BuildRequires: cmake >= 3.10
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@ -35,8 +36,8 @@ processing library. This package provides a C++ implementation.
%package -n libZXing%{sover}
Summary: Library for processing 1D and 2D barcodes
Group: System/Libraries
# called libZXing in the 1.1.0 update
Group: System/Libraries
Provides: libZXingCore%{sover} = %{version}
Obsoletes: libZXingCore%{sover} < %{version}