Accepting request 741319 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/741319 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zbar?expand=0&rev=12
This commit is contained in:
commit
ad2d1d32e5
74
0001-Create-correct-pkconfig-file-for-zbar-qt5.patch
Normal file
74
0001-Create-correct-pkconfig-file-for-zbar-qt5.patch
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
From cac1fffce80f0835e4d8d234023a775b4243b916 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
||||||
|
Date: Sun, 20 Oct 2019 01:44:02 +0200
|
||||||
|
Subject: [PATCH] Create correct pkconfig file for zbar-qt5
|
||||||
|
|
||||||
|
Although zbar supports Qt5, the created pkgconfig file always requested
|
||||||
|
the Qt(4) components.
|
||||||
|
|
||||||
|
Fixes issue #62.
|
||||||
|
---
|
||||||
|
configure.ac | 13 ++++++++++---
|
||||||
|
zbar-qt5.pc.in | 12 ++++++++++++
|
||||||
|
2 files changed, 22 insertions(+), 3 deletions(-)
|
||||||
|
create mode 100644 zbar-qt5.pc.in
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 935110a..49ef6a8 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -659,15 +659,23 @@ AS_IF([test "x$with_qt" != "xno"],
|
||||||
|
CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"
|
||||||
|
dnl -fPIC has no effect on Windows and breaks windres
|
||||||
|
AS_IF([test "x$win32" = "xno"], [CPPFLAGS="$CPPFLAGS -fPIC"])
|
||||||
|
- AC_MSG_NOTICE([using Qt version $QT_VERSION])],
|
||||||
|
+ AC_MSG_NOTICE([using Qt version $QT_VERSION])
|
||||||
|
+ qt_pkgconfig_file="zbar-qt5.pc"
|
||||||
|
+ ],
|
||||||
|
|
||||||
|
[MOC=`$PKG_CONFIG QtGui --variable=moc_location`
|
||||||
|
AC_MSG_NOTICE([using moc from $MOC])
|
||||||
|
QT_VERSION=`$PKG_CONFIG QtGui --modversion`
|
||||||
|
- AC_MSG_NOTICE([using Qt version $QT_VERSION])]))
|
||||||
|
+ AC_MSG_NOTICE([using Qt version $QT_VERSION])
|
||||||
|
+ qt_pkgconfig_file="zbar-qt.pc"
|
||||||
|
+ ]))
|
||||||
|
|
||||||
|
AM_CONDITIONAL([HAVE_QT], [test "x$with_qt" = "xyes"])
|
||||||
|
|
||||||
|
+AM_COND_IF([HAVE_QT],
|
||||||
|
+ [AC_CONFIG_FILES([zbar-qt.pc:"${qt_pkgconfig_file}.in"])]
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
dnl Java
|
||||||
|
have_java="maybe"
|
||||||
|
|
||||||
|
@@ -820,7 +828,6 @@ java/Makefile
|
||||||
|
zbar/Makefile
|
||||||
|
zbar.pc
|
||||||
|
zbar-gtk.pc
|
||||||
|
-zbar-qt.pc
|
||||||
|
doc/doxygen.conf])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([test/test_examples.sh],[chmod 755 test/test_examples.sh])
|
||||||
|
diff --git a/zbar-qt5.pc.in b/zbar-qt5.pc.in
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..3378993
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/zbar-qt5.pc.in
|
||||||
|
@@ -0,0 +1,12 @@
|
||||||
|
+prefix=@prefix@
|
||||||
|
+exec_prefix=@exec_prefix@
|
||||||
|
+libdir=@libdir@
|
||||||
|
+includedir=@includedir@
|
||||||
|
+
|
||||||
|
+Name: zbar-qt
|
||||||
|
+Description: bar code scanning and decoding Qt5 widget
|
||||||
|
+URL: http://zbar.sourceforge.net
|
||||||
|
+Version: @VERSION@
|
||||||
|
+Requires: zbar, Qt5Core >= 5, Qt5Gui >= 5
|
||||||
|
+Libs: -L${libdir} -lzbarqt
|
||||||
|
+Cflags: -I${includedir}
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 20 11:40:04 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Remove references to Qt4 from zbar-qt pkgconfig file (#62),
|
||||||
|
add 0001-Create-correct-pkconfig-file-for-zbar-qt5.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 6 10:07:41 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sat Jul 6 10:07:41 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
10
zbar.spec
10
zbar.spec
@ -28,6 +28,13 @@ Group: Productivity/Other
|
|||||||
URL: https://github.com/mchehab/zbar
|
URL: https://github.com/mchehab/zbar
|
||||||
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
||||||
Source98: baselibs.conf
|
Source98: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/pull/63
|
||||||
|
Patch0: 0001-Create-correct-pkconfig-file-for-zbar-qt5.patch
|
||||||
|
# autoconf/automake required due to patched configure.ac (Patch0)
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake >= 1.16
|
||||||
|
%endif
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: pkgconfig >= 0.9.0
|
BuildRequires: pkgconfig >= 0.9.0
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
@ -98,6 +105,9 @@ applications using the zbar-qt library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
test -x "$(type -p gcc)" && export CC=$_
|
test -x "$(type -p gcc)" && export CC=$_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user