]> git.pld-linux.org Git - packages/mosh.git/blob - mosh.spec
dba2c4ac677bef802ea598ba92fba079cf512ff4
[packages/mosh.git] / mosh.spec
1 #
2 # Conditional build:
3 %bcond_without  verbose         # verbose build (V=1)
4
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        Mosh mobile shell
7 Name:           mosh
8 Version:        1.2.2
9 Release:        1
10 License:        GPL v3+
11 Group:          X11/Applications
12 Source0:        https://github.com/downloads/keithw/mosh/%{name}-%{version}.tar.gz
13 # Source0-md5:  7ed5b857307685794dcd120afe5bdf52
14 URL:            http://mosh.mit.edu/
15 BuildRequires:  libutempter-devel
16 BuildRequires:  ncurses-devel
17 BuildRequires:  protobuf
18 BuildRequires:  protobuf-devel
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  sed >= 4.0
21 BuildRequires:  zlib-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Remote terminal application that allows roaming, supports intermittent
26 connectivity, and provides intelligent local echo and line editing of
27 user keystrokes.
28
29 Mosh is a replacement for SSH. It's more robust and responsive,
30 especially over Wi-Fi, cellular, and long-distance links.
31
32 %prep
33 %setup -q
34 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh
35
36 %build
37 %configure \
38         --enable-compile-warnings=error \
39         CPPFLAGS="-I/usr/include/ncurses"
40 %{__make} \
41         %{?with_verbose:V=1}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc AUTHORS ChangeLog NEWS THANKS
54 %attr(755,root,root) %{_bindir}/%{name}
55 %attr(755,root,root) %{_bindir}/%{name}-client
56 %attr(755,root,root) %{_bindir}/%{name}-server
57 %{_mandir}/man1/%{name}.1*
58 %{_mandir}/man1/%{name}-client.1*
59 %{_mandir}/man1/%{name}-server.1*
This page took 0.043063 seconds and 2 git commands to generate.