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
|
|
|
#
|
2017-02-03 13:43:22 +01:00
|
|
|
# Copyright (c) 2017 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
|
2013-02-28 18:42:00 +01:00
|
|
|
Version: 0.10_2013_02_28
|
|
|
|
Release: 0
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Bar code reader
|
2012-08-06 19:28:37 +02:00
|
|
|
License: LGPL-2.1+
|
2013-02-28 18:42:00 +01:00
|
|
|
Group: Productivity/Other
|
2011-01-26 19:31:16 +01:00
|
|
|
Url: http://zbar.sourceforge.net
|
2016-06-08 16:42:39 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2016-07-01 14:50:14 +02:00
|
|
|
Source98: baselibs.conf
|
2016-06-09 11:56:08 +02:00
|
|
|
# update.sh is used to create a new tarball based on the hg repository
|
|
|
|
Source99: update.sh
|
2016-06-08 16:42:39 +02:00
|
|
|
Patch1: fix_build.patch
|
|
|
|
Patch2: fix-gcc5.patch
|
2013-02-28 18:42:00 +01:00
|
|
|
BuildRequires: ImageMagick-devel
|
2011-11-20 00:07:31 +01:00
|
|
|
# required by mercurial archive only
|
2012-08-06 18:15:01 +02:00
|
|
|
BuildRequires: autoconf
|
2012-08-06 18:18:48 +02:00
|
|
|
BuildRequires: automake
|
2016-06-08 16:42:39 +02:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libqt4-devel
|
2012-08-06 19:28:37 +02:00
|
|
|
BuildRequires: libtool
|
2016-06-08 16:42:39 +02:00
|
|
|
BuildRequires: python-gtk-devel
|
2013-02-28 18:42:00 +01:00
|
|
|
BuildRequires: xmlto
|
2011-01-26 19:31:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n python-zbar
|
|
|
|
Summary: ZBar Python bindings
|
|
|
|
Group: Productivity/Other
|
2016-06-08 16:42:39 +02:00
|
|
|
%py_requires
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description -n python-zbar
|
|
|
|
This package provides ZBar Python bindings.
|
|
|
|
|
|
|
|
%package -n libzbarqt0
|
|
|
|
Summary: ZBar Qt bindings
|
2016-06-08 16:42:39 +02:00
|
|
|
Group: System/Libraries
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description -n libzbarqt0
|
|
|
|
This package provides ZBar Qt bindings.
|
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%package -n libzbarqt-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Development environment for the ZBar Qt bindings library
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-28 18:42:00 +01:00
|
|
|
Requires: libzbarqt0 = %{version}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%description -n libzbarqt-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.
|
|
|
|
|
|
|
|
%package -n libzbargtk0
|
|
|
|
Summary: ZBar Gtk bindings
|
2016-06-08 16:42:39 +02:00
|
|
|
Group: System/Libraries
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description -n libzbargtk0
|
|
|
|
This package provides ZBar Gtk bindings.
|
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%package -n libzbargtk-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
Summary: Development environment for the ZBar Gtk bindings library
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-28 18:42:00 +01:00
|
|
|
Requires: libzbargtk0 = %{version}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%description -n libzbargtk-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-gtk library.
|
|
|
|
|
|
|
|
%package -n python-zbar-gtk
|
|
|
|
Summary: ZBar Python-Gtk bindings
|
|
|
|
Group: Productivity/Other
|
|
|
|
Requires: python-zbar = %{version}
|
2016-06-08 16:42:39 +02:00
|
|
|
%py_requires
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%description -n python-zbar-gtk
|
|
|
|
This package provides ZBar Python-Gtk bindings.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-08-06 19:28:37 +02:00
|
|
|
%patch1 -p1
|
2016-01-13 09:00:14 +01:00
|
|
|
%patch2 -p1
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%build
|
2016-06-08 16:42:39 +02:00
|
|
|
# for the Mercurial-based archive we need to get proper autoconf files
|
|
|
|
autoreconf -fi
|
2011-11-20 00:07:31 +01:00
|
|
|
# Mercurial only? - This should not be required in a final release version!
|
2016-06-08 16:42:39 +02:00
|
|
|
export CFLAGS="%{optflags} -Wno-error=parentheses -Wno-error=deprecated-declarations"
|
|
|
|
%configure --docdir=%{_docdir}/%{name} --disable-static
|
|
|
|
make %{?_smp_mflags}
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%install
|
2016-06-08 16:42:39 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
rm %{buildroot}%{_docdir}/zbar/INSTALL
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
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
|
|
|
|
|
|
|
%post -n libzbargtk0 -p /sbin/ldconfig
|
2011-01-26 19:31:16 +01:00
|
|
|
%postun -n libzbargtk0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog README COPYING LICENSE NEWS
|
2017-02-03 13:43:22 +01:00
|
|
|
%_defaultdocdir/%{name}/
|
2016-06-08 16:42:39 +02:00
|
|
|
%{_bindir}/zbar*
|
|
|
|
%{_mandir}/man1/*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
2016-06-14 12:48:19 +02:00
|
|
|
%{_libdir}/libzbar.so.*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%files -n lib%{name}-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
%defattr(-,root,root)
|
2016-06-08 16:42:39 +02:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/zbar.h
|
|
|
|
%{_includedir}/%{name}/*.h
|
|
|
|
%exclude %{_includedir}/%{name}/zbargtk.h
|
|
|
|
%exclude %{_includedir}/%{name}/QZBar*.h
|
|
|
|
%{_libdir}/libzbar.so
|
|
|
|
%{_libdir}/pkgconfig/zbar.pc
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%files -n python-zbar
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{py_sitedir}/zbar.so
|
|
|
|
|
|
|
|
%files -n libzbarqt0
|
|
|
|
%defattr(-,root,root)
|
2016-06-14 12:48:19 +02:00
|
|
|
%{_libdir}/libzbarqt.so.*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%files -n libzbarqt-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
%defattr(-,root,root)
|
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
|
|
|
|
|
|
|
%files -n libzbargtk0
|
|
|
|
%defattr(-,root,root)
|
2016-06-14 12:48:19 +02:00
|
|
|
%{_libdir}/libzbargtk.so.*
|
2011-01-26 19:31:16 +01:00
|
|
|
|
2016-06-08 16:42:39 +02:00
|
|
|
%files -n libzbargtk-devel
|
2011-01-26 19:31:16 +01:00
|
|
|
%defattr(-,root,root)
|
2016-06-08 16:42:39 +02:00
|
|
|
%{_includedir}/%{name}/zbargtk.h
|
|
|
|
%{_libdir}/libzbargtk.so
|
|
|
|
%{_libdir}/pkgconfig/zbar-gtk.pc
|
2011-01-26 19:31:16 +01:00
|
|
|
|
|
|
|
%files -n python-zbar-gtk
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{py_sitedir}/zbarpygtk.so
|
|
|
|
|
|
|
|
%changelog
|