From 97f8445ae5376bc37528a997aa222f8bda3d9417 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 7 Jan 2019 11:31:42 -0200 Subject: [PATCH] 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 --- zbar.spec | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/zbar.spec b/zbar.spec index a68f6be..d4851e3 100644 --- a/zbar.spec +++ b/zbar.spec @@ -12,7 +12,6 @@ BuildRequires: autoconf automake libtool gettext-devel BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel BuildRequires: gtk2-devel GraphicsMagick-c++-devel BuildRequires: libv4l-devel libXv-devel xmlto -BuildRequires: python2-devel pygtk2-devel %description 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 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 Group: Development/Libraries Summary: Bar code reader Qt widget @@ -81,7 +71,7 @@ scanning widget. %build autoreconf -vfi -%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version} +%configure --without-java --with-graphicsmagick --without-python2 --docdir=%{_docdir}/%{name}-%{version} # rpath 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 %{_includedir}/zbar/zbargtk.h -%files pygtk -%{python2_sitearch}/zbarpygtk.so -%{python2_sitearch}/zbar.so - %files qt %{_libdir}/libzbarqt.so.* %{_bindir}/zbarcam-qt