]> git.pld-linux.org Git - packages/mosh.git/blame - mosh.spec
- rebuild with protobuf 3.2
[packages/mosh.git] / mosh.spec
CommitLineData
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
7Summary: Mosh mobile shell
8Name: mosh
f3ee534b 9Version: 1.3.0
fab8360c 10Release: 2
dc576455 11License: GPL v3+
f3ee534b
ER
12Group: Applications/Networking
13Source0: https://mosh.org/%{name}-%{version}.tar.gz
14# Source0-md5: d961276995936953bf2d5a794068b076
501df8d1
ER
15Patch0: https://github.com/keithw/mosh/pull/583.patch
16# Patch0-md5: 7eb14665ef06072591e5bcd80780c0e4
f3ee534b 17URL: https://mosh.org/
d0fa432e
ER
18BuildRequires: autoconf
19BuildRequires: automake
b0706f31 20BuildRequires: binutils >= 2.20.51.0.2
246f59c7 21BuildRequires: libstdc++-devel >= 5:4.0
d0fa432e 22BuildRequires: libtool
dc576455
CM
23BuildRequires: libutempter-devel
24BuildRequires: ncurses-devel
a81725ba 25BuildRequires: openssl-devel
d0fa432e 26BuildRequires: patchutils
29b73dfa 27BuildRequires: perl-base >= 1:5.14
23ab9f92 28BuildRequires: pkgconfig
70b080ee
ER
29BuildRequires: protobuf >= %{protobuf_ver}
30BuildRequires: protobuf-devel >= %{protobuf_ver}
37060d63
ER
31BuildRequires: rpm-perlprov >= 4.1-13
32BuildRequires: sed >= 4.0
dc576455 33BuildRequires: zlib-devel
70b080ee 34Requires: protobuf-libs >= %{protobuf_ver}
dc576455
CM
35BuildRoot: %{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
44Remote terminal application that allows roaming, supports intermittent
45connectivity, and provides intelligent local echo and line editing of
46user keystrokes.
47
48Mosh is a replacement for SSH. It's more robust and responsive,
49especially 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
70rm -rf $RPM_BUILD_ROOT
dc576455
CM
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -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*
This page took 0.067942 seconds and 4 git commands to generate.