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
|
|
|
#
|
2019-01-23 18:03:43 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2013-02-28 18:42:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%define libname libzbar0
|
|
|
|
Name: zbar
|
2019-01-23 18:03:43 +01:00
|
|
|
Version: 0.20.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-01-23 18:03:43 +01:00
|
|
|
|
|
|
|
URL: http://zbar.sourceforge.net/
|
|
|
|
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
2016-07-01 14:50:14 +02:00
|
|
|
Source98: baselibs.conf
|
2019-01-23 18:03:43 +01:00
|
|
|
|
2013-02-28 18:42:00 +01:00
|
|
|
BuildRequires: ImageMagick-devel
|
2012-08-06 18:15:01 +02:00
|
|
|
BuildRequires: autoconf
|
2012-08-06 18:18:48 +02:00
|
|
|
BuildRequires: automake
|
2012-08-06 19:28:37 +02:00
|
|
|
BuildRequires: libtool
|
2017-11-01 15:53:08 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-01-23 18:03:43 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libv4l-devel
|
|
|
|
BuildRequires: libXv-devel
|
2013-02-28 18:42:00 +01:00
|
|
|
BuildRequires: xmlto
|
2019-01-23 18:03:43 +01:00
|
|
|
BuildRequires: python2-devel
|
2017-08-11 19:27:36 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
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-01-23 18:03:43 +01:00
|
|
|
Requires: lib%{name}qt0 = %{version}, lib%{name}-devel = %{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
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-06-08 16:42:39 +02:00
|
|
|
# for the Mercurial-based archive we need to get proper autoconf files
|
2017-11-01 15:53:08 +01:00
|
|
|
autoreconf -fiv
|
2019-01-23 18:03:43 +01:00
|
|
|
|
2017-11-01 15:53:08 +01:00
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
2019-01-23 18:03:43 +01:00
|
|
|
--without-java \
|
2017-11-01 15:53:08 +01:00
|
|
|
--without-python \
|
|
|
|
--without-gtk
|
2019-01-23 18:03:43 +01:00
|
|
|
|
|
|
|
# rpath
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%install
|
2019-01-23 18:03:43 +01:00
|
|
|
rm -rf %{buildroot}
|
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
|
|
|
|
rm -rf %{buildroot}/usr/share/doc/zbar-%{version}/
|
|
|
|
rm -f %{buildroot}/usr/share/doc/packages/zbar/{COPYING,LICENSE,INSTALL}
|
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
|
|
|
|
2011-01-26 19:31:16 +01:00
|
|
|
%files
|
2019-01-23 18:03:43 +01:00
|
|
|
%doc NEWS
|
|
|
|
%license COPYING LICENSE
|
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}
|
2016-06-14 12:48:19 +02:00
|
|
|
%{_libdir}/libzbar.so.*
|
2019-01-23 18:03:43 +01:00
|
|
|
%exclude %{python2_sitearch}/zbar.so
|
|
|
|
%exclude %{_includedir}/zbar/zbargtk.h
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%files -n lib%{name}-devel
|
2019-01-23 18:03:43 +01:00
|
|
|
%doc HACKING TODO
|
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
|
2016-06-14 12:48:19 +02:00
|
|
|
%{_libdir}/libzbarqt.so.*
|
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
|