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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   06-Jul-2007 12:49:14
  Branch: HEAD                             Handle: 2007070611491300

  Added files:
    openpkg-src/gnupg1      gnupg1.patch gnupg1.spec

  Log:
    move gnupg to gnupg1

  Summary:
    Revision    Changes     Path
    1.1         +28 -0      openpkg-src/gnupg1/gnupg1.patch
    1.1         +163 -0     openpkg-src/gnupg1/gnupg1.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/gnupg1/gnupg1.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 gnupg1.patch
  --- /dev/null 2007-07-06 12:47:46 +0200
  +++ gnupg1.patch      2007-07-06 12:49:13 +0200
  @@ -0,0 +1,28 @@
  +Index: g10/Makefile.am
  +--- g10/Makefile.am.orig     2006-12-14 10:16:00 +0100
  ++++ g10/Makefile.am  2007-07-06 12:00:28 +0200
  +@@ -26,9 +26,9 @@
  + 
  + if ! HAVE_DOSISH_SYSTEM
  + AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
  +-AM_CPPFLAGS += -DGNUPG_LIBEXECDIR="\"$(libexecdir)/@[EMAIL PROTECTED]""
  +-AM_CPPFLAGS += -DGNUPG_DATADIR="\"$(pkgdatadir)\""
  +-AM_CPPFLAGS += -DGNUPG_LIBDIR="\"$(libdir)/@[EMAIL PROTECTED]""
  ++AM_CPPFLAGS += -DGNUPG_LIBEXECDIR="\"$(libexecdir)/@[EMAIL PROTECTED]""
  ++AM_CPPFLAGS += -DGNUPG_DATADIR="\"$(pkgdatadir)1\""
  ++AM_CPPFLAGS += -DGNUPG_LIBDIR="\"$(libdir)/@[EMAIL PROTECTED]""
  + endif
  + 
  + needed_libs = ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a
  +Index: keyserver/Makefile.in
  +--- keyserver/Makefile.in.orig       2007-03-05 10:44:42 +0100
  ++++ keyserver/Makefile.in    2007-07-06 12:00:09 +0200
  +@@ -334,7 +334,7 @@
  + target_alias = @target_alias@
  + INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
  + EXTRA_SCRIPTS = gpgkeys_mailto
  +-gpglibexecdir = $(libexecdir)/@PACKAGE@
  ++gpglibexecdir = $(libexecdir)/@[EMAIL PROTECTED]
  + gpglibexec_SCRIPTS = @GPGKEYS_MAILTO@
  + noinst_SCRIPTS = gpgkeys_test
  + gpgkeys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/gnupg1/gnupg1.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 gnupg1.spec
  --- /dev/null 2007-07-06 12:47:46 +0200
  +++ gnupg1.spec       2007-07-06 12:49:14 +0200
  @@ -0,0 +1,163 @@
  +##
  +##  gnupg1.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://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 information
  +Name:         gnupg1
  +Summary:      GNU Privacy Guard (V1)
  +URL:          http://www.gnupg.org/
  +Vendor:       Werner Koch
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        PGP
  +License:      GPL
  +Version:      1.4.7
  +Release:      20070706
  +
  +#   package options
  +%option       with_curl  no
  +%option       with_idea  no
  +%option       with_ldap  no
  +
  +#   list of sources
  +Source0:      ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.gz
  +Source1:      ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
  +Patch0:       gnupg1.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, make
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  zlib, bzip2, readline
  +PreReq:       zlib, bzip2, readline
  +%if "%{with_curl}" == "yes"
  +BuildPreReq:  curl, openssl
  +PreReq:       curl, openssl
  +%endif
  +%if "%{with_ldap}" == "yes"
  +BuildPreReq:  openldap, openssl
  +PreReq:       openldap, openssl
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +     GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
  +     creating digital signatures. GnuPG has advanced key management
  +     capabilities and is compliant with the proposed OpenPGP Internet
  +     standard described in RFC2440. Since GnuPG doesn't use any patented
  +     algorithm, it is not compatible with any version of PGP2 (PGP2.x
  +     uses only IDEA, patented worldwide).
  +
  +%track
  +    prog gnupg1 = {
  +        version   = %{version}
  +        url       = ftp://ftp.gnupg.org/gcrypt/gnupg/
  +        regex     = gnupg-(1\.__VER__)\.tar\.(gz|bz2)
  +    }
  +
  +%prep
  +    %setup -q -n gnupg-%{version}
  +    %patch -p0
  +%if "%{with_idea}" == "yes"
  +    %{l_gzip} -d -c %{SOURCE idea.c.gz} >cipher/idea.c
  +%endif
  +
  +%build
  +    LIBS=""
  +    echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c
  +    for lib in termcap termlib curses ncurses; do
  +        rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1
  +        if [ $rc -eq 0 ]; then LIBS="$LIBS -l$lib"; break; fi
  +    done
  +%if "%{with_ldap}" == "yes" || "%{with_curl}" == "yes"
  +    LIBS="$LIBS -lssl -lcrypto"
  +%endif
  +%if "%{with_curl}" == "yes"
  +    LIBS="$LIBS -lz"
  +%endif
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    LIBS="$LIBS" \
  +    GREP="grep" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --mandir=%{l_prefix}/man \
  +        --infodir=%{l_prefix}/info \
  +        --with-zlib=%{l_prefix} \
  +        --with-bzip2=%{l_prefix} \
  +        --with-readline=%{l_prefix} \
  +%if "%{with_curl}" == "yes"
  +        --with-libcurl=%{l_prefix} \
  +%else
  +        --without-libcurl \
  +%endif
  +        --enable-exec \
  +        --enable-keyserver-helpers \
  +        --with-mailprog="%{l_prefix}/sbin/sendmail" \
  +%if "%{with_ldap}" == "yes"
  +        --enable-ldap \
  +%else
  +        --disable-ldap \
  +%endif
  +        --enable-finger \
  +        --enable-http \
  +        --enable-hkp \
  +        --disable-mailto \
  +        --disable-gnupg-iconv \
  +        --without-included-gettext \
  +        --disable-nls
  +    %{l_make} %{l_mflags}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/bin/gpg \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/gpg1
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/gpgv1
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg.1 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg1.1
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv.1 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpgv1.1
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/man/man7/gnupg.7 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man7/gnupg1.7
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/share/gnupg \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/gnupg1
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  +    strip $RPM_BUILD_ROOT%{l_prefix}/libexec/gnupg1/* 2>/dev/null || true
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/gpg.ru.1
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gpg1'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to