3:1b50bc9f9fd9 | 4:b7f8313c7440 |
---|---|
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
21 ## SUCH DAMAGE. | 21 ## SUCH DAMAGE. |
22 ## | 22 ## |
23 | 23 |
24 # package version | 24 # package version |
25 %define V_here 2007e | 25 %define V_here 2007f |
26 %define V_real 2007e | 26 %define V_real 2007f |
27 %define V_subdir 2007e | 27 %define V_subdir 2007f |
28 | 28 |
29 # package information | 29 # package information |
30 Name: imap | 30 Name: imap |
31 Summary: The IMAP Library | 31 Summary: The IMAP Library |
32 URL: http://www.washington.edu/imap/ | 32 URL: http://www.washington.edu/imap/ |
35 Distribution: OpenPKG Community | 35 Distribution: OpenPKG Community |
36 Class: BASE | 36 Class: BASE |
37 Group: Mail | 37 Group: Mail |
38 License: University of Washington's Free-Fork License | 38 License: University of Washington's Free-Fork License |
39 Version: %{V_here} | 39 Version: %{V_here} |
40 Release: 20091030 | 40 Release: 20120800 |
41 | 41 |
42 # package options | 42 # package options |
43 %option with_ssl yes | 43 %option with_ssl yes |
44 %option with_pam no | 44 %option with_pam no |
45 %option with_daemons no | 45 %option with_daemons no |
48 # list of sources | 48 # list of sources |
49 Source0: ftp://ftp.cac.washington.edu/imap/imap-%{V_real}.tar.Z | 49 Source0: ftp://ftp.cac.washington.edu/imap/imap-%{V_real}.tar.Z |
50 Patch0: imap.patch | 50 Patch0: imap.patch |
51 | 51 |
52 # build information | 52 # build information |
53 Prefix: %{l_prefix} | 53 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc |
54 BuildRoot: %{l_buildroot} | 54 PreReq: OpenPKG, openpkg >= 20100101 |
55 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc | |
56 PreReq: OpenPKG, openpkg >= 20040130 | |
57 %if "%{with_pam}" == "yes" | 55 %if "%{with_pam}" == "yes" |
58 BuildPreReq: PAM | 56 BuildPreReq: PAM |
59 PreReq: PAM | 57 PreReq: PAM |
60 %endif | 58 %endif |
61 %if "%{with_ssl}" == "yes" | 59 %if "%{with_ssl}" == "yes" |
62 BuildPreReq: openssl | 60 BuildPreReq: openssl |
63 PreReq: openssl | 61 PreReq: openssl |
64 %endif | 62 %endif |
65 AutoReq: no | |
66 AutoReqProv: no | |
67 %if "%{with_daemons}" == "yes" | 63 %if "%{with_daemons}" == "yes" |
68 Conflicts: imaputils | 64 Conflicts: imaputils |
69 %endif | 65 %endif |
70 | 66 |
71 %description | 67 %description |
80 } | 76 } |
81 | 77 |
82 %prep | 78 %prep |
83 %setup -q -n imap-%{V_subdir} | 79 %setup -q -n imap-%{V_subdir} |
84 %patch -p0 | 80 %patch -p0 |
81 case "%{l_platform -t}" in | |
82 *-sunos* ) | |
83 %{l_shtool} subst \ | |
84 -e 's;dd_fd;d_fd;g' \ | |
85 src/osdep/unix/scandir.c | |
86 ;; | |
87 esac | |
85 | 88 |
86 %build | 89 %build |
87 mflags="%{l_mflags}" | 90 mflags="%{l_mflags}" |
88 cflags="%{l_cflags}" | 91 cflags="%{l_cflags}" |
89 ldflags="%{l_ldflags}" | 92 ldflags="%{l_ldflags}" |
121 %{l_make} $mflags \ | 124 %{l_make} $mflags \ |
122 EXTRACFLAGS="$cflags" \ | 125 EXTRACFLAGS="$cflags" \ |
123 EXTRALDFLAGS="$ldflags" | 126 EXTRALDFLAGS="$ldflags" |
124 | 127 |
125 %install | 128 %install |
126 rm -rf $RPM_BUILD_ROOT | |
127 %{l_shtool} mkdir -f -p -m 755 \ | 129 %{l_shtool} mkdir -f -p -m 755 \ |
128 $RPM_BUILD_ROOT%{l_prefix}/include/imap \ | 130 $RPM_BUILD_ROOT%{l_prefix}/include/imap \ |
129 $RPM_BUILD_ROOT%{l_prefix}/lib | 131 $RPM_BUILD_ROOT%{l_prefix}/lib |
130 %{l_shtool} install -c -m 644 \ | 132 %{l_shtool} install -c -m 644 \ |
131 c-client/*.h \ | 133 c-client/*.h \ |
158 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} | 160 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
159 | 161 |
160 %files -f files | 162 %files -f files |
161 | 163 |
162 %clean | 164 %clean |
163 rm -rf $RPM_BUILD_ROOT | |
164 | 165 |