@ -1,5 +1,5 @@
Name: zbar
Name: zbar
Version: 0.22.2
Version: 0.22.90
Release: 1%{?dist}
Release: 1%{?dist}
Summary: Bar code reader
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: autoconf automake libtool gettext-devel
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-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: libv4l-devel libXv-devel xmlto dbus-devel
BuildRequires: java-11-openjdk-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
This package contains a bar code scanning widget for use with GUI
applications based on GTK+-2.0.
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
%package gtk-devel
Summary: Bar code reader GTK widget extra development files
Summary: Bar code reader GTK widget extra development files
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
@ -75,7 +84,7 @@ on Java Native Interface (JNI) applications using ZBar.
%build
%build
autoreconf -vfi
autoreconf -vfi
%configure --without-python2 --docdir=%{_docdir}/%{name}-%{version}
%configure --without-python --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version}
# rpath
# rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
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.*
%{_libdir}/libzbargtk.so.*
%{_bindir}/zbarcam-gtk
%{_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
%files gtk-devel
%{_libdir}/libzbargtk.so
%{_libdir}/libzbargtk.so
%{_libdir}/pkgconfig/zbar-gtk.pc
%{_libdir}/pkgconfig/zbar-gtk.pc
@ -154,6 +169,9 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%{_libdir}/libzbarjni.so*
%{_libdir}/libzbarjni.so*
%changelog
%changelog
* Fri May 10 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.90-1
- Release candidate for 0.23. Support for Gtk3 and GObject Introspection (GIR)
* Mon Apr 29 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.2-1
* Mon Apr 29 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.2-1
- Update to 0.22.2: added support for Java 11
- Update to 0.22.2: added support for Java 11