File stenc.spec of Package stenc

#
# spec file for package stenc
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


%if 0%{?sle_version} && 0%{?sle_version} < 160000
%define force_gcc_version 10
%endif
Name:           stenc
Version:        2.0.0
Release:        0
Summary:        SCSI Tape Encryption Manager
License:        GPL-2.0-or-later
URL:            https://github.com/scsitape/%{name}
Source0:        https://github.com/scsitape/stenc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  automake
BuildRequires:  gcc%{?force_gcc_version}-c++
BuildRequires:  gcc%{?force_gcc_version}-PIE
BuildRequires:  pandoc
BuildRequires:  pkgconfig(bash-completion)

%description
SCSI Tape Encryption Manager - Manages encryption on LTO tape drives
(starting with generation 4) with hardware-based encryption. Program
should work on any other SCSI security protocol (SSP) capable tape drives.
Supports key change auditing and key descriptors (uKAD).

%prep
%autosetup

%build
%if 0%{?force_gcc_version}
export CXX="g++-%{?force_gcc_version}"
%endif
./autogen.sh
%configure
%make_build

%check
%make_build check

%install
%make_install

%files
%license LICENSES/GPL-2.0-or-later.txt
%doc README.md AUTHORS.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/bash-completion/completions/stenc

%changelog
openSUSE Build Service is sponsored by