From c9fd939c014369ab08e27edd0bf21bc235b4eda0 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: May 11 2019 14:58:33 +0000 Subject: Update to 0.23 release candidate package (0.22.90) This Release Candidate brings support for Gtk3 and GIR. Add support for it and create an extra package for GIR. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/.gitignore b/.gitignore index 978eff8..50ed0db 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ zbar-0.10.tar.bz2 /zbar-0.22.tar.bz2 /zbar-0.22.2.tar.gz /zbar-0.22.2.tar.bz2 +/zbar-0.22.90.tar.bz2 diff --git a/sources b/sources index f262c23..509c708 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zbar-0.22.2.tar.bz2) = 5b791f6674f6cbd34d8ee9e5f49c61c60584874be28768147e023664f487959e28fb75c02c6415eacece38c8e5be9ccbdb227871ce998267ae8c22b246b70122 +SHA512 (zbar-0.22.90.tar.bz2) = fd21747dd7c40b2a3a0c958b18d0947905edb32424aa85efed7610aefb7167173b563656c4f201781f7f9b3bbb64d946a39b2089bac8aeccca823d4fb01e104d diff --git a/zbar.spec b/zbar.spec index 066937e..775d032 100644 --- a/zbar.spec +++ b/zbar.spec @@ -1,5 +1,5 @@ Name: zbar -Version: 0.22.2 +Version: 0.22.90 Release: 1%{?dist} Summary: Bar code reader @@ -9,7 +9,7 @@ Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2 BuildRequires: autoconf automake libtool gettext-devel BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel -BuildRequires: gtk2-devel ImageMagick-devel +BuildRequires: gtk3-devel ImageMagick-devel pygobject3-devel BuildRequires: libv4l-devel libXv-devel xmlto dbus-devel BuildRequires: java-11-openjdk-devel @@ -35,6 +35,15 @@ Requires: %{name} = %{version}-%{release} This package contains a bar code scanning widget for use with GUI applications based on GTK+-2.0. +%package gi +Summary: Bar code reader GObject Introspection (GIR) Gtk bindings +Requires: %{name}-gtk = %{version}-%{release} + +%description gi +This package contains a bar code scanning GObject Introspection +(GIR) Gtk bindings, with allow the usage of ZBar with GUI +support on any application compatible with GIR, like python3. + %package gtk-devel Summary: Bar code reader GTK widget extra development files Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release} @@ -75,7 +84,7 @@ on Java Native Interface (JNI) applications using ZBar. %build autoreconf -vfi -%configure --without-python2 --docdir=%{_docdir}/%{name}-%{version} +%configure --without-python --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version} # rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -135,6 +144,12 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/ %{_libdir}/libzbargtk.so.* %{_bindir}/zbarcam-gtk +%files gi +%dir %{_libdir}/girepository-1.0 +%dir %{_datadir}/gir-1.0 +%{_libdir}/girepository-1.0/ZBar-1.0.typelib +%{_datadir}/gir-1.0/ZBar-1.0.gir + %files gtk-devel %{_libdir}/libzbargtk.so %{_libdir}/pkgconfig/zbar-gtk.pc @@ -154,6 +169,9 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/ %{_libdir}/libzbarjni.so* %changelog +* Fri May 10 2019 Mauro Carvalho Chehab - 0.22.90-1 +- Release candidate for 0.23. Support for Gtk3 and GObject Introspection (GIR) + * Mon Apr 29 2019 Mauro Carvalho Chehab - 0.22.2-1 - Update to 0.22.2: added support for Java 11