|
|
@ -1,17 +1,19 @@
|
|
|
|
Name: zbar
|
|
|
|
Name: zbar
|
|
|
|
Version: 0.22.90
|
|
|
|
Version: 0.22.91
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Bar code reader
|
|
|
|
Summary: Bar code reader
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://zbar.sourceforge.net/
|
|
|
|
URL: http://zbar.sourceforge.net/
|
|
|
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
Patch0: use_python3_on_python_script.patch
|
|
|
|
|
|
|
|
|
|
|
|
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: gtk3-devel ImageMagick-devel pygobject3-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
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
|
|
|
|
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
|
|
|
|
developing GUI applications based on Qt4 that include a bar code
|
|
|
|
scanning widget.
|
|
|
|
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
|
|
|
|
%package java
|
|
|
|
Summary: Bar code reader Java library
|
|
|
|
Summary: Bar code reader Java library
|
|
|
|
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
|
|
|
|
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
|
|
|
@ -81,10 +92,11 @@ on Java Native Interface (JNI) applications using ZBar.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf -vfi
|
|
|
|
autoreconf -vfi
|
|
|
|
%configure --without-python --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version}
|
|
|
|
%configure --with-python=python3 --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
|
|
|
@ -98,6 +110,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
install -d %{buildroot}%{_jnidir}
|
|
|
|
install -d %{buildroot}%{_jnidir}
|
|
|
|
mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
|
|
|
|
mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
|
|
|
|
mv %{buildroot}%{_datadir}/zbar/lib/libzbarjni.so* %{buildroot}%{_libdir}
|
|
|
|
mv %{buildroot}%{_datadir}/zbar/lib/libzbarjni.so* %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
cp test/test_python.py %{buildroot}%{_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
#Remove .la and .a files
|
|
|
|
#Remove .la and .a files
|
|
|
|
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
|
|
|
|
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
|
|
|
|
%{_jnidir}/zbar.jar
|
|
|
|
%{_libdir}/libzbarjni.so*
|
|
|
|
%{_libdir}/libzbarjni.so*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files python3
|
|
|
|
|
|
|
|
%{python3_sitearch}/zbar.so
|
|
|
|
|
|
|
|
%{_docdir}/test_python.py
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri May 10 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.90-1
|
|
|
|
* 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)
|
|
|
|
- Release candidate for 0.23. Support for Gtk3 and GObject Introspection (GIR)
|
|
|
|