forked from pool/zxing-cpp
Accepting request 833757 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/833757 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zxing-cpp?expand=0&rev=5
This commit is contained in:
commit
ba3108233c
13
fix-pkg-config-file.patch
Normal file
13
fix-pkg-config-file.patch
Normal 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
|
@ -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>
|
Sun Aug 16 19:19:01 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
@ -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++
|
Group: Development/Languages/C and C++
|
||||||
URL: https://github.com/nu-book/zxing-cpp/
|
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
|
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: cmake >= 3.10
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -35,8 +36,8 @@ processing library. This package provides a C++ implementation.
|
|||||||
|
|
||||||
%package -n libZXing%{sover}
|
%package -n libZXing%{sover}
|
||||||
Summary: Library for processing 1D and 2D barcodes
|
Summary: Library for processing 1D and 2D barcodes
|
||||||
Group: System/Libraries
|
|
||||||
# called libZXing in the 1.1.0 update
|
# called libZXing in the 1.1.0 update
|
||||||
|
Group: System/Libraries
|
||||||
Provides: libZXingCore%{sover} = %{version}
|
Provides: libZXingCore%{sover} = %{version}
|
||||||
Obsoletes: libZXingCore%{sover} < %{version}
|
Obsoletes: libZXingCore%{sover} < %{version}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user