2011-01-26 19:31:16 +01:00
|
|
|
#
|
2013-02-28 18:42:00 +01:00
|
|
|
# spec file for package zbar
|
2011-01-26 19:31:16 +01:00
|
|
|
#
|
2021-01-21 22:14:04 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-06-08 16:42:39 +02:00
|
|
|
# Copyright (c) 2010 Carlos Goncalves <cgoncalves@opensuse.org>.
|
2011-01-26 19:31:16 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-15 09:43:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-02-28 18:42:00 +01:00
|
|
|
#
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2019-02-15 09:43:31 +01:00
|
|
|
%define sover 0
|
|
|
|
%define libname lib%{name}%{sover}
|
2011-01-26 19:31:16 +01:00
|
|
|
Name: zbar
|
2020-11-20 08:08:50 +01:00
|
|
|
Version: 0.23.1
|
2013-02-28 18:42:00 +01:00
|
|
|
Release: 0
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Bar code reader
|
2019-01-23 18:03:43 +01:00
|
|
|
License: LGPL-2.0-or-later
|
2013-02-28 18:42:00 +01:00
|
|
|
Group: Productivity/Other
|
2019-07-06 13:15:46 +02:00
|
|
|
URL: https://github.com/mchehab/zbar
|
2019-01-23 18:03:43 +01:00
|
|
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
2016-07-01 14:50:14 +02:00
|
|
|
Source98: baselibs.conf
|
2019-10-20 16:02:05 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/pull/63
|
|
|
|
Patch0: 0001-Create-correct-pkconfig-file-for-zbar-qt5.patch
|
2020-11-20 08:13:29 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://github.com/mchehab/zbar/commit/a133aea7880bbb56d75535e534716d0e16a3b61a
|
2020-11-20 08:08:50 +01:00
|
|
|
Patch1: 0002-get-rid-of-gettext_h.patch
|
2019-01-23 18:03:43 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
2019-02-15 09:43:31 +01:00
|
|
|
BuildRequires: pkgconfig >= 0.9.0
|
2013-02-28 18:42:00 +01:00
|
|
|
BuildRequires: xmlto
|
2019-07-06 13:15:46 +02:00
|
|
|
BuildRequires: pkgconfig(GraphicsMagick)
|
2017-08-11 19:27:36 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
2019-02-15 09:43:31 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(libv4l2)
|
2019-02-15 10:08:32 +01:00
|
|
|
BuildRequires: pkgconfig(sm)
|
2019-02-15 09:43:31 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xv)
|
2019-03-28 17:26:06 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: gcc7
|
|
|
|
%endif
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description
|
2017-02-03 18:30:04 +01:00
|
|
|
ZBar reads bar codes from various sources, such as video streams,
|
|
|
|
image files and raw intensity sensors. It supports many symbologies
|
|
|
|
(types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
|
|
|
|
Code 39, Interleaved 2 of 5 and QR Code.
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2017-02-03 18:30:04 +01:00
|
|
|
It can be used through the standalone GUI and command-line programs,
|
|
|
|
or integrated by other programs through a library.
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%package -n %{libname}
|
2017-02-03 18:30:04 +01:00
|
|
|
Summary: Bar code reading library
|
2016-06-08 16:42:39 +02:00
|
|
|
Group: System/Libraries
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description -n %{libname}
|
2017-02-03 18:30:04 +01:00
|
|
|
ZBar reads bar codes from various sources, such as video streams,
|
|
|
|
image files and raw intensity sensors. It supports many symbologies
|
|
|
|
(types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
|
|
|
|
Code 39, Interleaved 2 of 5 and QR Code.
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
This package provides the ZBar library.
|
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%package -n lib%{name}-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Development environment for the ZBar library
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-28 18:42:00 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%description -n lib%{name}-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
This package contains all necessary include files, libraries,
|
|
|
|
configuration files and development tools needed to compile and link
|
|
|
|
applications using the zbar library.
|
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%package -n lib%{name}qt0
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: ZBar Qt bindings
|
2016-06-08 16:42:39 +02:00
|
|
|
Group: System/Libraries
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%description -n lib%{name}qt0
|
2011-01-26 19:31:16 +01:00
|
|
|
This package provides ZBar Qt bindings.
|
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%package -n lib%{name}qt-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Development environment for the ZBar Qt bindings library
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-02-15 09:43:31 +01:00
|
|
|
Requires: lib%{name}-devel = %{version}
|
|
|
|
Requires: lib%{name}qt0 = %{version}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%description -n lib%{name}qt-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
This package contains all necessary include files, libraries,
|
|
|
|
configuration files and development tools needed to compile and link
|
|
|
|
applications using the zbar-qt library.
|
|
|
|
|
|
|
|
%prep
|
2021-01-21 22:14:04 +01:00
|
|
|
%autosetup -p1
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%build
|
2019-03-08 21:11:43 +01:00
|
|
|
test -x "$(type -p gcc)" && export CC=$_
|
|
|
|
test -x "$(type -p gcc-7)" && export CC=$_
|
|
|
|
test -x "$(type -p gcc-8)" && export CC=$_
|
2017-11-01 15:53:08 +01:00
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
2019-01-23 18:03:43 +01:00
|
|
|
--without-java \
|
2019-07-06 13:15:46 +02:00
|
|
|
--with-python=no \
|
2019-02-15 10:08:32 +01:00
|
|
|
--without-gtk
|
2021-01-21 22:14:04 +01:00
|
|
|
%make_build
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-01 15:53:08 +01:00
|
|
|
%make_install
|
2019-01-23 18:03:43 +01:00
|
|
|
find %{buildroot} -name "*.la" -or -name "*.a" | xargs rm -f
|
2019-02-15 09:43:31 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/zbar-%{version}/
|
2019-07-06 13:15:46 +02:00
|
|
|
rm -f %{buildroot}%{_docdir}/zbar/{COPYING,LICENSE.md,INSTALL.md}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2020-11-20 08:08:50 +01:00
|
|
|
%{find_lang} %{name}
|
2019-02-15 10:08:32 +01:00
|
|
|
# Lets wait for review first
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2016-06-08 16:42:39 +02:00
|
|
|
%post -n libzbarqt0 -p /sbin/ldconfig
|
2011-01-26 19:31:16 +01:00
|
|
|
%postun -n libzbarqt0 -p /sbin/ldconfig
|
2016-06-08 16:42:39 +02:00
|
|
|
|
2020-11-20 08:08:50 +01:00
|
|
|
%files -f %{name}.lang
|
2019-07-06 13:15:46 +02:00
|
|
|
%license COPYING LICENSE.md
|
2017-11-01 15:53:08 +01:00
|
|
|
%{_defaultdocdir}/%{name}/
|
2019-01-23 18:03:43 +01:00
|
|
|
%{_bindir}/zbarimg
|
|
|
|
%{_bindir}/zbarcam
|
|
|
|
%{_bindir}/zbarcam-qt
|
2016-06-08 16:42:39 +02:00
|
|
|
%{_mandir}/man1/*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%files -n %{libname}
|
2019-02-15 09:43:31 +01:00
|
|
|
%{_libdir}/libzbar.so.%{sover}*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%files -n lib%{name}-devel
|
2019-07-06 13:15:46 +02:00
|
|
|
%doc HACKING.md TODO.md
|
2016-06-08 16:42:39 +02:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/zbar.h
|
2019-01-23 18:03:43 +01:00
|
|
|
%{_includedir}/zbar/Exception.h
|
|
|
|
%{_includedir}/zbar/Symbol.h
|
|
|
|
%{_includedir}/zbar/Image.h
|
|
|
|
%{_includedir}/zbar/Scanner.h
|
|
|
|
%{_includedir}/zbar/Decoder.h
|
|
|
|
%{_includedir}/zbar/ImageScanner.h
|
|
|
|
%{_includedir}/zbar/Video.h
|
|
|
|
%{_includedir}/zbar/Window.h
|
|
|
|
%{_includedir}/zbar/Processor.h
|
2016-06-08 16:42:39 +02:00
|
|
|
%{_libdir}/libzbar.so
|
|
|
|
%{_libdir}/pkgconfig/zbar.pc
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%files -n lib%{name}qt0
|
2019-02-15 09:43:31 +01:00
|
|
|
%{_libdir}/libzbarqt.so.%{sover}*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2019-01-23 18:03:43 +01:00
|
|
|
%files -n lib%{name}qt-devel
|
2016-06-08 16:42:39 +02:00
|
|
|
%{_includedir}/%{name}/QZBar*.h
|
|
|
|
%{_libdir}/libzbarqt.so
|
|
|
|
%{_libdir}/pkgconfig/zbar-qt.pc
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%changelog
|