%global _firewalld_dir %{_prefix}/lib/firewalld Name: et Version: 6.0.11 Release: 2%{?dist} Summary: Remote shell that survives IP roaming and disconnect License: ASL 2.0 URL: https://mistertea.github.io/EternalTerminal/ Source0: https://github.com/MisterTea/EternalTerminal/archive/et-v%{version}.tar.gz Source1: et.xml BuildRequires: boost-devel BuildRequires: cmake3 BuildRequires: firewalld-filesystem %if 0%{?rhel} == 7 BuildRequires: devtoolset-7-toolchain %else BuildRequires: gcc-c++ %endif BuildRequires: gflags-devel BuildRequires: libsodium-devel BuildRequires: libutempter-devel BuildRequires: ncurses-devel BuildRequires: protobuf-compiler %if 0%{?fedora} BuildRequires: protobuf-lite-devel %else BuildRequires: protobuf-devel %endif BuildRequires: systemd %{?systemd_requires} %description Eternal Terminal (ET) is a remote shell that automatically reconnects without interrupting the session. %prep %autosetup -p1 -n EternalTerminal-et-v%{version} %build %if 0%{?rhel} == 7 . /opt/rh/devtoolset-7/enable %cmake3 . -DFULL_PROTOBUF:BOOL=ON %cmake3_build %else %if 0%{?fedora} %cmake . %else %cmake . -DFULL_PROTOBUF:BOOL=ON %endif %cmake_build %endif %install %if 0%{?rhel} == 7 %cmake3_install %else %cmake_install %endif mkdir -p \ %{buildroot}%{_unitdir} \ %{buildroot}%{_sysconfdir} \ %{buildroot}%{_firewalld_dir}/services 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 %check %if 0%{?rhel} == 7 %ctest3 --verbose %else %if 0%{?fedora} %ctest %else %ctest --verbose %endif %endif %post %systemd_post et.service %firewalld_reload %preun %systemd_preun et.service %postun %systemd_postun_with_restart et.service %firewalld_reload %files %license LICENSE %doc README.md %{_bindir}/et %{_bindir}/etserver %{_bindir}/etterminal %{_bindir}/htm %{_bindir}/htmd %dir %{_firewalld_dir} %dir %{_firewalld_dir}/services %{_firewalld_dir}/services/et.xml %config(noreplace) %{_sysconfdir}/et.cfg %{_unitdir}/et.service %changelog * Thu Aug 20 2020 Masaki Furuta - 6.0.11-2 - Rebuild for RHEL7 + SCL * Mon Aug 3 2020 Michel Alexandre Salim - 6.0.11-1 - Update to 6.0.11 - Use the new option to specify linking against the full protobuf on EPEL - Adjust for cmake macro changes * Tue Mar 3 2020 Michel Alexandre Salim - 6.0.7-1 - Update to 6.0.7 * Tue Feb 18 2020 Michel Alexandre Salim - 6.0.6-1 - Update to 6.0.6 * Sun Feb 2 2020 Michel Alexandre Salim - 6.0.5-1 - Initial build for EPEL 8