2019-05-21 10:21:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package zxing-cpp
|
|
|
|
#
|
Accepting request 1061067 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.0.0:
* Switch to UTF8 based API and remove deprecated UTF16 one
(Result::text())
* Remove all API deprecated in 1.4
* Adding a wrapper for iOS
* New Aztec detector implementation to support arbitrary rotation
and position of the symbol
* Support multi-symbol detection in Aztec detector
* Replace all Qt originated ECI/CharacterSet conversion code with
a new implementation
* Require c++17 to build library and client code
* New DecodeHints::textMode() and Result::text(TextMode) API to
specify how bytes are rendered into text
* HRI (human readable interpretation) is the new default for the
TextMode (has been for most cases before, but not all)
* New DecodeHits::tryInvert() feature to test for inverted
symbols (white on black background)
- Changes from version 1.4.0:
* Note: this is an intermediary release on the way to 2.0. This
code is (supposed to be) API compatible (via the ReadBarcode.h
interface) with v1.3.0 but contains quite a few additional
deprecations. It still has SO number 1, which is as wrong as it
was for release v1.3.0 and it is not ABI compatible with 1.3
either. 2.0 will be basically 1.4 but with all deprecated API
removed and the final fix for #333.
* Reader support for Micro QRCode by @corbers
* Prepared switch from std::wstring based utf16 to std::string
based utf8 results, use new ZX_USE_UTF8 macro to transition to
the upcoming 2.0 API
* Much improved 'binary' data support via new Result::bytes()
API, see #334 for a detailed background discussion.
* New Result::contentType() API returning information about the
type of content (like text vs. binary, etc.)
* Better standards conformance with respect to ECI handling, see
Results::bytesECI()
* Support for proper ECI handling across structured append
symbols (see MergeStructuredAppendResults())
* New Result::error() API with improved error handling, see also
DecodeHints::returnErrors()
* Removed all internal header files from the installed set, so
only the ReadBarcode.h based APIs are supported from here on
out
* Removed all sample images from the 'source' distribution
zip/tar balls (much reduced size)
* Python read_barcode returns None if no symbol was found (might
break existing code if not checked for None before)
- Changes from version 1.3.0:
* Multi-barcode reading with the new std::vector<Result>
ReadBardcodes(...) function. Does not work for Aztec,
DataMatrix and Maxicode, yet.
* Multi-resolution scanning that can automatically downscale the
input to substantially increase the detection rate on high
resolution scans, see DecodeHints::tryDownscale, currently only
enabled in the ReadBardcodes function
* New Result::symbologyIdentifier property
* Updated and improved android wrapper
- Drop patches fixed upstream:
* 269.patch
* 0001-test-update-to-libfmt-v9.0.0.patch
* cmake-check-system-first.patch
- Bump sover to 3 following upstream changes.
OBS-URL: https://build.opensuse.org/request/show/1061067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=27
2023-01-26 00:23:02 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-05-21 10:21:38 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
Accepting request 1061067 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.0.0:
* Switch to UTF8 based API and remove deprecated UTF16 one
(Result::text())
* Remove all API deprecated in 1.4
* Adding a wrapper for iOS
* New Aztec detector implementation to support arbitrary rotation
and position of the symbol
* Support multi-symbol detection in Aztec detector
* Replace all Qt originated ECI/CharacterSet conversion code with
a new implementation
* Require c++17 to build library and client code
* New DecodeHints::textMode() and Result::text(TextMode) API to
specify how bytes are rendered into text
* HRI (human readable interpretation) is the new default for the
TextMode (has been for most cases before, but not all)
* New DecodeHits::tryInvert() feature to test for inverted
symbols (white on black background)
- Changes from version 1.4.0:
* Note: this is an intermediary release on the way to 2.0. This
code is (supposed to be) API compatible (via the ReadBarcode.h
interface) with v1.3.0 but contains quite a few additional
deprecations. It still has SO number 1, which is as wrong as it
was for release v1.3.0 and it is not ABI compatible with 1.3
either. 2.0 will be basically 1.4 but with all deprecated API
removed and the final fix for #333.
* Reader support for Micro QRCode by @corbers
* Prepared switch from std::wstring based utf16 to std::string
based utf8 results, use new ZX_USE_UTF8 macro to transition to
the upcoming 2.0 API
* Much improved 'binary' data support via new Result::bytes()
API, see #334 for a detailed background discussion.
* New Result::contentType() API returning information about the
type of content (like text vs. binary, etc.)
* Better standards conformance with respect to ECI handling, see
Results::bytesECI()
* Support for proper ECI handling across structured append
symbols (see MergeStructuredAppendResults())
* New Result::error() API with improved error handling, see also
DecodeHints::returnErrors()
* Removed all internal header files from the installed set, so
only the ReadBarcode.h based APIs are supported from here on
out
* Removed all sample images from the 'source' distribution
zip/tar balls (much reduced size)
* Python read_barcode returns None if no symbol was found (might
break existing code if not checked for None before)
- Changes from version 1.3.0:
* Multi-barcode reading with the new std::vector<Result>
ReadBardcodes(...) function. Does not work for Aztec,
DataMatrix and Maxicode, yet.
* Multi-resolution scanning that can automatically downscale the
input to substantially increase the detection rate on high
resolution scans, see DecodeHints::tryDownscale, currently only
enabled in the ReadBardcodes function
* New Result::symbologyIdentifier property
* Updated and improved android wrapper
- Drop patches fixed upstream:
* 269.patch
* 0001-test-update-to-libfmt-v9.0.0.patch
* cmake-check-system-first.patch
- Bump sover to 3 following upstream changes.
OBS-URL: https://build.opensuse.org/request/show/1061067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=27
2023-01-26 00:23:02 +01:00
|
|
|
%define sover 3
|
2019-05-21 10:21:38 +02:00
|
|
|
Name: zxing-cpp
|
Accepting request 1061067 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.0.0:
* Switch to UTF8 based API and remove deprecated UTF16 one
(Result::text())
* Remove all API deprecated in 1.4
* Adding a wrapper for iOS
* New Aztec detector implementation to support arbitrary rotation
and position of the symbol
* Support multi-symbol detection in Aztec detector
* Replace all Qt originated ECI/CharacterSet conversion code with
a new implementation
* Require c++17 to build library and client code
* New DecodeHints::textMode() and Result::text(TextMode) API to
specify how bytes are rendered into text
* HRI (human readable interpretation) is the new default for the
TextMode (has been for most cases before, but not all)
* New DecodeHits::tryInvert() feature to test for inverted
symbols (white on black background)
- Changes from version 1.4.0:
* Note: this is an intermediary release on the way to 2.0. This
code is (supposed to be) API compatible (via the ReadBarcode.h
interface) with v1.3.0 but contains quite a few additional
deprecations. It still has SO number 1, which is as wrong as it
was for release v1.3.0 and it is not ABI compatible with 1.3
either. 2.0 will be basically 1.4 but with all deprecated API
removed and the final fix for #333.
* Reader support for Micro QRCode by @corbers
* Prepared switch from std::wstring based utf16 to std::string
based utf8 results, use new ZX_USE_UTF8 macro to transition to
the upcoming 2.0 API
* Much improved 'binary' data support via new Result::bytes()
API, see #334 for a detailed background discussion.
* New Result::contentType() API returning information about the
type of content (like text vs. binary, etc.)
* Better standards conformance with respect to ECI handling, see
Results::bytesECI()
* Support for proper ECI handling across structured append
symbols (see MergeStructuredAppendResults())
* New Result::error() API with improved error handling, see also
DecodeHints::returnErrors()
* Removed all internal header files from the installed set, so
only the ReadBarcode.h based APIs are supported from here on
out
* Removed all sample images from the 'source' distribution
zip/tar balls (much reduced size)
* Python read_barcode returns None if no symbol was found (might
break existing code if not checked for None before)
- Changes from version 1.3.0:
* Multi-barcode reading with the new std::vector<Result>
ReadBardcodes(...) function. Does not work for Aztec,
DataMatrix and Maxicode, yet.
* Multi-resolution scanning that can automatically downscale the
input to substantially increase the detection rate on high
resolution scans, see DecodeHints::tryDownscale, currently only
enabled in the ReadBardcodes function
* New Result::symbologyIdentifier property
* Updated and improved android wrapper
- Drop patches fixed upstream:
* 269.patch
* 0001-test-update-to-libfmt-v9.0.0.patch
* cmake-check-system-first.patch
- Bump sover to 3 following upstream changes.
OBS-URL: https://build.opensuse.org/request/show/1061067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=27
2023-01-26 00:23:02 +01:00
|
|
|
Version: 2.0.0
|
2019-05-21 10:21:38 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for processing 1D and 2D barcodes
|
|
|
|
License: Apache-2.0 AND Zlib AND LGPL-2.1-with-Qt-Company-Qt-exception-1.1
|
|
|
|
Group: Development/Languages/C and C++
|
2019-05-22 10:04:19 +02:00
|
|
|
URL: https://github.com/nu-book/zxing-cpp/
|
2021-06-30 17:35:36 +02:00
|
|
|
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-10-26 10:45:10 +01:00
|
|
|
Source99: baselibs.conf
|
2023-08-09 19:56:35 +02:00
|
|
|
Patch1: cmake.patch
|
|
|
|
BuildRequires: cmake >= 3.5
|
2023-04-25 11:05:31 +02:00
|
|
|
BuildRequires: pkgconfig
|
2023-08-09 19:56:35 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: gcc7
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%else
|
|
|
|
BuildRequires: gcc >= 7
|
|
|
|
BuildRequires: gcc-c++ >= 7
|
|
|
|
%endif
|
2022-09-20 09:29:23 +02:00
|
|
|
# only TW has fmt
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
# For blackbox tests
|
|
|
|
BuildRequires: cmake(fmt) >= 7.1.2
|
2021-11-04 10:54:43 +01:00
|
|
|
%endif
|
2019-05-21 10:21:38 +02:00
|
|
|
|
|
|
|
%description
|
2019-05-23 14:58:10 +02:00
|
|
|
ZXing ("zebra crossing") is an multi-format 1D/2D barcode image
|
2019-05-21 10:21:38 +02:00
|
|
|
processing library. This package provides a C++ implementation.
|
|
|
|
|
2020-08-19 10:55:31 +02:00
|
|
|
%package -n libZXing%{sover}
|
2019-05-21 10:21:38 +02:00
|
|
|
Summary: Library for processing 1D and 2D barcodes
|
2020-08-19 10:55:31 +02:00
|
|
|
# called libZXing in the 1.1.0 update
|
2020-09-11 13:30:17 +02:00
|
|
|
Group: System/Libraries
|
2020-08-19 10:55:31 +02:00
|
|
|
Provides: libZXingCore%{sover} = %{version}
|
|
|
|
Obsoletes: libZXingCore%{sover} < %{version}
|
2019-05-21 10:21:38 +02:00
|
|
|
|
2020-08-19 10:55:31 +02:00
|
|
|
%description -n libZXing%{sover}
|
2019-05-23 14:58:10 +02:00
|
|
|
ZXing ("zebra crossing") is an multi-format 1D/2D barcode image
|
2019-05-21 10:21:38 +02:00
|
|
|
processing library. This package provides a C++ implementation.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for zxing, a library for processing 1D and 2D barcodes
|
|
|
|
Group: Development/Languages/C and C++
|
2020-08-19 10:55:31 +02:00
|
|
|
Requires: libZXing%{sover} = %{version}
|
2019-05-21 10:21:38 +02:00
|
|
|
|
|
|
|
%description devel
|
2019-05-23 14:58:10 +02:00
|
|
|
ZXing ("zebra crossing") is an multi-format 1D/2D barcode image
|
2019-05-21 10:21:38 +02:00
|
|
|
processing library. This package provides header files to use ZXing in
|
|
|
|
other applications.
|
|
|
|
|
2020-08-19 10:55:31 +02:00
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2023-08-09 19:56:35 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
export CC="gcc-7"
|
|
|
|
export CXX="g++-7"
|
|
|
|
%endif
|
|
|
|
export CXXFLAGS="-std=c++17"
|
2021-11-05 15:09:27 +01:00
|
|
|
# Examples require QT5-base/multimedia, but doing so creates a cycle
|
2022-09-20 09:29:23 +02:00
|
|
|
# Blackbox tests require fmt
|
2021-11-04 10:54:43 +01:00
|
|
|
%cmake \
|
2021-11-05 15:09:27 +01:00
|
|
|
-DBUILD_EXAMPLES=OFF \
|
2022-09-20 09:29:23 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
-DBUILD_BLACKBOX_TESTS=OFF
|
2021-11-04 10:54:43 +01:00
|
|
|
%endif
|
2022-09-19 18:27:40 +02:00
|
|
|
|
2021-01-18 11:26:28 +01:00
|
|
|
%cmake_build
|
2020-08-19 10:55:31 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2021-06-30 17:35:36 +02:00
|
|
|
%check
|
2022-09-20 09:29:23 +02:00
|
|
|
%if 0%{?sle_version}
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
2022-09-19 18:27:40 +02:00
|
|
|
%endif
|
2022-09-20 09:29:23 +02:00
|
|
|
%ctest
|
2021-06-30 17:35:36 +02:00
|
|
|
|
2023-08-09 19:56:35 +02:00
|
|
|
%post -n libZXing%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libZXing%{sover} -p /sbin/ldconfig
|
2020-08-19 10:55:31 +02:00
|
|
|
|
|
|
|
%files -n libZXing%{sover}
|
|
|
|
%doc README.md
|
Accepting request 1061067 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.0.0:
* Switch to UTF8 based API and remove deprecated UTF16 one
(Result::text())
* Remove all API deprecated in 1.4
* Adding a wrapper for iOS
* New Aztec detector implementation to support arbitrary rotation
and position of the symbol
* Support multi-symbol detection in Aztec detector
* Replace all Qt originated ECI/CharacterSet conversion code with
a new implementation
* Require c++17 to build library and client code
* New DecodeHints::textMode() and Result::text(TextMode) API to
specify how bytes are rendered into text
* HRI (human readable interpretation) is the new default for the
TextMode (has been for most cases before, but not all)
* New DecodeHits::tryInvert() feature to test for inverted
symbols (white on black background)
- Changes from version 1.4.0:
* Note: this is an intermediary release on the way to 2.0. This
code is (supposed to be) API compatible (via the ReadBarcode.h
interface) with v1.3.0 but contains quite a few additional
deprecations. It still has SO number 1, which is as wrong as it
was for release v1.3.0 and it is not ABI compatible with 1.3
either. 2.0 will be basically 1.4 but with all deprecated API
removed and the final fix for #333.
* Reader support for Micro QRCode by @corbers
* Prepared switch from std::wstring based utf16 to std::string
based utf8 results, use new ZX_USE_UTF8 macro to transition to
the upcoming 2.0 API
* Much improved 'binary' data support via new Result::bytes()
API, see #334 for a detailed background discussion.
* New Result::contentType() API returning information about the
type of content (like text vs. binary, etc.)
* Better standards conformance with respect to ECI handling, see
Results::bytesECI()
* Support for proper ECI handling across structured append
symbols (see MergeStructuredAppendResults())
* New Result::error() API with improved error handling, see also
DecodeHints::returnErrors()
* Removed all internal header files from the installed set, so
only the ReadBarcode.h based APIs are supported from here on
out
* Removed all sample images from the 'source' distribution
zip/tar balls (much reduced size)
* Python read_barcode returns None if no symbol was found (might
break existing code if not checked for None before)
- Changes from version 1.3.0:
* Multi-barcode reading with the new std::vector<Result>
ReadBardcodes(...) function. Does not work for Aztec,
DataMatrix and Maxicode, yet.
* Multi-resolution scanning that can automatically downscale the
input to substantially increase the detection rate on high
resolution scans, see DecodeHints::tryDownscale, currently only
enabled in the ReadBardcodes function
* New Result::symbologyIdentifier property
* Updated and improved android wrapper
- Drop patches fixed upstream:
* 269.patch
* 0001-test-update-to-libfmt-v9.0.0.patch
* cmake-check-system-first.patch
- Bump sover to 3 following upstream changes.
OBS-URL: https://build.opensuse.org/request/show/1061067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=27
2023-01-26 00:23:02 +01:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libZXing.so.*
|
2020-08-19 10:55:31 +02:00
|
|
|
|
2019-05-21 10:21:38 +02:00
|
|
|
%files devel
|
Accepting request 1061067 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.0.0:
* Switch to UTF8 based API and remove deprecated UTF16 one
(Result::text())
* Remove all API deprecated in 1.4
* Adding a wrapper for iOS
* New Aztec detector implementation to support arbitrary rotation
and position of the symbol
* Support multi-symbol detection in Aztec detector
* Replace all Qt originated ECI/CharacterSet conversion code with
a new implementation
* Require c++17 to build library and client code
* New DecodeHints::textMode() and Result::text(TextMode) API to
specify how bytes are rendered into text
* HRI (human readable interpretation) is the new default for the
TextMode (has been for most cases before, but not all)
* New DecodeHits::tryInvert() feature to test for inverted
symbols (white on black background)
- Changes from version 1.4.0:
* Note: this is an intermediary release on the way to 2.0. This
code is (supposed to be) API compatible (via the ReadBarcode.h
interface) with v1.3.0 but contains quite a few additional
deprecations. It still has SO number 1, which is as wrong as it
was for release v1.3.0 and it is not ABI compatible with 1.3
either. 2.0 will be basically 1.4 but with all deprecated API
removed and the final fix for #333.
* Reader support for Micro QRCode by @corbers
* Prepared switch from std::wstring based utf16 to std::string
based utf8 results, use new ZX_USE_UTF8 macro to transition to
the upcoming 2.0 API
* Much improved 'binary' data support via new Result::bytes()
API, see #334 for a detailed background discussion.
* New Result::contentType() API returning information about the
type of content (like text vs. binary, etc.)
* Better standards conformance with respect to ECI handling, see
Results::bytesECI()
* Support for proper ECI handling across structured append
symbols (see MergeStructuredAppendResults())
* New Result::error() API with improved error handling, see also
DecodeHints::returnErrors()
* Removed all internal header files from the installed set, so
only the ReadBarcode.h based APIs are supported from here on
out
* Removed all sample images from the 'source' distribution
zip/tar balls (much reduced size)
* Python read_barcode returns None if no symbol was found (might
break existing code if not checked for None before)
- Changes from version 1.3.0:
* Multi-barcode reading with the new std::vector<Result>
ReadBardcodes(...) function. Does not work for Aztec,
DataMatrix and Maxicode, yet.
* Multi-resolution scanning that can automatically downscale the
input to substantially increase the detection rate on high
resolution scans, see DecodeHints::tryDownscale, currently only
enabled in the ReadBardcodes function
* New Result::symbologyIdentifier property
* Updated and improved android wrapper
- Drop patches fixed upstream:
* 269.patch
* 0001-test-update-to-libfmt-v9.0.0.patch
* cmake-check-system-first.patch
- Bump sover to 3 following upstream changes.
OBS-URL: https://build.opensuse.org/request/show/1061067
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=27
2023-01-26 00:23:02 +01:00
|
|
|
%license LICENSE
|
2019-05-21 10:21:38 +02:00
|
|
|
%{_includedir}/ZXing/
|
|
|
|
%{_libdir}/cmake/ZXing/
|
2020-08-19 10:55:31 +02:00
|
|
|
%{_libdir}/libZXing.so
|
|
|
|
%{_libdir}/pkgconfig/zxing.pc
|
2019-05-21 10:21:38 +02:00
|
|
|
|
|
|
|
%changelog
|