]> git.pld-linux.org Git - packages/mosh.git/blame - mosh.spec
Up to 1.4.0
[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
dc576455 6Summary: Mosh mobile shell
c0744186 7Summary(pl.UTF-8): Mosh - przenośna powłoka
dc576455 8Name: mosh
06c33a55
ER
9Version: 1.4.0
10Release: 1
dc576455 11License: GPL v3+
f3ee534b
ER
12Group: Applications/Networking
13Source0: https://mosh.org/%{name}-%{version}.tar.gz
06c33a55 14# Source0-md5: c34a647f8545565d79188acacaea7559
501df8d1
ER
15Patch0: https://github.com/keithw/mosh/pull/583.patch
16# Patch0-md5: 7eb14665ef06072591e5bcd80780c0e4
06c33a55 17Patch1: %{name}-Werror.patch
98d03f89 18Patch2: %{name}-gcc8.patch
f3ee534b 19URL: https://mosh.org/
c0744186 20BuildRequires: autoconf >= 2.61
d0fa432e 21BuildRequires: automake
b0706f31 22BuildRequires: binutils >= 2.20.51.0.2
246f59c7 23BuildRequires: libstdc++-devel >= 5:4.0
d0fa432e 24BuildRequires: libtool
dc576455
CM
25BuildRequires: libutempter-devel
26BuildRequires: ncurses-devel
a81725ba 27BuildRequires: openssl-devel
d0fa432e 28BuildRequires: patchutils
29b73dfa 29BuildRequires: perl-base >= 1:5.14
23ab9f92 30BuildRequires: pkgconfig
70b080ee
ER
31BuildRequires: protobuf >= %{protobuf_ver}
32BuildRequires: protobuf-devel >= %{protobuf_ver}
37060d63
ER
33BuildRequires: rpm-perlprov >= 4.1-13
34BuildRequires: sed >= 4.0
dc576455 35BuildRequires: zlib-devel
70b080ee 36Requires: protobuf-libs >= %{protobuf_ver}
dc576455
CM
37BuildRoot: %{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
46Remote terminal application that allows roaming, supports intermittent
47connectivity, and provides intelligent local echo and line editing of
48user keystrokes.
49
50Mosh is a replacement for SSH. It's more robust and responsive,
51especially over Wi-Fi, cellular, and long-distance links.
52
c0744186
JB
53%description -l pl.UTF-8
54Zdalna aplikacja terminala, pozwalająca na przemieszczanie,
55obsługująca przerywaną łączność i zapewniająca inteligentne lokalne
56echo oraz edycję linii.
57
58Mosh to zamiennik SSH. Jest potężniejszy i responsywny, w
59szczegó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
98d03f89 67%patch2 -p1
f21832d3 68%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh.pl
dc576455
CM
69
70%build
d0fa432e 71%{__libtoolize}
c0744186 72%{__aclocal} -I m4
d0fa432e 73%{__autoconf}
f21832d3 74%{__autoheader}
d0fa432e 75%{__automake}
dc576455 76%configure \
c5194fa9
ER
77 --disable-silent-rules \
78 --enable-compile-warnings=error
79%{__make}
dc576455
CM
80
81%install
82rm -rf $RPM_BUILD_ROOT
a88f0eb9 83
dc576455
CM
84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
90%files
91%defattr(644,root,root,755)
92%doc AUTHORS ChangeLog NEWS THANKS
dc576455
CM
93%attr(755,root,root) %{_bindir}/%{name}
94%attr(755,root,root) %{_bindir}/%{name}-client
95%attr(755,root,root) %{_bindir}/%{name}-server
96%{_mandir}/man1/%{name}.1*
97%{_mandir}/man1/%{name}-client.1*
98%{_mandir}/man1/%{name}-server.1*
This page took 0.466409 seconds and 4 git commands to generate.