]> git.pld-linux.org Git - packages/mosh.git/blame - mosh.spec
update md5 (upstream changed it?)
[packages/mosh.git] / mosh.spec
CommitLineData
f21832d3
ER
1#
2# Conditional build:
3%bcond_with agent # with ssh agent forwarding patch
0e141888 4
c5194fa9 5# force gcc4 for ac
b0706f31
ER
6%if "%{pld_release}" == "ac"
7# add suffix, but allow ccache, etc in ~/.rpmmacros
8%{expand:%%define __cc %(echo '%__cc' | sed -e 's,-gcc,-gcc4,')}
9%{expand:%%define __cxx %(echo '%__cxx' | sed -e 's,-g++,-g++4,')}
10%{expand:%%define __cpp %(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
11%endif
12
37060d63 13%include /usr/lib/rpm/macros.perl
dc576455
CM
14Summary: Mosh mobile shell
15Name: mosh
4654784a
ER
16Version: 1.2.5
17Release: 1
dc576455
CM
18License: GPL v3+
19Group: X11/Applications
4654784a 20Source0: http://mosh.mit.edu/%{name}-%{version}.tar.gz
5d2adafd 21# Source0-md5: 56d7147cf7031583ba7d8db09033e0c5
501df8d1
ER
22Patch0: https://github.com/keithw/mosh/pull/583.patch
23# Patch0-md5: 7eb14665ef06072591e5bcd80780c0e4
dc576455 24URL: http://mosh.mit.edu/
d0fa432e
ER
25BuildRequires: autoconf
26BuildRequires: automake
b0706f31 27BuildRequires: binutils >= 2.20.51.0.2
246f59c7 28BuildRequires: libstdc++-devel >= 5:4.0
d0fa432e 29BuildRequires: libtool
dc576455
CM
30BuildRequires: libutempter-devel
31BuildRequires: ncurses-devel
a81725ba 32BuildRequires: openssl-devel
d0fa432e 33BuildRequires: patchutils
23ab9f92 34BuildRequires: pkgconfig
ab99cc95 35BuildRequires: protobuf
dc576455 36BuildRequires: protobuf-devel
37060d63
ER
37BuildRequires: rpm-perlprov >= 4.1-13
38BuildRequires: sed >= 4.0
dc576455 39BuildRequires: zlib-devel
b0706f31
ER
40# gcc4 might be installed, but not current __cc
41%if "%(echo %{cc_version} | cut -d. -f1,2)" < "4.0"
42BuildRequires: __cc >= 4.0
43%endif
dc576455
CM
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
9eaea372
ER
46# PLD stack protector flags are weaker than upstream, filter them out
47# https://github.com/keithw/mosh/issues/203
7bc19f9c 48%define _ssp_cflags %{nil}
9eaea372 49
501df8d1
ER
50%define specflags -Wno-error=non-virtual-dtor
51
dc576455
CM
52%description
53Remote terminal application that allows roaming, supports intermittent
54connectivity, and provides intelligent local echo and line editing of
55user keystrokes.
56
57Mosh is a replacement for SSH. It's more robust and responsive,
58especially over Wi-Fi, cellular, and long-distance links.
59
60%prep
4654784a 61%setup -qn %{name}-release-%{version}
f21832d3 62%if %{with agent}
501df8d1 63%patch0 -p1
f21832d3
ER
64%endif
65%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh.pl
dc576455
CM
66
67%build
d0fa432e
ER
68%{__libtoolize}
69%{__aclocal}
70%{__autoconf}
f21832d3 71%{__autoheader}
d0fa432e 72%{__automake}
dc576455 73%configure \
c5194fa9
ER
74 --disable-silent-rules \
75 --enable-compile-warnings=error
76%{__make}
dc576455
CM
77
78%install
79rm -rf $RPM_BUILD_ROOT
dc576455
CM
80%{__make} install \
81 DESTDIR=$RPM_BUILD_ROOT
82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
86%files
87%defattr(644,root,root,755)
88%doc AUTHORS ChangeLog NEWS THANKS
dc576455
CM
89%attr(755,root,root) %{_bindir}/%{name}
90%attr(755,root,root) %{_bindir}/%{name}-client
91%attr(755,root,root) %{_bindir}/%{name}-server
92%{_mandir}/man1/%{name}.1*
93%{_mandir}/man1/%{name}-client.1*
94%{_mandir}/man1/%{name}-server.1*
This page took 0.589878 seconds and 4 git commands to generate.