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
|
|
|
#
|
2024-01-22 16:11:23 +01:00
|
|
|
# Copyright (c) 2024 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
|
2024-01-22 16:11:23 +01:00
|
|
|
Version: 0.23.93
|
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
|
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
|
2024-01-22 16:11:23 +01:00
|
|
|
# https://github.com/mchehab/zbar/issues/277
|
|
|
|
Patch0: https://github.com/mchehab/zbar/commit/368571ffa1a0f6cc41f708dd0d27f9b6e9409df8.patch#/zbar-pkgconfig.patch
|
|
|
|
# https://github.com/mchehab/zbar/issues/277
|
|
|
|
Patch1: https://github.com/mchehab/zbar/commit/a549566ea11eb03622bd4458a1728ffe3f589163.patch#/zbar-configure.patch
|
|
|
|
BuildRequires: automake
|
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
|
2022-12-22 10:25:41 +01:00
|
|
|
BuildRequires: pkgconfig(ImageMagick)
|
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)
|
2021-02-17 12:53:37 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
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)
|
2023-06-20 13:25:01 +02:00
|
|
|
%lang_package
|
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
|
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
|
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
|
|
|
|
|
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
|
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.
|
|
|
|
|
2021-02-17 12:53:37 +01:00
|
|
|
%package -n python3-zbar
|
|
|
|
Summary: Python3 module for ZBar
|
|
|
|
|
|
|
|
%description -n python3-zbar
|
|
|
|
This package contains the module to use ZBar from python3.
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
%prep
|
2021-01-21 22:14:04 +01:00
|
|
|
%autosetup -p1
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%build
|
2017-11-01 15:53:08 +01:00
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
2019-01-23 18:03:43 +01:00
|
|
|
--without-java \
|
2021-02-17 12:53:37 +01:00
|
|
|
--with-python=python3 \
|
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
|
|
|
|
2023-06-20 13:25:01 +02: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
|
|
|
|
|
2023-06-20 13:25:01 +02:00
|
|
|
%ldconfig_scriptlets -n %{libname}
|
|
|
|
%ldconfig_scriptlets -n libzbarqt0
|
2016-06-08 16:42:39 +02:00
|
|
|
|
2023-06-20 13:25:01 +02:00
|
|
|
%files
|
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
|
|
|
|
2023-06-20 13:25:01 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
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
|
|
|
|
2021-02-17 12:53:37 +01:00
|
|
|
%files -n python3-zbar
|
|
|
|
%{python3_sitearch}/zbar.so
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
%changelog
|