File veracrypt.spec of Package veracrypt
#
# spec file for package veracrypt
#
# Copyright (c) 2022 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/
#
Name: veracrypt
Version: 1.25.9
Release: 0
Summary: Free disk encryption software based on TrueCrypt
License: Apache-2.0
Group: Productivity/Security
URL: https://www.%{name}.fr
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: sed
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-devel < 3.1
BuildRequires: wxWidgets-devel >= 3.0
BuildRequires: pkgconfig(fuse)
%ifarch %{ix86} x86_64
BuildRequires: yasm
%else
BuildRequires: nasm
%endif
%description
VeraCrypt is software for establishing and maintaining an
on-the-fly-encrypted volume (data storage device).
On-the-fly encryption means that data is automatically encrypted
right before it is saved and decrypted right after it is loaded,
without any user intervention. No data stored on an encrypted
volume can be read (decrypted) without using the correct
password/keyfile(s) or correct encryption keys. Entire file system
is encrypted (e.g., file names, folder names, contents of every
file, free space, meta data, etc).
It is based on original TrueCrypt 7.1a with security enhancements
and modifications.
%prep
%setup -q -c
%build
#force downgrade to c++11, because c++17 introduced the new type std::byte, that is now colliding
# with a typedef in the source-code.
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS -std=c++11"
export TC_EXTRA_CXXFLAGS="$CXXFLAGS"
export TC_EXTRA_CFLAGS="$CFLAGS"
make -C src %{?_smp_mflags}
%install
install -D -m 0755 src/Main/veracrypt "%{buildroot}/%{_bindir}/veracrypt"
install -D -m 0644 src/Setup/Linux/%{name}.desktop "%{buildroot}%{_datadir}/applications/%{name}.desktop"
install -D -m 0644 src/Resources/Icons/VeraCrypt-256x256.xpm "%{buildroot}%{_datadir}/pixmaps/veracrypt.xpm"
%suse_update_desktop_file -r -i veracrypt System Security
%files
%{_bindir}/veracrypt
%license License.txt
%doc doc/EFI-DCS/*.pdf
%{_datadir}/applications/veracrypt.desktop
%{_datadir}/pixmaps/veracrypt.xpm
%changelog