|
|
@@ -23,7 +23,7 @@
|
|
|
##
|
|
|
|
|
|
# package version
|
|
|
-%define V_spread 3.17.3
|
|
|
+%define V_spread 4.0.0
|
|
|
%define V_spread_perl 3.17.3_108
|
|
|
|
|
|
# package information
|
|
|
@@ -37,7 +37,7 @@ Class: PLUS
|
|
|
Group: RPC
|
|
|
License: BSD-style
|
|
|
Version: %{V_spread}
|
|
|
-Release: 20061115
|
|
|
+Release: 20061205
|
|
|
|
|
|
# package options
|
|
|
%option with_perl no
|
|
|
@@ -80,11 +80,8 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n spread-src-%{version}
|
|
|
-
|
|
|
- # upgrade Perl extension
|
|
|
%if "%{with_perl}" == "yes"
|
|
|
%setup -q -n spread-src-%{version} -D -T -a 1
|
|
|
- mv Spread-%{V_spread_perl}/* perl/Spread/
|
|
|
%endif
|
|
|
|
|
|
# adjust paths in toolkit
|
|
|
@@ -101,6 +98,11 @@ AutoReqProv: no
|
|
|
%{l_shtool} subst \
|
|
|
-e "s;My\.name;\"spread.log\";g" \
|
|
|
log.c
|
|
|
+%if "%{with_perl}" == "yes"
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;\.\./spread-src-3.17.0/;../include;' \
|
|
|
+ Spread-%{V_spread_perl}/Makefile.PL
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
# configure toolkit
|
|
|
@@ -126,7 +128,7 @@ AutoReqProv: no
|
|
|
|
|
|
# build Perl extension
|
|
|
%if "%{with_perl}" == "yes"
|
|
|
- %{l_prefix}/bin/perl-openpkg -d perl/Spread prepare configure build
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d Spread-%{V_spread_perl} prepare configure build
|
|
|
%endif
|
|
|
|
|
|
%install
|
|
|
@@ -134,7 +136,7 @@ AutoReqProv: no
|
|
|
|
|
|
# install Perl extension
|
|
|
%if "%{with_perl}" == "yes"
|
|
|
- %{l_prefix}/bin/perl-openpkg -d perl/Spread install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d Spread-%{V_spread_perl} install
|
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
|
%else
|
|
|
>perl-openpkg-files
|
|
|
@@ -145,6 +147,7 @@ AutoReqProv: no
|
|
|
|
|
|
# strip down installation
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol]* >/dev/null 2>&1 || true
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/share/doc >/dev/null 2>&1 || true
|
|
|
|
|
|
# create additional run-time directory
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
@@ -152,7 +155,7 @@ AutoReqProv: no
|
|
|
|
|
|
# install the IP address ACL file
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- sample.spread.access_ip \
|
|
|
+ docs/sample.spread.access_ip \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/spread/spread.access_ip
|
|
|
|
|
|
# install run command file
|