Bump to 0.22.91

Has some build fixes. While here, enable python3 bindings build.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
epel9
Mauro Carvalho Chehab 6 years ago
parent c9fd939c01
commit 6deccd757c

1
.gitignore vendored

@ -7,3 +7,4 @@ zbar-0.10.tar.bz2
/zbar-0.22.2.tar.gz
/zbar-0.22.2.tar.bz2
/zbar-0.22.90.tar.bz2
/zbar-0.22.91.tar.bz2

@ -1 +1 @@
SHA512 (zbar-0.22.90.tar.bz2) = fd21747dd7c40b2a3a0c958b18d0947905edb32424aa85efed7610aefb7167173b563656c4f201781f7f9b3bbb64d946a39b2089bac8aeccca823d4fb01e104d
SHA512 (zbar-0.22.91.tar.bz2) = c64a9d6b21e5da9dc583ed2f2098402093e6932ce2383e49ecb7a6db18418456f039381f9fda4e9276e59fea2b1e7cd1f01cf32977e4eb9c6a3391d36228c5ae

@ -1,17 +1,19 @@
Name: zbar
Version: 0.22.90
Version: 0.22.91
Release: 1%{?dist}
Summary: Bar code reader
License: LGPLv2+
URL: http://zbar.sourceforge.net/
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
Patch0: use_python3_on_python_script.patch
BuildRequires: autoconf automake libtool gettext-devel
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel
BuildRequires: gtk3-devel ImageMagick-devel pygobject3-devel
BuildRequires: libv4l-devel libXv-devel xmlto dbus-devel
BuildRequires: java-11-openjdk-devel
BuildRequires: python3-devel
%description
A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
@ -70,6 +72,15 @@ This package contains header files and additional libraries used for
developing GUI applications based on Qt4 that include a bar code
scanning widget.
%package python3
Group: Development/Libraries
Summary: Bar code reader PyGTK widget
Requires: python3-pillow, %{name} = %{version}-%{release}
%description python3
This package contains a bar code scanning widget for use on
python applications that work with images.
%package java
Summary: Bar code reader Java library
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
@ -81,10 +92,11 @@ on Java Native Interface (JNI) applications using ZBar.
%prep
%setup -q
%patch0 -p1
%build
autoreconf -vfi
%configure --without-python --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version}
%configure --with-python=python3 --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version}
# rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -98,6 +110,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
install -d %{buildroot}%{_jnidir}
mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
mv %{buildroot}%{_datadir}/zbar/lib/libzbarjni.so* %{buildroot}%{_libdir}
cp test/test_python.py %{buildroot}%{_docdir}
#Remove .la and .a files
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
@ -168,6 +181,10 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%{_jnidir}/zbar.jar
%{_libdir}/libzbarjni.so*
%files python3
%{python3_sitearch}/zbar.so
%{_docdir}/test_python.py
%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)

Loading…
Cancel
Save