summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <michel@michel-slm.name>2018-08-09 21:34:01 -0700
committerMichel Alexandre Salim <michel@michel-slm.name>2018-08-09 21:34:01 -0700
commit80aac1c50a1c299427df10c9f8f607dc3a0eeb1e (patch)
tree2ec9287c305e4469321b4e8c112d5fc110d8fd2d
parent132cbe6731cd6d7eb25867e44734c0eea1467e73 (diff)
downloadspecs-80aac1c50a1c299427df10c9f8f607dc3a0eeb1e.tar.gz
specs-80aac1c50a1c299427df10c9f8f607dc3a0eeb1e.tar.xz
specs-80aac1c50a1c299427df10c9f8f607dc3a0eeb1e.zip
devtools/et.spec - Eternal Terminal
-rw-r--r--devtools/et.spec83
1 files changed, 83 insertions, 0 deletions
diff --git a/devtools/et.spec b/devtools/et.spec
new file mode 100644
index 0000000..df988a3
--- /dev/null
+++ b/devtools/et.spec
@@ -0,0 +1,83 @@
+%global _firewalld_dir %{_prefix}/lib/firewalld
+
+Name: et
+Version: 5.0.7
+Release: 1%{?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: cmake
+BuildRequires: firewalld-filesystem
+BuildRequires: gflags-devel
+BuildRequires: libsodium-devel
+BuildRequires: libutempter-devel
+BuildRequires: ncurses-devel
+BuildRequires: protobuf-compiler
+BuildRequires: protobuf-devel
+BuildRequires: systemd
+
+%{?systemd_requires}
+
+%description
+Eternal Terminal (ET) is a remote shell that automatically reconnects without
+interrupting the session.
+
+
+%prep
+%autosetup -n EternalTerminal-et-v%{version}
+
+
+%build
+%cmake .
+%make_build
+
+
+%install
+%make_install
+mkdir -p \
+ %{buildroot}%{_unitdir} \
+ %{buildroot}%{_sysconfdir} \
+ %{buildroot}%{_firewalld_dir}/services
+install -m 0644 -p debian/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
+ctest -V %{?_smp_mflags}
+
+
+%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}/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 9 2018 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.0.7-1%{?dist}
+- Initial package