Группа :: Система/Библиотеки
Пакет: zxing-cpp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: zxing-cpp
Version: 2.1.0
Release: alt1
Summary: C++ port of ZXing
License: Apache-2.0 and LGPL-2.0 with exceptions
Group: System/Libraries
Url: https://github.com/nu-book/zxing-cpp
Packager: Andrey Cherepanov <cas at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): cmake
BuildRequires(pre): rpm-build-ninja
BuildRequires: gcc-c++
BuildRequires: qt5-base-devel
BuildRequires: qt5-declarative-devel
BuildRequires: qt5-multimedia-devel
BuildRequires: libfmt-devel
BuildRequires: libstb-devel
BuildRequires: libopencv-devel
%description
ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode
image processing library implemented in C++. It was originally ported from the
Java ZXing Library but has been developed further and now includes many
improvements in terms of quality and performance. It can both read and write
barcodes in a number of formats.
%package -n lib%name
Summary: C++ port of ZXing
Group: System/Libraries
%description -n lib%name
ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode
image processing library implemented in C++. It was originally ported from the
Java ZXing Library but has been developed further and now includes many
improvements in terms of quality and performance. It can both read and write
barcodes in a number of formats.
%package -n lib%name-devel
Summary: C++ port of ZXing (development files)
Group: Development/C++
%description -n lib%name-devel
Development files for lib%name.
%prep
%setup
%ifarch %e2k
# error #1587: cannot deduce "auto" type
sed -i '/{PointI{0, 1}/s/, {1/, PointI{1/g' core/src/ConcentricFinder.cpp
sed -i '/{PointF{0, 1}/s/, {1/, PointF{1/g' core/src/ConcentricFinder.h
sed -E -i '/std::pair\(tl/s/\{(..), \{/std::pair{\1, PointI{/g' core/src/qrcode/QRDetector.cpp
sed -i '1i #define preferred_separator preferred_separator_zxing' test/blackbox/ZXFilesystem.h
%endif
%build
%cmake -GNinja
%ninja_build -C "%_cmake__builddir"
%install
%ninja_install -C "%_cmake__builddir"
%files -n lib%name
%doc README.md example
%_libdir/libZXing.so.*
%files -n lib%name-devel
%_libdir/libZXing.so
%_includedir/ZXing/
%_libdir/cmake/ZXing/
%_libdir/pkgconfig/zxing.pc
%changelog
…
Полный changelog можно просмотреть здесь
Version: 2.1.0
Release: alt1
Summary: C++ port of ZXing
License: Apache-2.0 and LGPL-2.0 with exceptions
Group: System/Libraries
Url: https://github.com/nu-book/zxing-cpp
Packager: Andrey Cherepanov <cas at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): cmake
BuildRequires(pre): rpm-build-ninja
BuildRequires: gcc-c++
BuildRequires: qt5-base-devel
BuildRequires: qt5-declarative-devel
BuildRequires: qt5-multimedia-devel
BuildRequires: libfmt-devel
BuildRequires: libstb-devel
BuildRequires: libopencv-devel
%description
ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode
image processing library implemented in C++. It was originally ported from the
Java ZXing Library but has been developed further and now includes many
improvements in terms of quality and performance. It can both read and write
barcodes in a number of formats.
%package -n lib%name
Summary: C++ port of ZXing
Group: System/Libraries
%description -n lib%name
ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode
image processing library implemented in C++. It was originally ported from the
Java ZXing Library but has been developed further and now includes many
improvements in terms of quality and performance. It can both read and write
barcodes in a number of formats.
%package -n lib%name-devel
Summary: C++ port of ZXing (development files)
Group: Development/C++
%description -n lib%name-devel
Development files for lib%name.
%prep
%setup
%ifarch %e2k
# error #1587: cannot deduce "auto" type
sed -i '/{PointI{0, 1}/s/, {1/, PointI{1/g' core/src/ConcentricFinder.cpp
sed -i '/{PointF{0, 1}/s/, {1/, PointF{1/g' core/src/ConcentricFinder.h
sed -E -i '/std::pair\(tl/s/\{(..), \{/std::pair{\1, PointI{/g' core/src/qrcode/QRDetector.cpp
sed -i '1i #define preferred_separator preferred_separator_zxing' test/blackbox/ZXFilesystem.h
%endif
%build
%cmake -GNinja
%ninja_build -C "%_cmake__builddir"
%install
%ninja_install -C "%_cmake__builddir"
%files -n lib%name
%doc README.md example
%_libdir/libZXing.so.*
%files -n lib%name-devel
%_libdir/libZXing.so
%_includedir/ZXing/
%_libdir/cmake/ZXing/
%_libdir/pkgconfig/zxing.pc
%changelog
…
Полный changelog можно просмотреть здесь