From 02427b2ab0e1369e066ddd6e8ad051fb3537749f5587f08479b04e77a424f279 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 20 Nov 2020 07:08:50 +0000 Subject: [PATCH 1/2] Accepting request 849385 from home:jgwang:branches:Application:Geo version update to 0.23.1 OBS-URL: https://build.opensuse.org/request/show/849385 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/zbar?expand=0&rev=44 --- ...e-correct-pkconfig-file-for-zbar-qt5.patch | 38 ------------------- 0002-get-rid-of-gettext_h.patch | 36 ++++++++++++++++++ zbar-0.23.1.tar.bz2 | 3 ++ zbar-0.23.tar.bz2 | 3 -- zbar.changes | 18 +++++++++ zbar.spec | 9 +++-- 6 files changed, 63 insertions(+), 44 deletions(-) create mode 100644 0002-get-rid-of-gettext_h.patch create mode 100644 zbar-0.23.1.tar.bz2 delete mode 100644 zbar-0.23.tar.bz2 diff --git a/0001-Create-correct-pkconfig-file-for-zbar-qt5.patch b/0001-Create-correct-pkconfig-file-for-zbar-qt5.patch index d33c0b0..96fe6bf 100644 --- a/0001-Create-correct-pkconfig-file-for-zbar-qt5.patch +++ b/0001-Create-correct-pkconfig-file-for-zbar-qt5.patch @@ -13,44 +13,6 @@ Fixes issue #62. 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 diff --git a/0002-get-rid-of-gettext_h.patch b/0002-get-rid-of-gettext_h.patch new file mode 100644 index 0000000..6c41dea --- /dev/null +++ b/0002-get-rid-of-gettext_h.patch @@ -0,0 +1,36 @@ +commit a133aea7880bbb56d75535e534716d0e16a3b61a +Author: Mauro Carvalho Chehab +Date: Tue Jul 28 09:47:03 2020 +0200 + + zbarcam, zbarimg: get rid of gettext.h + + This doesn't seem to be needed at all for translations to + work. Also, gettext.h uses a different license. So, let's get + rid of it. + + Signed-off-by: Mauro Carvalho Chehab + +diff --git a/zbarcam/zbarcam.c b/zbarcam/zbarcam.c +index f7ea281..ad30101 100644 +--- a/zbarcam/zbarcam.c ++++ b/zbarcam/zbarcam.c +@@ -35,7 +35,6 @@ + #include + + #ifdef ENABLE_NLS +-#include "../zbar/gettext.h" + # include + # define _(string) gettext(string) + #else +diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c +index 0796fd8..d05d832 100644 +--- a/zbarimg/zbarimg.c ++++ b/zbarimg/zbarimg.c +@@ -40,7 +40,6 @@ + #include + + #ifdef ENABLE_NLS +-#include "../zbar/gettext.h" + # include + # define _(string) gettext(string) + #else diff --git a/zbar-0.23.1.tar.bz2 b/zbar-0.23.1.tar.bz2 new file mode 100644 index 0000000..f20ddfe --- /dev/null +++ b/zbar-0.23.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f +size 1195599 diff --git a/zbar-0.23.tar.bz2 b/zbar-0.23.tar.bz2 deleted file mode 100644 index 703ee84..0000000 --- a/zbar-0.23.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e99fb8f3be85a76fe24784ad67fecb2da3a02b1e432696b05eefe212d448ad2e -size 1168183 diff --git a/zbar.changes b/zbar.changes index f3ef78c..eee6423 100644 --- a/zbar.changes +++ b/zbar.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Nov 18 02:54:31 UTC 2020 - Wang Jun + +- Update to version 0.23.1 + * Add i18n translation support and add a pt_BR translation + * Change default to autodetect python and gtk versions + * Improve tests and builds on travisCI + * Some documentation updates + * Add support for binary data extraction + * Add support for raw decoding without charset conversions + * Add one shot scanning mode + * Improved OSX and iphone support + * Fix help messages + * Fix some makefile issues + * Fix error detection in video4linux read + * Fix pkgconfig for zbar-qt5 + * Fix a double-free condition + ------------------------------------------------------------------- Sun Oct 20 11:40:04 UTC 2019 - Stefan Brüns diff --git a/zbar.spec b/zbar.spec index f81c6bd..fb89b31 100644 --- a/zbar.spec +++ b/zbar.spec @@ -1,7 +1,7 @@ # # spec file for package zbar # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2010 Carlos Goncalves . # # All modifications and additions to the file contributed by third parties @@ -20,7 +20,7 @@ %define sover 0 %define libname lib%{name}%{sover} Name: zbar -Version: 0.23 +Version: 0.23.1 Release: 0 Summary: Bar code reader License: LGPL-2.0-or-later @@ -30,6 +30,7 @@ Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2 Source98: baselibs.conf # PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/pull/63 Patch0: 0001-Create-correct-pkconfig-file-for-zbar-qt5.patch +Patch1: 0002-get-rid-of-gettext_h.patch # autoconf/automake required due to patched configure.ac (Patch0) %if 0%{?suse_version} >= 1550 BuildRequires: autoconf @@ -108,6 +109,7 @@ applications using the zbar-qt library. %if 0%{?suse_version} >= 1550 %patch0 -p1 %endif +%patch1 -p1 %build test -x "$(type -p gcc)" && export CC=$_ @@ -127,6 +129,7 @@ find %{buildroot} -name "*.la" -or -name "*.a" | xargs rm -f rm -rf %{buildroot}%{_datadir}/doc/zbar-%{version}/ rm -f %{buildroot}%{_docdir}/zbar/{COPYING,LICENSE.md,INSTALL.md} +%{find_lang} %{name} # Lets wait for review first rm -rf %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf @@ -135,7 +138,7 @@ rm -rf %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf %post -n libzbarqt0 -p /sbin/ldconfig %postun -n libzbarqt0 -p /sbin/ldconfig -%files +%files -f %{name}.lang %license COPYING LICENSE.md %{_defaultdocdir}/%{name}/ %{_bindir}/zbarimg From 0b135acb3090306e94dd756a9cc5bc4aa79c3de3bedfdaab54043aa3ef6fc0a7 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 20 Nov 2020 07:13:29 +0000 Subject: [PATCH 2/2] - Add 0002-get-rid-of-gettext_h.patch OBS-URL: https://build.opensuse.org/package/show/Application:Geo/zbar?expand=0&rev=45 --- zbar.changes | 3 +-- zbar.spec | 11 ++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zbar.changes b/zbar.changes index eee6423..b82418b 100644 --- a/zbar.changes +++ b/zbar.changes @@ -4,17 +4,16 @@ Wed Nov 18 02:54:31 UTC 2020 - Wang Jun - Update to version 0.23.1 * Add i18n translation support and add a pt_BR translation * Change default to autodetect python and gtk versions - * Improve tests and builds on travisCI * Some documentation updates * Add support for binary data extraction * Add support for raw decoding without charset conversions * Add one shot scanning mode - * Improved OSX and iphone support * Fix help messages * Fix some makefile issues * Fix error detection in video4linux read * Fix pkgconfig for zbar-qt5 * Fix a double-free condition +- Add 0002-get-rid-of-gettext_h.patch ------------------------------------------------------------------- Sun Oct 20 11:40:04 UTC 2019 - Stefan Brüns diff --git a/zbar.spec b/zbar.spec index fb89b31..8345906 100644 --- a/zbar.spec +++ b/zbar.spec @@ -30,12 +30,8 @@ Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2 Source98: baselibs.conf # PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/pull/63 Patch0: 0001-Create-correct-pkconfig-file-for-zbar-qt5.patch +# PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/commit/a133aea7880bbb56d75535e534716d0e16a3b61a Patch1: 0002-get-rid-of-gettext_h.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: pkgconfig >= 0.9.0 BuildRequires: xmlto @@ -51,6 +47,11 @@ BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xv) +# autoconf/automake required due to patched configure.ac (Patch0) +%if 0%{?suse_version} >= 1550 +BuildRequires: autoconf +BuildRequires: automake >= 1.16 +%endif %if 0%{?suse_version} < 1500 BuildRequires: gcc7 %endif