File EternalTerminal.spec of Package EternalTerminal

# spec file for package EternalTerminal
# Copyright (c) 2021 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

%global _firewalld_dir %{_prefix}/lib/firewalld
Name:           EternalTerminal
Version:        6.1.7
Release:        0
Summary:        Remote shell that survives IP roaming and disconnect
License:        Apache-2.0
Source1:        et.xml
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  curl-devel
BuildRequires:  firewall-macros
BuildRequires:  firewalld
BuildRequires:  gcc-c++
BuildRequires:  gflags-devel
BuildRequires:  libopenssl-1_1-devel
BuildRequires:  libsodium-devel
BuildRequires:  ncurses-devel
BuildRequires:  ninja
BuildRequires:  pkgconfig
BuildRequires:  protobuf-devel
BuildRequires:  utempter-devel
BuildRequires:  pkgconfig(systemd)

Eternal Terminal (ET) is a remote shell that automatically reconnects without
interrupting the session.

%autosetup -n EternalTerminal-et-v%{version}

# see
%cmake -DDISABLE_VCPKG:BOOL=ON -DProtobuf_LITE_LIBRARY=%{_libdir}/
make %{?_smp_mflags}


mkdir -p \
  %{buildroot}%{_unitdir} \
  %{buildroot}%{_sysconfdir} \
install -m 0644 -p systemctl/et.service %{buildroot}%{_unitdir}/et.service
install -m 0644 -p etc/et.cfg %{buildroot}%{_sysconfdir}/et.cfg
install -m 0644 %{SOURCE1} %{buildroot}%{_firewalld_dir}/services/et.xml

%service_add_pre et.service

%service_add_post et.service

%service_del_preun et.service

%service_del_postun et.service

%license LICENSE
%dir %{_firewalld_dir}
%dir %{_firewalld_dir}/services
%config(noreplace) %{_sysconfdir}/et.cfg

openSUSE Build Service is sponsored by