OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   09-Apr-2009 23:54:27
  Branch: HEAD                             Handle: 2009040922542700

  Added files:
    openpkg-src/mozldap     mozldap.patch mozldap.pc mozldap.spec

  Log:
    new package: mozldap 6.0.6 (Mozilla LDAP SDK)

  Summary:
    Revision    Changes     Path
    1.1         +37 -0      openpkg-src/mozldap/mozldap.patch
    1.1         +12 -0      openpkg-src/mozldap/mozldap.pc
    1.1         +131 -0     openpkg-src/mozldap/mozldap.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/mozldap/mozldap.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 mozldap.patch
  --- /dev/null 2009-04-09 23:54:25 +0200
  +++ mozldap.patch     2009-04-09 23:54:27 +0200
  @@ -0,0 +1,37 @@
  +Index: mozilla/directory/c-sdk/ldap/libraries/libprldap/Makefile.in
  +--- mozilla/directory/c-sdk/ldap/libraries/libprldap/Makefile.in.orig        
2008-09-11 16:38:35 +0200
  ++++ mozilla/directory/c-sdk/ldap/libraries/libprldap/Makefile.in     
2009-04-09 23:27:31 +0200
  +@@ -57,12 +57,8 @@
  + DISTHDIR    = $(DIST)/public/ldap
  + HDIR                = $(topsrcdir)/ldap/include
  + 
  +-ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
  + LIBPRLDAP   = $(addprefix $(OBJDIR_NAME)/, \
  +                     $(LIB_PREFIX)$(PRLDAP_LIBNAME).$(LIB_SUFFIX))
  +-else
  +-LIBPRLDAP =
  +-endif
  + DLLPRLDAP   = $(addprefix $(OBJDIR_NAME)/, \
  +                     $(LIB_PREFIX)$(PRLDAP_LIBNAME).$(DLL_SUFFIX))
  + 
  +@@ -207,7 +203,7 @@
  +     rm -f $@
  +     $(IMPLIB) $@ $(PRLDAP_EXPORT_DEFS)
  + else
  +-    $(LINK_LIB) $(EXTRA_LIBS)
  ++    $(LINK_LIB)
  + endif
  + 
  + $(DLLPRLDAP): $(OBJS) $(LIBDIR) $(PRLDAP_EXPORT_DEFS)
  +Index: mozilla/directory/c-sdk/ldap/libraries/libssldap/Makefile.in
  +--- mozilla/directory/c-sdk/ldap/libraries/libssldap/Makefile.in.orig        
2008-09-11 16:38:35 +0200
  ++++ mozilla/directory/c-sdk/ldap/libraries/libssldap/Makefile.in     
2009-04-09 23:29:29 +0200
  +@@ -218,7 +218,7 @@
  +  ifdef SO_FILES_TO_REMOVE
  +     -$(RM) $(SO_FILES_TO_REMOVE)
  +  endif
  +-    $(LINK_LIB) $(EXTRA_LIBS)
  ++    $(LINK_LIB)
  + 
  + $(DLLSSLDAP): $(OBJS) $(LIBDIR) $(SSLDAP_EXPORT_DEFS)
  +     @echo ======= making $(DLLSSLDAP)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/mozldap/mozldap.pc
  ============================================================================
  $ cvs diff -u -r0 -r1.1 mozldap.pc
  --- /dev/null 2009-04-09 23:54:25 +0200
  +++ mozldap.pc        2009-04-09 23:54:27 +0200
  @@ -0,0 +1,12 @@
  +pref...@l_prefix@
  +exec_pref...@l_prefix@
  +libd...@l_prefix@/lib
  +included...@l_prefix@/include/mozldap
  +bind...@l_prefix@/bib
  +
  +Name: mozldap
  +Description: Mozilla LDAP C SDK
  +Version: @l_version@
  +Libs: -L${libdir} -lssldap60 -lprldap60 -lldap60 -lldif60 -llber60 -liutil60 
-lsasl2
  +Cflags: -I${includedir}/ldap -I${includedir}
  +Requires: nspr, nss
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/mozldap/mozldap.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 mozldap.spec
  --- /dev/null 2009-04-09 23:54:25 +0200
  +++ mozldap.spec      2009-04-09 23:54:27 +0200
  @@ -0,0 +1,131 @@
  +##
  +##  mozldap.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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 information
  +Name:         mozldap
  +Summary:      Mozilla LDAP SDK
  +URL:          https://wiki.mozilla.org/LDAP_C_SDK
  +Vendor:       Mozilla Foundation
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        LDAP
  +License:      MPL
  +Version:      6.0.6
  +Release:      20090409
  +
  +#   list of sources
  +Source0:      
ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v%{version}/src/mozldap-%{version}.tar.gz
  +Source1:      mozldap.pc
  +Patch0:       mozldap.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  nspr, nss, sasl
  +PreReq:       nspr, nss, sasl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The C LDAP Application Program Interface (RFC 1823) defines a set of
  +    API functions that you can use to build LDAP-enabled clients. The
  +    functionality implemented in the Mozilla LDAP SDK closely follows
  +    these interfaces. Using the functionality provided, you can enable
  +    your clients to connect to LDAPv3-compliant servers and perform
  +    standard LDAP functions. Among other things, with this SDK you
  +    can: search for and retrieving a list of entries, add new entries
  +    (modify) the database, update existing entries, delete entries and
  +    rename entries.
  +
  +%track
  +    prog mozldap = {
  +        version   = %{version}
  +        url       = 
ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/
  +        regex     = v(__VER__)
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    cd mozilla/directory/c-sdk
  +    %{l_shtool} subst \
  +        -e 's;^\(TARGETS[^=]*=.$(LIBRARY)\) $(SHARED_LIBRARY);\1;' \
  +        config/rules.mk
  +    %{l_shtool} subst \
  +        -e 's;^MKSHLIB;#MKSHLIB;' \
  +        -e 's;-Wall;;g' \
  +        config/*.mk config/*.mk.in
  +    %{l_shtool} subst \
  +        -e 's;-Wall;;g' \
  +        configure
  +    CC="%{l_cc}" \
  +    CXX="%{l_cxx}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CXXFLAGS="%{l_cxxflags -O}" \
  +    CPPFLAGS="-I`pwd`/../../dist/public/ldap 
-I`pwd`/../../dist/public/ldap-private %{l_cppflags nss .}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --with-sasl=%{l_prefix} \
  +        --with-system-nspr \
  +        --with-nspr=%{l_prefix} \
  +        --with-system-nss \
  +        --with-nss=%{l_prefix} \
  +        --with-pthreads \
  +        --disable-debug
  +    %{l_make} %{l_mflags} DLLLDAP="" DLLPRLDAP="" DLLLDIF="" DLLSSLDAP=""
  +    cp ldap/libraries/lib*/lib*.a ../../dist/lib/ >/dev/null 2>&1 || true
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/mozldap \
  +        $RPM_BUILD_ROOT%{l_prefix}/include/mozldap/ldap \
  +        $RPM_BUILD_ROOT%{l_prefix}/include/mozldap/ldap-private \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
  +    %{l_shtool} install -c -m 644 \
  +        mozilla/dist/lib/*.a $RPM_BUILD_ROOT%{l_prefix}/lib/
  +    %{l_shtool} install -c -m 644 \
  +        mozilla/dist/public/ldap/*.h 
$RPM_BUILD_ROOT%{l_prefix}/include/mozldap/ldap/
  +    %{l_shtool} install -c -m 644 \
  +        mozilla/dist/public/ldap-private/*.h 
$RPM_BUILD_ROOT%{l_prefix}/include/mozldap/ldap-private/
  +    %{l_shtool} install -c -m 644 \
  +        mozilla/dist/etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/mozldap/
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        -e 's;@l_version@;%{version};' \
  +        %{SOURCE mozldap.pc} $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/mozldap/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to