Disable build for pygtk2 module

The pygtk2 module is orphaned and will be retired from Fedora.
Also, there is a binding for zbar that claims to support both
python2 and python3:
	https://github.com/zplab/zbar-py

Ok, this is currently not packaged on Fedora, but it should be
easy to install it via pip. So, it may not make much sense to
change zbar to have a pygtk3 binding.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
epel9
Mauro Carvalho Chehab 6 years ago
parent 60e4c2b86f
commit 97f8445ae5

@ -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

Loading…
Cancel
Save