|
|
@ -12,10 +12,15 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool python2-devel 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 pygtk2-devel GraphicsMagick-c++-devel
|
|
|
|
BuildRequires: gtk2-devel GraphicsMagick-c++-devel
|
|
|
|
BuildRequires: libv4l-devel libXv-devel xmlto
|
|
|
|
BuildRequires: libv4l-devel libXv-devel xmlto
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
BuildRequires: python2-devel pygtk2-devel
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global without_python --without-python
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%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,
|
|
|
@ -51,6 +56,7 @@ This package contains header files and additional libraries used for
|
|
|
|
developing GUI applications based on GTK+-2.0 that include a bar code
|
|
|
|
developing GUI applications based on GTK+-2.0 that include a bar code
|
|
|
|
scanning widget.
|
|
|
|
scanning widget.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%package pygtk
|
|
|
|
%package pygtk
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Bar code reader PyGTK widget
|
|
|
|
Summary: Bar code reader PyGTK widget
|
|
|
@ -59,6 +65,7 @@ Requires: pygtk2, %{name}-gtk = %{version}-%{release}
|
|
|
|
%description pygtk
|
|
|
|
%description pygtk
|
|
|
|
This package contains a bar code scanning widget for use in GUI
|
|
|
|
This package contains a bar code scanning widget for use in GUI
|
|
|
|
applications based on PyGTK.
|
|
|
|
applications based on PyGTK.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package qt
|
|
|
|
%package qt
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -84,7 +91,7 @@ scanning widget.
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf -vfi
|
|
|
|
autoreconf -vfi
|
|
|
|
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
|
|
|
|
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version} %{?without_python}
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
@ -156,10 +163,12 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|
|
|
%{_libdir}/pkgconfig/zbar-gtk.pc
|
|
|
|
%{_libdir}/pkgconfig/zbar-gtk.pc
|
|
|
|
%{_includedir}/zbar/zbargtk.h
|
|
|
|
%{_includedir}/zbar/zbargtk.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%files pygtk
|
|
|
|
%files pygtk
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitearch}/zbarpygtk.so
|
|
|
|
%{python_sitearch}/zbarpygtk.so
|
|
|
|
%{python_sitearch}/zbar.so
|
|
|
|
%{python_sitearch}/zbar.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files qt
|
|
|
|
%files qt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|