File veracrypt.spec of Package veracrypt

Name:           veracrypt
Version:        1.26.24
Release:        1
Summary:        Disk encryption with strong security based on TrueCrypt
License:        Apache-2.0 and TrueCrypt-3.0
URL:            https://www.veracrypt.fr
Source0:        https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_%{version}/VeraCrypt_%{version}_Source.tar.bz2
Source1:        https://github.com/veracrypt/VeraCrypt/releases/download/VeraCrypt_%{version}/VeraCrypt_%{version}_Source.tar.bz2.sig
BuildRequires:  gcc-c++
BuildRequires:  pcsc-lite-devel
BuildRequires:  wxWidgets-devel < 3.3
BuildRequires:  wxWidgets-devel >= 3.0
BuildRequires:  libayatana-appindicator3-devel
BuildRequires:  pkgconfig(fuse)
BuildRequires:  yasm

# required because of build of vscodium in the same repo that also provides libvulkan
%if 0%{?fedora}
BuildRequires:  vulkan-loader
%endif

%description
Disk encryption with strong security based on TrueCrypt

%global debug_package %{nil}

%prep
%autosetup -c

%build
%make_build -C src NOSTRIP=1 VERBOSE=1

%install
install -D -m 0755 src/Main/veracrypt "%{buildroot}/%{_bindir}/veracrypt"
install -D -m 0755 -t %{buildroot}%{_sbindir} src/Setup/Linux/mount.veracrypt
install -D -m 0644 -t %{buildroot}%{_datadir}/veracrypt/languages Translations/*.xml
install -D -m 0644 -t %{buildroot}%{_datadir}/mime/packages src/Setup/Linux/veracrypt.xml
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"
 
%files
#TODO license
%{_bindir}/veracrypt
%{_sbindir}/mount.veracrypt
%dir %{_datadir}/veracrypt
%{_datadir}/mime/packages/veracrypt.xml
%{_datadir}/applications/veracrypt.desktop
%{_datadir}/pixmaps/veracrypt.xpm
%dir %{_datadir}/veracrypt/languages
%{_datadir}/veracrypt/languages/*.xml

%changelog
openSUSE Build Service is sponsored by