Mon, 06 Aug 2012 13:35:02 +0200
Port ISO C to Solaris 11, accommodating new path and glob definitions.
opie/opie.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/opie/opie.spec Mon Aug 06 13:34:16 2012 +0200 1.2 +++ b/opie/opie.spec Mon Aug 06 13:35:02 2012 +0200 1.3 @@ -36,19 +36,15 @@ 1.4 Group: Cryptography 1.5 License: INL3 1.6 Version: %{V_major}.%{V_minor} 1.7 -Release: 20080101 1.8 +Release: 20120800 1.9 1.10 # list of sources 1.11 Source0: http://www.inner.net/pub/opie/test/opie-%{V_major}-test%{V_minor}.tar.gz 1.12 Patch0: opie.patch 1.13 1.14 # build information 1.15 -Prefix: %{l_prefix} 1.16 -BuildRoot: %{l_buildroot} 1.17 -BuildPreReq: OpenPKG, openpkg >= 20040130 1.18 -PreReq: OpenPKG, openpkg >= 20040130 1.19 -AutoReq: no 1.20 -AutoReqProv: no 1.21 +BuildPreReq: OpenPKG, openpkg >= 20100101 1.22 +PreReq: OpenPKG, openpkg >= 20100101 1.23 1.24 %description 1.25 OPIE is a One Time Password (OTP) toolkit. 1.26 @@ -63,6 +59,16 @@ 1.27 %prep 1.28 %setup -q -n opie-%{V_major}-test%{V_minor} 1.29 %patch -p0 1.30 + case "%{l_platform -t}" in 1.31 + *-sunos* ) 1.32 + %{l_shtool} subst \ 1.33 + -e 's;\(#ifndef _PATH_WTMP\)$;\1_HACK;' \ 1.34 + libopie/logwtmp.c 1.35 + %{l_shtool} subst \ 1.36 + -e 's;dirp->dd_fd;dirp->d_fd;g' \ 1.37 + glob.c 1.38 + ;; 1.39 + esac 1.40 1.41 %build 1.42 %{l_shtool} subst \ 1.43 @@ -80,7 +86,6 @@ 1.44 echo "#permit 127.0.0.1 255.255.255.255" >opieaccess 1.45 1.46 %install 1.47 - rm -rf $RPM_BUILD_ROOT 1.48 %{l_shtool} mkdir -f -p -m 755 \ 1.49 $RPM_BUILD_ROOT%{l_prefix}/bin \ 1.50 $RPM_BUILD_ROOT%{l_prefix}/sbin \ 1.51 @@ -115,5 +120,4 @@ 1.52 %files -f files 1.53 1.54 %clean 1.55 - rm -rf $RPM_BUILD_ROOT 1.56