]>
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 | 7 | Summary: Mosh mobile shell |
c0744186 | 8 | Summary(pl.UTF-8): Mosh - przenośna powłoka |
dc576455 | 9 | Name: mosh |
dbc1e53a | 10 | Version: 1.3.2 |
4524ddac | 11 | Release: 3 |
dc576455 | 12 | License: GPL v3+ |
f3ee534b ER |
13 | Group: Applications/Networking |
14 | Source0: https://mosh.org/%{name}-%{version}.tar.gz | |
dbc1e53a | 15 | # Source0-md5: 5122f4d2b973ab7c38dcdac8c35cb61e |
501df8d1 | 16 | Patch0: https://github.com/keithw/mosh/pull/583.patch |
c0744186 | 17 | Patch1: %{name}-Werror.patch |
501df8d1 | 18 | # Patch0-md5: 7eb14665ef06072591e5bcd80780c0e4 |
f3ee534b | 19 | URL: https://mosh.org/ |
c0744186 | 20 | BuildRequires: autoconf >= 2.61 |
d0fa432e | 21 | BuildRequires: automake |
b0706f31 | 22 | BuildRequires: binutils >= 2.20.51.0.2 |
246f59c7 | 23 | BuildRequires: libstdc++-devel >= 5:4.0 |
d0fa432e | 24 | BuildRequires: libtool |
dc576455 CM |
25 | BuildRequires: libutempter-devel |
26 | BuildRequires: ncurses-devel | |
a81725ba | 27 | BuildRequires: openssl-devel |
d0fa432e | 28 | BuildRequires: patchutils |
29b73dfa | 29 | BuildRequires: perl-base >= 1:5.14 |
23ab9f92 | 30 | BuildRequires: pkgconfig |
70b080ee ER |
31 | BuildRequires: protobuf >= %{protobuf_ver} |
32 | BuildRequires: protobuf-devel >= %{protobuf_ver} | |
37060d63 ER |
33 | BuildRequires: rpm-perlprov >= 4.1-13 |
34 | BuildRequires: sed >= 4.0 | |
dc576455 | 35 | BuildRequires: zlib-devel |
70b080ee | 36 | Requires: protobuf-libs >= %{protobuf_ver} |
dc576455 CM |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
9eaea372 ER |
39 | # PLD stack protector flags are weaker than upstream, filter them out |
40 | # https://github.com/keithw/mosh/issues/203 | |
7bc19f9c | 41 | %define _ssp_cflags %{nil} |
9eaea372 | 42 | |
501df8d1 ER |
43 | %define specflags -Wno-error=non-virtual-dtor |
44 | ||
dc576455 CM |
45 | %description |
46 | Remote terminal application that allows roaming, supports intermittent | |
47 | connectivity, and provides intelligent local echo and line editing of | |
48 | user keystrokes. | |
49 | ||
50 | Mosh is a replacement for SSH. It's more robust and responsive, | |
51 | especially over Wi-Fi, cellular, and long-distance links. | |
52 | ||
c0744186 JB |
53 | %description -l pl.UTF-8 |
54 | Zdalna aplikacja terminala, pozwalająca na przemieszczanie, | |
55 | obsługująca przerywaną łączność i zapewniająca inteligentne lokalne | |
56 | echo oraz edycję linii. | |
57 | ||
58 | Mosh to zamiennik SSH. Jest potężniejszy i responsywny, w | |
59 | szczególności po połączeniach Wi-Fi, komórkowych i długodystansowych. | |
60 | ||
dc576455 | 61 | %prep |
ab267134 | 62 | %setup -q |
f21832d3 | 63 | %if %{with agent} |
501df8d1 | 64 | %patch0 -p1 |
f21832d3 | 65 | %endif |
c0744186 | 66 | %patch1 -p1 |
f21832d3 | 67 | %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh.pl |
dc576455 CM |
68 | |
69 | %build | |
d0fa432e | 70 | %{__libtoolize} |
c0744186 | 71 | %{__aclocal} -I m4 |
d0fa432e | 72 | %{__autoconf} |
f21832d3 | 73 | %{__autoheader} |
d0fa432e | 74 | %{__automake} |
dc576455 | 75 | %configure \ |
c5194fa9 ER |
76 | --disable-silent-rules \ |
77 | --enable-compile-warnings=error | |
78 | %{__make} | |
dc576455 CM |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
dc576455 CM |
82 | %{__make} install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS ChangeLog NEWS THANKS | |
dc576455 CM |
91 | %attr(755,root,root) %{_bindir}/%{name} |
92 | %attr(755,root,root) %{_bindir}/%{name}-client | |
93 | %attr(755,root,root) %{_bindir}/%{name}-server | |
94 | %{_mandir}/man1/%{name}.1* | |
95 | %{_mandir}/man1/%{name}-client.1* | |
96 | %{_mandir}/man1/%{name}-server.1* |