]>
Commit | Line | Data |
---|---|---|
0e141888 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without verbose # verbose build (V=1) | |
4 | ||
37060d63 | 5 | %include /usr/lib/rpm/macros.perl |
dc576455 CM |
6 | Summary: Mosh mobile shell |
7 | Name: mosh | |
ec1247c8 ER |
8 | Version: 1.2 |
9 | Release: 1 | |
dc576455 CM |
10 | License: GPL v3+ |
11 | Group: X11/Applications | |
12 | Source0: https://github.com/downloads/keithw/mosh/%{name}-%{version}.tar.gz | |
ec1247c8 | 13 | # Source0-md5: 2822792d362cc1539278ca3d3afb279a |
dc576455 | 14 | URL: http://mosh.mit.edu/ |
dc576455 CM |
15 | BuildRequires: libutempter-devel |
16 | BuildRequires: ncurses-devel | |
ab99cc95 | 17 | BuildRequires: protobuf |
dc576455 | 18 | BuildRequires: protobuf-devel |
37060d63 ER |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildRequires: sed >= 4.0 | |
dc576455 | 21 | BuildRequires: zlib-devel |
dc576455 CM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Remote terminal application that allows roaming, supports intermittent | |
26 | connectivity, and provides intelligent local echo and line editing of | |
27 | user keystrokes. | |
28 | ||
29 | Mosh is a replacement for SSH. It's more robust and responsive, | |
30 | especially over Wi-Fi, cellular, and long-distance links. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
37060d63 | 34 | %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh |
dc576455 CM |
35 | |
36 | %build | |
37 | %configure \ | |
349c173b | 38 | --enable-compile-warnings=error \ |
dc576455 | 39 | CPPFLAGS="-I/usr/include/ncurses" |
0e141888 ER |
40 | %{__make} \ |
41 | %{?with_verbose:V=1} | |
dc576455 CM |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
dc576455 CM |
45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc AUTHORS ChangeLog NEWS THANKS | |
dc576455 CM |
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* |