File lc2go.spec of Package lc2go

#
# spec file for package lc2go
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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:           lc2go
Version:        4.0.0
Release:        0
Summary:        LAN Crypt 2Go - secures files with a password
License:        NonFree
Group:          Productivity/Security
URL:            https://www.conpal.de/en/2go/
Source0:        https://www.conpal.de/wp-content/themes/Avada-Child-Theme/conpal/download-secure.php?file=lc2go.deb#/lc2go.deb
Source1:        https://www.conpal.de/wp-content/uploads/2022/12/conpal_Windows_LAN_Crypt_2Go_EN.pdf
BuildRequires:  binutils
BuildRequires:  help2man
BuildRequires:  hicolor-icon-theme
#help2man: runtime requires for the lancrypt binary
BuildRequires:  libsecret-devel
#bundled libs
Provides:       bundled(efsw)
Provides:       bundled(Sqlite)
Provides:       bundled(Threadpool)
Provides:       bundled(Botan)
Provides:       bundled(UTF-CPP)
Provides:       bundled(Boost)
Provides:       bundled(Log4cplus)
Provides:       bundled(wxWindows)
ExclusiveArch:  x86_64

%description
Encrypts/Decrypts a file symmetrically (password based) and optionally
manages keys derived from passwords.

%prep
%setup -q -T -c %{name}-%{version}
ar x %{SOURCE0}
tar xxvf data.tar.gz
cp %{SOURCE1} .

%build

%install
install -D -m 0755 usr/bin/lancrypt %{buildroot}%{_bindir}/lancrypt
install -D -m 0755 usr/bin/lancryptui %{buildroot}%{_bindir}/lancryptui
install -D -m 0644 usr/share/icons/hicolor/scalable/mimetypes/application-lc2go-encrypted.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-lc2go-encrypted.svg
install -D -m 0644 usr/share/mime/packages/lc2go-mime.xml %{buildroot}%{_datadir}/mime/packages/lc2go-mime.xml
install -D -m 0644 usr/share/applications/de.conpal.lc2go.desktop %{buildroot}%{_datadir}/applications/de.conpal.lc2go.desktop
install -d %{buildroot}%{_datadir}/%{name}
mv usr/share/lc2go/*.png %{buildroot}%{_datadir}/%{name}
# create manpage via help2man
install -d %{buildroot}%{_mandir}/man1/
export LANG=C
help2man %{buildroot}%{_bindir}/lancrypt --no-discard-stderr --no-info > %{buildroot}%{_mandir}/man1/lancrypt.1

%files
%license usr/share/doc/lc2go/{License.txt,EULA_de-DE.pdf,EULA_en-US.pdf}
%doc conpal_Windows_LAN_Crypt_2Go_EN.pdf
%{_bindir}/lancrypt
%{_bindir}/lancryptui
%{_datadir}/lc2go
%{_datadir}/mime/packages/lc2go-mime.xml
%{_datadir}/applications/de.conpal.lc2go.desktop
%{_datadir}/icons/hicolor/scalable/mimetypes/application-lc2go-encrypted.svg
%{_mandir}/man1/lancrypt.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by