SHA256
1
0
forked from pool/qrtool
Files
qrtool/qrtool.spec
Muhammad Akbar Yanuar Mantari 11b85a6164 Accepting request 1191751 from home:mantarimay:branches:X11:Utilities
- Update to version 0.11.4
  * Read only the first 7,090 bytes of the input data when encoding
  * Predict input SVG image based on file contents instead of
    filename extension
  * Reduce size of ANSI escaped string

OBS-URL: https://build.opensuse.org/request/show/1191751
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/qrtool?expand=0&rev=12
2024-08-05 18:37:16 +00:00

61 lines
1.6 KiB
RPMSpec

#
# spec file for package qrtool
#
# Copyright (c) 2024 mantarimay
#
# 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/
#
%ifarch s390x
%bcond_with test
%else
%bcond_without test
%endif
Name: qrtool
Version: 0.11.4
Release: 0
Summary: An utility for encoding or decoding QR code
License: MIT AND CC-BY-4.0 AND Apache-2.0
Group: Productivity/Graphics/Visualization/Other
URL: https://github.com/sorairolake/qrtool
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: rubygem(asciidoctor)
%description
qrtool is a command-line utility for encoding or decoding QR code.
%prep
%autosetup -a1 -p1
%build
%{cargo_build}
%install
install -Dm755 target/release/%{name} -t %{buildroot}%{_bindir}
install -Dm644 target/release/build/qrtool*/out/*.? -t %{buildroot}%{_mandir}/man1
%if %{with test}
%check
%{cargo_test}
%endif
%files
%license LICENSE*
%doc README* CHANGELOG.adoc
%{_bindir}/%{name}
%{_mandir}/man1/qrtool*
%changelog