]>
Commit | Line | Data |
---|---|---|
f21832d3 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with agent # with ssh agent forwarding patch | |
0e141888 | 4 | |
70b080ee | 5 | %define protobuf_ver 2.6.1 |
37060d63 | 6 | %include /usr/lib/rpm/macros.perl |
dc576455 CM |
7 | Summary: Mosh mobile shell |
8 | Name: mosh | |
f3ee534b | 9 | Version: 1.3.0 |
fab8360c | 10 | Release: 2 |
dc576455 | 11 | License: GPL v3+ |
f3ee534b ER |
12 | Group: Applications/Networking |
13 | Source0: https://mosh.org/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: d961276995936953bf2d5a794068b076 | |
501df8d1 ER |
15 | Patch0: https://github.com/keithw/mosh/pull/583.patch |
16 | # Patch0-md5: 7eb14665ef06072591e5bcd80780c0e4 | |
f3ee534b | 17 | URL: https://mosh.org/ |
d0fa432e ER |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
b0706f31 | 20 | BuildRequires: binutils >= 2.20.51.0.2 |
246f59c7 | 21 | BuildRequires: libstdc++-devel >= 5:4.0 |
d0fa432e | 22 | BuildRequires: libtool |
dc576455 CM |
23 | BuildRequires: libutempter-devel |
24 | BuildRequires: ncurses-devel | |
a81725ba | 25 | BuildRequires: openssl-devel |
d0fa432e | 26 | BuildRequires: patchutils |
29b73dfa | 27 | BuildRequires: perl-base >= 1:5.14 |
23ab9f92 | 28 | BuildRequires: pkgconfig |
70b080ee ER |
29 | BuildRequires: protobuf >= %{protobuf_ver} |
30 | BuildRequires: protobuf-devel >= %{protobuf_ver} | |
37060d63 ER |
31 | BuildRequires: rpm-perlprov >= 4.1-13 |
32 | BuildRequires: sed >= 4.0 | |
dc576455 | 33 | BuildRequires: zlib-devel |
70b080ee | 34 | Requires: protobuf-libs >= %{protobuf_ver} |
dc576455 CM |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
9eaea372 ER |
37 | # PLD stack protector flags are weaker than upstream, filter them out |
38 | # https://github.com/keithw/mosh/issues/203 | |
7bc19f9c | 39 | %define _ssp_cflags %{nil} |
9eaea372 | 40 | |
501df8d1 ER |
41 | %define specflags -Wno-error=non-virtual-dtor |
42 | ||
dc576455 CM |
43 | %description |
44 | Remote terminal application that allows roaming, supports intermittent | |
45 | connectivity, and provides intelligent local echo and line editing of | |
46 | user keystrokes. | |
47 | ||
48 | Mosh is a replacement for SSH. It's more robust and responsive, | |
49 | especially over Wi-Fi, cellular, and long-distance links. | |
50 | ||
51 | %prep | |
ab267134 | 52 | %setup -q |
f21832d3 | 53 | %if %{with agent} |
501df8d1 | 54 | %patch0 -p1 |
f21832d3 ER |
55 | %endif |
56 | %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh.pl | |
dc576455 CM |
57 | |
58 | %build | |
d0fa432e ER |
59 | %{__libtoolize} |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
f21832d3 | 62 | %{__autoheader} |
d0fa432e | 63 | %{__automake} |
dc576455 | 64 | %configure \ |
c5194fa9 ER |
65 | --disable-silent-rules \ |
66 | --enable-compile-warnings=error | |
67 | %{__make} | |
dc576455 CM |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
dc576455 CM |
71 | %{__make} install \ |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog NEWS THANKS | |
dc576455 CM |
80 | %attr(755,root,root) %{_bindir}/%{name} |
81 | %attr(755,root,root) %{_bindir}/%{name}-client | |
82 | %attr(755,root,root) %{_bindir}/%{name}-server | |
83 | %{_mandir}/man1/%{name}.1* | |
84 | %{_mandir}/man1/%{name}-client.1* | |
85 | %{_mandir}/man1/%{name}-server.1* |