3 %bcond_without verbose # verbose build (V=1)
5 %include /usr/lib/rpm/macros.perl
6 Summary: Mosh mobile shell
11 Group: X11/Applications
12 Source0: https://github.com/downloads/keithw/mosh/%{name}-%{version}.tar.gz
13 # Source0-md5: 7ed5b857307685794dcd120afe5bdf52
14 URL: http://mosh.mit.edu/
15 BuildRequires: libutempter-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: protobuf
18 BuildRequires: protobuf-devel
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: sed >= 4.0
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Remote terminal application that allows roaming, supports intermittent
26 connectivity, and provides intelligent local echo and line editing of
29 Mosh is a replacement for SSH. It's more robust and responsive,
30 especially over Wi-Fi, cellular, and long-distance links.
34 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh
38 --enable-compile-warnings=error \
39 CPPFLAGS="-I/usr/include/ncurses"
44 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc AUTHORS ChangeLog NEWS THANKS
54 %attr(755,root,root) %{_bindir}/%{name}
55 %attr(755,root,root) %{_bindir}/%{name}-client
56 %attr(755,root,root) %{_bindir}/%{name}-server
57 %{_mandir}/man1/%{name}.1*
58 %{_mandir}/man1/%{name}-client.1*
59 %{_mandir}/man1/%{name}-server.1*