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