Import package vendor original specs for necessary manipulations.

Fri, 24 Apr 2009 15:32:30 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 24 Apr 2009 15:32:30 +0200
changeset 196
722f9e17a5c4
parent 195
8f6a78b621a9
child 197
a90827bdc01a

Import package vendor original specs for necessary manipulations.

imap/imap.patch file | annotate | diff | comparison | revisions
imap/imap.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/imap/imap.patch	Fri Apr 24 15:32:30 2009 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +Index: Makefile
     1.5 +--- Makefile.orig	2007-12-20 23:11:10 +0100
     1.6 ++++ Makefile	2008-03-13 19:12:09 +0100
     1.7 +@@ -326,7 +326,6 @@
     1.8 + bsf:	an
     1.9 + 	$(TOUCH) ip6
    1.10 + 	$(BUILD) BUILDTYPE=$@ IP=$(IP6) \
    1.11 +-	PASSWDTYPE=pam \
    1.12 + 	SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib PAMLDFLAGS=-lpam"
    1.13 + 
    1.14 + # I assume that Theo did the right thing for IPv6.  OpenBSD does not have PAM.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/imap/imap.spec	Fri Apr 24 15:32:30 2009 +0200
     2.3 @@ -0,0 +1,166 @@
     2.4 +##
     2.5 +##  imap.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package version
    2.28 +%define       V_here   2007e
    2.29 +%define       V_real   2007e
    2.30 +%define       V_subdir 2007e
    2.31 +
    2.32 +#   package information
    2.33 +Name:         imap
    2.34 +Summary:      The IMAP Library
    2.35 +URL:          http://www.washington.edu/imap/
    2.36 +Vendor:       University of Washington
    2.37 +Packager:     OpenPKG Foundation e.V.
    2.38 +Distribution: OpenPKG Community
    2.39 +Class:        BASE
    2.40 +Group:        Mail
    2.41 +License:      University of Washington's Free-Fork License
    2.42 +Version:      %{V_here}
    2.43 +Release:      20081218
    2.44 +
    2.45 +#   package options
    2.46 +%option       with_ssl      yes
    2.47 +%option       with_pam      no
    2.48 +%option       with_daemons  no
    2.49 +%option       with_mbxdef   no
    2.50 +%option       with_annotate no
    2.51 +
    2.52 +#   list of sources
    2.53 +#   (ping p@rdus.de if the Kolab patches are unavailable for the latest IMAP version)
    2.54 +Source0:      ftp://ftp.cac.washington.edu/imap/imap-%{V_real}.tar.Z
    2.55 +Patch0:       imap.patch
    2.56 +Patch1:       http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/imap/KOLAB_imap-c-client_2006j2_Annotations.patch
    2.57 +
    2.58 +#   build information
    2.59 +Prefix:       %{l_prefix}
    2.60 +BuildRoot:    %{l_buildroot}
    2.61 +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
    2.62 +PreReq:       OpenPKG, openpkg >= 20040130
    2.63 +%if "%{with_pam}" == "yes"
    2.64 +BuildPreReq:  PAM
    2.65 +PreReq:       PAM
    2.66 +%endif
    2.67 +%if "%{with_ssl}" == "yes"
    2.68 +BuildPreReq:  openssl
    2.69 +PreReq:       openssl
    2.70 +%endif
    2.71 +AutoReq:      no
    2.72 +AutoReqProv:  no
    2.73 +%if "%{with_daemons}" == "yes"
    2.74 +Conflicts:    imaputils
    2.75 +%endif
    2.76 +
    2.77 +%description
    2.78 +    The IMAP library provides a C API for IMAP client access.
    2.79 +    It optionally contains the UW IMAP/POP3 daemons, too.
    2.80 +
    2.81 +%track
    2.82 +    prog imap = {
    2.83 +        version   = %{V_real}
    2.84 +        url       = ftp://ftp.cac.washington.edu/imap/
    2.85 +        regex     = imap-(\d+[a-z]?\d?)\.tar\.Z
    2.86 +    }
    2.87 +
    2.88 +%prep
    2.89 +    %setup -q -n imap-%{V_subdir}
    2.90 +    %patch -p0
    2.91 +%if "%{with_annotate}" == "yes"
    2.92 +    %patch -p1 -P 1
    2.93 +%endif
    2.94 +
    2.95 +%build
    2.96 +    mflags="%{l_mflags}"
    2.97 +    cflags="%{l_cflags}"
    2.98 +    ldflags="%{l_ldflags}"
    2.99 +%if "%{with_pam}" == "yes"
   2.100 +    case "%{l_platform -t}" in
   2.101 +        *-sunos* ) pamtype=pmb ;;
   2.102 +        *        ) pamtype=pam ;;
   2.103 +    esac
   2.104 +    mflags="$mflags PASSWDTYPE=$pamtype"
   2.105 +    cflags="$cflags -I`%{l_rc} --query pam_incdir`"
   2.106 +    ldflags="$ldflags -L`%{l_rc} --query pam_libdir`"
   2.107 +%endif
   2.108 +%if "%{with_mbxdef}" == "yes"
   2.109 +    mflags="$mflags CREATEPROTO=mbxproto"
   2.110 +%endif
   2.111 +%if "%{with_ssl}" == "yes"
   2.112 +    cflags="%{l_cppflags openssl .} $cflags"
   2.113 +    mflags="$mflags SSLDIR=%{l_prefix}/etc/openssl"
   2.114 +%else
   2.115 +    mflags="$mflags SSLTYPE=none"
   2.116 +%endif
   2.117 +    case "%{l_platform -t}" in
   2.118 +        *-freebsd* ) os=bsf ;;
   2.119 +        *-linux*   ) os=slx ;;
   2.120 +        *-sunos*   ) os=gso ;;
   2.121 +        *-netbsd*  ) os=neb ;;
   2.122 +        *-irix*    ) os=gsg ;;
   2.123 +        *) echo "Unsupported platform %{l_platform -t}" 1>&2; exit 1 ;;
   2.124 +    esac
   2.125 +    mflags="$mflags $os"
   2.126 +    %{l_make} $mflags \
   2.127 +        EXTRACFLAGS="$cflags" \
   2.128 +        EXTRALDFLAGS="$ldflags"
   2.129 +
   2.130 +%install
   2.131 +    rm -rf $RPM_BUILD_ROOT
   2.132 +    %{l_shtool} mkdir -f -p -m 755 \
   2.133 +        $RPM_BUILD_ROOT%{l_prefix}/include/imap \
   2.134 +        $RPM_BUILD_ROOT%{l_prefix}/lib
   2.135 +    %{l_shtool} install -c -m 644 \
   2.136 +        c-client/*.h \
   2.137 +        c-client/linkage.c \
   2.138 +        $RPM_BUILD_ROOT%{l_prefix}/include/imap/
   2.139 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/include/imap/os_*.h
   2.140 +    %{l_shtool} install -c -m 644 c-client/c-client.a \
   2.141 +        $RPM_BUILD_ROOT%{l_prefix}/lib/libimap.a
   2.142 +%if "%{with_daemons}" == "yes"
   2.143 +    %{l_shtool} mkdir -f -p -m 755 \
   2.144 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
   2.145 +        $RPM_BUILD_ROOT%{l_prefix}/sbin \
   2.146 +        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
   2.147 +        $RPM_BUILD_ROOT%{l_prefix}/man/man8
   2.148 +    %{l_shtool} install -c -m 755 \
   2.149 +        tmail/tmail dmail/dmail mailutil/mailutil \
   2.150 +        $RPM_BUILD_ROOT%{l_prefix}/bin/
   2.151 +    %{l_shtool} install -c -m 755 \
   2.152 +        imapd/imapd ipopd/ipop3d \
   2.153 +        $RPM_BUILD_ROOT%{l_prefix}/sbin/
   2.154 +    %{l_shtool} install -c -m 644 \
   2.155 +        src/tmail/tmail.1 src/dmail/dmail.1 src/mailutil/mailutil.1 \
   2.156 +        $RPM_BUILD_ROOT%{l_prefix}/man/man1/
   2.157 +    %{l_shtool} install -c -m 644 \
   2.158 +        src/imapd/imapd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/imapd.8
   2.159 +    %{l_shtool} install -c -m 644 \
   2.160 +        src/ipopd/ipopd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/ipopd.8
   2.161 +%endif
   2.162 +
   2.163 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   2.164 +
   2.165 +%files -f files
   2.166 +
   2.167 +%clean
   2.168 +    rm -rf $RPM_BUILD_ROOT
   2.169 +

mercurial