1 %include /usr/lib/rpm/macros.perl
2 Summary: Mosh mobile shell
7 Group: X11/Applications
8 Source0: https://github.com/downloads/keithw/mosh/%{name}-%{version}.tar.gz
9 # Source0-md5: de507695b6f67523bc81596f97220a9a
10 URL: http://mosh.mit.edu/
11 BuildRequires: boost-devel
12 BuildRequires: libutempter-devel
13 BuildRequires: ncurses-devel
14 BuildRequires: protobuf
15 BuildRequires: protobuf-devel
16 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRequires: sed >= 4.0
18 BuildRequires: zlib-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Remote terminal application that allows roaming, supports intermittent
23 connectivity, and provides intelligent local echo and line editing of
26 Mosh is a replacement for SSH. It's more robust and responsive,
27 especially over Wi-Fi, cellular, and long-distance links.
31 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh
35 CPPFLAGS="-I/usr/include/ncurses"
39 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc AUTHORS ChangeLog NEWS THANKS
49 %attr(755,root,root) %{_bindir}/%{name}
50 %attr(755,root,root) %{_bindir}/%{name}-client
51 %attr(755,root,root) %{_bindir}/%{name}-server
52 %{_mandir}/man1/%{name}.1*
53 %{_mandir}/man1/%{name}-client.1*
54 %{_mandir}/man1/%{name}-server.1*