[Kolab-devel] Kolab SDK RPM

Stephan Buys s.buys at codefusion.co.za
Thu Aug 7 09:03:38 CEST 2003


Hi all,

Here is the spec file to load Kolab SDK files from CPAN and create an OpenPKG
package.

Check out CPAN or the .tar.gz files for documentation on the different modules.

Martin, if you could have a look at it I would greatly appreciate it. When I started 
the process the idea was to have the kolab backend more modularised so that it
becomes easy to maintain.

Examples of other modules could be: 
Kolab::LDAP (all the LDAP routines/variables we need in the Kolab backend), 
Kolab::LDAP::slurpd (all the LDAP routines that is used by the Kolab listening 
function), 
Kolab::Admin (routines to add/remove/modify users, addresses,etc. These 
routines will be aware that you should not delete a user object from LDAP, 
but only flag it as deleted)

Any feedback appreciated as always. If there are no objections I would like to add
the folder server/perl-kolab to the Kolab repository.

Regards,
-- 
Stephan  Buys
Code Fusion cc.
Tel: +27 11 391 1412
Mobile: +27 83 294 1876
Email: s.buys at codefusion.co.za
-------------- next part --------------
##
##  perl-openpkg.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse at engelschall.com>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package versions
%define       V_kolab_config          0.02
%define       V_kolab_dirserv_config  0.03
%define       V_kolab_dirserv         0.04
%define       V_kolab_util            0.02
%define       V_mail_imapclient       2.2.8

#   package information
Name:         perl-kolab
Summary:      Perl Kolab SDK
URL:          -
Vendor:       Code Fusion 
Packager:     Stephan Buys - Code Fusion
Distribution: Kolab
Group:        core
License:      PD
Version:      20030806
Release:      20030806

#   list of sources
Source0:      http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Config-%{V_kolab_config}.tar.gz
Source1:      http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-DirServ-Config-%{V_kolab_dirserv_config}.tar.gz
Source2:      http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-DirServ-%{V_kolab_dirserv}.tar.gz
Source3:      http://www.cpan.org/authors/id/S/ST/STEPHANB/Kolab-Util-%{V_kolab_util}.tar.gz
Source4:      http://www.cpan.org/modules/by-module/Mail/Mail-IMAPClient-%{V_mail_imapclient}.tar.gz

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20030103, perl
PreReq:       OpenPKG, openpkg >= 20030103, perl, kolab
AutoReq:      no
AutoReqProv:  no

%description
   Perl modules that comprise the Kolab SDK:
    - Kolab::Config (%{V_kolab_config})
    - Kolab::DirServ::Config (%{V_kolab_dirserv_config})
    - Kolab::DirServ (%{V_kolab_dirserv})
    - Kolab::Util (%{V_kolab_util})
    - Mail::IMAPClient (%{V_mail_imapclient})

%prep
    %setup0  -q -c
    %setup1  -q -T -D -a 1
    %setup2  -q -T -D -a 2
    %setup3  -q -T -D -a 3
    %setup4  -q -T -D -a 4

%build

%install
    #   perform common prolog operations
    %{l_prefix}/bin/perl-openpkg prolog

    %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} 
    %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
    %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
    %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
    %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}

    #   perform common epilog operations
    %{l_prefix}/bin/perl-openpkg epilog

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT



More information about the devel mailing list