@ -12,7 +12,6 @@ BuildRequires: autoconf automake libtool gettext-devel
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel
BuildRequires: gtk2-devel GraphicsMagick-c++-devel
BuildRequires: gtk2-devel GraphicsMagick-c++-devel
BuildRequires: libv4l-devel libXv-devel xmlto
BuildRequires: libv4l-devel libXv-devel xmlto
BuildRequires: python2-devel pygtk2-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,
@ -48,15 +47,6 @@ 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.
%package pygtk
Group: Development/Libraries
Summary: Bar code reader PyGTK widget
Requires: pygtk2, python2-pillow, %{name}-gtk = %{version}-%{release}
%description pygtk
This package contains a bar code scanning widget for use in GUI
applications based on PyGTK.
%package qt
%package qt
Group: Development/Libraries
Group: Development/Libraries
Summary: Bar code reader Qt widget
Summary: Bar code reader Qt widget
@ -81,7 +71,7 @@ scanning widget.
%build
%build
autoreconf -vfi
autoreconf -vfi
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
%configure --without-java --with-graphicsmagick --without-python2 -- 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
@ -142,10 +132,6 @@ 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
%files pygtk
%{python2_sitearch}/zbarpygtk.so
%{python2_sitearch}/zbar.so
%files qt
%files qt
%{_libdir}/libzbarqt.so.*
%{_libdir}/libzbarqt.so.*
%{_bindir}/zbarcam-qt
%{_bindir}/zbarcam-qt