File veracrypt.spec of Package veracrypt

#
# spec file for package veracrypt
#
# Copyright (c) 2025 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.26.24
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:  pcsc-lite-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  wxWidgets-devel
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

%build
%make_build -C src

%install
install -D -m 0755 src/Main/veracrypt "%{buildroot}/%{_bindir}/%{name}"
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/%{name}.xpm"
%suse_update_desktop_file -r -i %{name} System Security

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%license License.txt
%doc README.md doc/EFI-DCS/*.pdf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

%changelog
openSUSE Build Service is sponsored by