|
|
|
@ -2,21 +2,14 @@
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
|
|
Name: zbar
|
|
|
|
|
Version: 0.10
|
|
|
|
|
Release: 29%{?dist}
|
|
|
|
|
Version: 0.20
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Bar code reader
|
|
|
|
|
|
|
|
|
|
Group: User Interface/X Hardware Support
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: http://zbar.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
Patch0: zbar_update_to_hg.patch
|
|
|
|
|
Patch1: zbar_use_libv4l.patch
|
|
|
|
|
Patch2: zbar_choose_supported_format_first.patch
|
|
|
|
|
Patch3: zbar_use_REQBUFS_properly.patch
|
|
|
|
|
Patch4: zbar_configure_ac_use_m4_pattern_allow.patch
|
|
|
|
|
Patch5: zbar_add_support_for_qt5.patch
|
|
|
|
|
Patch6: zbar_generate_qt_gtk_apps.patch
|
|
|
|
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
@ -89,17 +82,10 @@ scanning widget.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -vfi
|
|
|
|
|
%configure --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
|
|
|
|
|
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
# rpath
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
@ -115,7 +101,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
|
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
|
|
|
|
|
|
|
|
|
|
# Remove installed doc
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-0.10/
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
@ -191,6 +177,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_includedir}/zbar/QZBar*.h
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Apr 11 2017 Mauro Carvalho Chehab <mchehab@s-opensource.com> - 0.20-1
|
|
|
|
|
- Update it to version 0.20 with brings V4L2 controls to zbarcam-qt
|
|
|
|
|
|
|
|
|
|
* Sun Mar 26 2017 Mauro Carvalho Chehab <mchehab@s-opensource.com> - 0.10-29
|
|
|
|
|
- Make zbar-qt to use Qt5 and generate gtk and qt applications
|
|
|
|
|
|
|
|
|
|