imap/imap.spec

changeset 197
a90827bdc01a
parent 196
722f9e17a5c4
child 198
8364d0b242cd
equal deleted inserted replaced
0:11716aef0f94 1:e44bc7201bee
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: 20081218 40 Release: 20090418
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
46 %option with_mbxdef no 46 %option with_mbxdef no
47 %option with_annotate no
48 47
49 # list of sources 48 # list of sources
50 # (ping p@rdus.de if the Kolab patches are unavailable for the latest IMAP version)
51 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
52 Patch0: imap.patch 50 Patch0: imap.patch
53 Patch1: http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/imap/KOLAB_imap-c-client_2006j2_Annotations.patch
54 51
55 # build information 52 # build information
56 Prefix: %{l_prefix} 53 Prefix: %{l_prefix}
57 BuildRoot: %{l_buildroot} 54 BuildRoot: %{l_buildroot}
58 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc 55 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
83 } 80 }
84 81
85 %prep 82 %prep
86 %setup -q -n imap-%{V_subdir} 83 %setup -q -n imap-%{V_subdir}
87 %patch -p0 84 %patch -p0
88 %if "%{with_annotate}" == "yes"
89 %patch -p1 -P 1
90 %endif
91 85
92 %build 86 %build
93 mflags="%{l_mflags}" 87 mflags="%{l_mflags}"
94 cflags="%{l_cflags}" 88 cflags="%{l_cflags}"
95 ldflags="%{l_ldflags}" 89 ldflags="%{l_ldflags}"
106 mflags="$mflags CREATEPROTO=mbxproto" 100 mflags="$mflags CREATEPROTO=mbxproto"
107 %endif 101 %endif
108 %if "%{with_ssl}" == "yes" 102 %if "%{with_ssl}" == "yes"
109 cflags="%{l_cppflags openssl .} $cflags" 103 cflags="%{l_cppflags openssl .} $cflags"
110 mflags="$mflags SSLDIR=%{l_prefix}/etc/openssl" 104 mflags="$mflags SSLDIR=%{l_prefix}/etc/openssl"
105 mflags="$mflags SSLCERTS=%{l_prefix}/etc/imap/certs"
106 mflags="$mflags SSLINCLUDE=%{l_prefix}/include"
107 mflags="$mflags SSLLIB=%{l_prefix}/lib"
111 %else 108 %else
112 mflags="$mflags SSLTYPE=none" 109 mflags="$mflags SSLTYPE=none"
113 %endif 110 %endif
114 case "%{l_platform -t}" in 111 case "%{l_platform -t}" in
115 *-freebsd* ) os=bsf ;; 112 *-freebsd* ) os=bsf ;;
134 c-client/linkage.c \ 131 c-client/linkage.c \
135 $RPM_BUILD_ROOT%{l_prefix}/include/imap/ 132 $RPM_BUILD_ROOT%{l_prefix}/include/imap/
136 rm -f $RPM_BUILD_ROOT%{l_prefix}/include/imap/os_*.h 133 rm -f $RPM_BUILD_ROOT%{l_prefix}/include/imap/os_*.h
137 %{l_shtool} install -c -m 644 c-client/c-client.a \ 134 %{l_shtool} install -c -m 644 c-client/c-client.a \
138 $RPM_BUILD_ROOT%{l_prefix}/lib/libimap.a 135 $RPM_BUILD_ROOT%{l_prefix}/lib/libimap.a
136 %if "%{with_ssl}" == "yes"
137 %{l_shtool} mkdir -f -p -m 755 \
138 $RPM_BUILD_ROOT%{l_prefix}/etc/imap/certs
139 %endif
139 %if "%{with_daemons}" == "yes" 140 %if "%{with_daemons}" == "yes"
140 %{l_shtool} mkdir -f -p -m 755 \ 141 %{l_shtool} mkdir -f -p -m 755 \
141 $RPM_BUILD_ROOT%{l_prefix}/bin \ 142 $RPM_BUILD_ROOT%{l_prefix}/bin \
142 $RPM_BUILD_ROOT%{l_prefix}/sbin \ 143 $RPM_BUILD_ROOT%{l_prefix}/sbin \
143 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 144 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \

mercurial