File signalbackup-tools.spec of Package signalbackup-tools

#
# spec file for package osmfilter
#
# Copyright (c) 2023 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:           signalbackup-tools
Version:        20250522
Release:        0
Summary:        Tool to work with backup of the Signal android application
License:        GPL-3.0
URL:            https://github.com/bepaald/signalbackup-tools
Source:         https://github.com/bepaald/signalbackup-tools/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake >= 3.28
BuildRequires:  dbus-1-devel
%if 0%{?suse_version} > 1600
BuildRequires:  gcc-c++
%else
BuildRequires:  gcc13-c++
%endif
BuildRequires:  libopenssl-3-devel
BuildRequires:  pkg-config
BuildRequires:  sqlite3-devel
BuildRequires:  unzip
Requires:       dbus-1

%description
Tool to work with backup files generated by the Signal android application. The tool is provided as-is, there may be bugs. The tool is not affiliated with or endorsed by the Signal Foundation.

%prep
%setup

%build
%if 0%{?sle_version} == 150600 && 0%{?is_opensuse}
export CXX=/usr/bin/g++-13
%endif

%cmake
%cmake_build

%install
mkdir -p ${RPM_BUILD_ROOT}%_bindir/
install %_builddir/%{name}-%{version}/build/%{name} ${RPM_BUILD_ROOT}%_bindir/

%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%attr(0755,root,root) %_bindir/%{name}

%changelog
openSUSE Build Service is sponsored by