]> git.pld-linux.org Git - packages/mosh.git/commitdiff
spec cleanups
authorElan Ruusamäe <glen@delfi.ee>
Tue, 9 Jun 2015 07:21:27 +0000 (10:21 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 9 Jun 2015 07:25:24 +0000 (10:25 +0300)
- add agent bcond
- run autoheader
- cleanup ncurses hack

mosh.spec

index d2f243fed44f3eed862e405244ade15db7486fdc..b6188f24e6705305f17cad1fc9e8582632690f99 100644 (file)
--- a/mosh.spec
+++ b/mosh.spec
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_without agent           # with ssh agent forwarding patch
 
 # force gcc4 for ac
 %if "%{pld_release}" == "ac"
@@ -58,18 +61,20 @@ especially over Wi-Fi, cellular, and long-distance links.
 
 %prep
 %setup -q
+%if %{with agent}
 filterdiff -p1 -x 'debian/*' -x 'fedora/*' -x 'macosx/*' %{PATCH100} > branch.diff
 sed -i -e '/^diff /d' branch.diff
 %{__patch} -p1 < branch.diff
 %patch0 -p1
+%endif
 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' scripts/mosh
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
-CPPFLAGS="-I/usr/include/ncurses"
 %configure \
        --disable-silent-rules \
        --enable-compile-warnings=error
This page took 0.080244 seconds and 4 git commands to generate.