|
|
@ -1,16 +1,12 @@
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: zbar
|
|
|
|
Name: zbar
|
|
|
|
Version: 0.20.1
|
|
|
|
Version: 0.20.1
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Bar code reader
|
|
|
|
Summary: Bar code reader
|
|
|
|
|
|
|
|
|
|
|
|
Group: User Interface/X Hardware Support
|
|
|
|
Group: User Interface/X Hardware Support
|
|
|
|
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: zbar_fedora29_hack_for_codegen_to_work.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
|
|
|
@ -82,7 +78,6 @@ scanning widget.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf -vfi
|
|
|
|
autoreconf -vfi
|
|
|
@ -104,24 +99,17 @@ find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
|
|
|
|
# Remove installed doc
|
|
|
|
# Remove installed doc
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
%post devel -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post gtk -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post qt -p /sbin/ldconfig
|
|
|
|
%ldconfig_scriptlets devel
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%ldconfig_scriptlets gtk
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel -p /sbin/ldconfig
|
|
|
|
%ldconfig_scriptlets qt
|
|
|
|
|
|
|
|
|
|
|
|
%postun gtk -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun qt -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc COPYING LICENSE NEWS
|
|
|
|
%doc NEWS
|
|
|
|
|
|
|
|
%license COPYING LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%{_bindir}/zbarimg
|
|
|
|
%{_bindir}/zbarimg
|
|
|
|
%{_bindir}/zbarcam
|
|
|
|
%{_bindir}/zbarcam
|
|
|
@ -168,6 +156,11 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|
|
|
%{_includedir}/zbar/QZBar*.h
|
|
|
|
%{_includedir}/zbar/QZBar*.h
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Aug 9 2018 Hans de Goede <hdegoede@redhat.com> - 0.20.1-3
|
|
|
|
|
|
|
|
- Drop zbar_fedora29_hack_for_codegen_to_work.patch now that pygobject2 is
|
|
|
|
|
|
|
|
fixed (rhbz# 1606784)
|
|
|
|
|
|
|
|
- Use %%ldconfig_scriptlets so that we don't unnecessarily run ldconfig on F28+
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-2
|
|
|
|
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-2
|
|
|
|
- Re-enable python2 bindings
|
|
|
|
- Re-enable python2 bindings
|
|
|
|
|
|
|
|
|
|
|
|