|
|
@@ -37,7 +37,7 @@ Class: PLUS
|
|
|
Group: SSH
|
|
|
License: GPL
|
|
|
Version: %{V_dsh}
|
|
|
-Release: 20061013
|
|
|
+Release: 20070328
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.netfort.gr.jp/~dancer/software/downloads/dsh-%{V_dsh}.tar.gz
|
|
|
@@ -86,9 +86,10 @@ AutoReqProv: no
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
+ --mandir=%{l_prefix}/man \
|
|
|
--disable-shared \
|
|
|
--disable-nls
|
|
|
- %{l_shtool} subst -e 's;ssize_t;int;g' -- libdshconfig.c
|
|
|
+ %{l_shtool} subst -e 's;ssize_t;int;g' libdshconfig.c
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
rm -f .libs/*.la*
|
|
|
) || exit $?
|
|
|
@@ -98,7 +99,7 @@ AutoReqProv: no
|
|
|
-e 's;/etc\(/dsh/dsh.conf\);%{l_prefix}/etc\1;' \
|
|
|
-e 's;/etc\(/dsh/machines.list\);%{l_prefix}/etc\1;' \
|
|
|
-e 's;/etc\(/dsh/group\);%{l_prefix}/etc\1;' \
|
|
|
- -- dsh.1
|
|
|
+ dsh.1 dsh.conf.5
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
CPPFLAGS="%{l_cppflags} -I`pwd`/libdshconfig-%{V_dshconfig}" \
|
|
|
@@ -107,6 +108,7 @@ AutoReqProv: no
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--sysconfdir=%{l_prefix}/etc/dsh \
|
|
|
+ --mandir=%{l_prefix}/man \
|
|
|
--disable-shared \
|
|
|
--disable-nls
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
@@ -116,7 +118,10 @@ AutoReqProv: no
|
|
|
|
|
|
# perform standard installation procedure
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+
|
|
|
+ # strip down installation
|
|
|
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/?? >/dev/null 2>&1 || true
|
|
|
|
|
|
# add reasonable default configuration
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|