No longer track simple boilerplate adjustments to upstream vendor packages.

Wed, 21 Sep 2011 14:00:37 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 21 Sep 2011 14:00:37 +0200
changeset 375
255a25bcf7b0
parent 374
c158bb6622e1
child 376
8f552d1cd671

No longer track simple boilerplate adjustments to upstream vendor packages.

gpg-error/gpg-error.patch file | annotate | diff | comparison | revisions
gpg-error/gpg-error.spec file | annotate | diff | comparison | revisions
libassuan/libassuan.patch file | annotate | diff | comparison | revisions
libassuan/libassuan.spec file | annotate | diff | comparison | revisions
libksba/libksba.spec file | annotate | diff | comparison | revisions
pinentry/pinentry.patch file | annotate | diff | comparison | revisions
pinentry/pinentry.spec file | annotate | diff | comparison | revisions
     1.1 --- a/gpg-error/gpg-error.patch	Wed Sep 21 13:55:11 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,19 +0,0 @@
     1.4 -Index: src/gpg-error.c
     1.5 ---- src/gpg-error.c.orig	2006-09-05 20:21:14 +0200
     1.6 -+++ src/gpg-error.c	2006-09-14 16:59:50 +0200
     1.7 -@@ -77,11 +77,15 @@
     1.8 -   locale_dir = get_locale_dir ();
     1.9 -   if (locale_dir)
    1.10 -     {
    1.11 -+#ifdef ENABLE_NLS
    1.12 -       bindtextdomain (PACKAGE, locale_dir);
    1.13 -+#endif
    1.14 -       drop_locale_dir (locale_dir);
    1.15 -     }
    1.16 -+#ifdef ENABLE_NLS
    1.17 -   textdomain (PACKAGE);
    1.18 - #endif
    1.19 -+#endif
    1.20 - }
    1.21 - 
    1.22 - 
     2.1 --- a/gpg-error/gpg-error.spec	Wed Sep 21 13:55:11 2011 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,87 +0,0 @@
     2.4 -##
     2.5 -##  gpg-error.spec -- OpenPKG RPM Package Specification
     2.6 -##  Copyright (c) 2000-2010 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 information
    2.28 -Name:         gpg-error
    2.29 -Summary:      GnuPG Error Library
    2.30 -URL:          ftp://ftp.gnupg.org/gcrypt/libgpg-error/
    2.31 -Vendor:       g10 Code GmbH
    2.32 -Packager:     OpenPKG Foundation e.V.
    2.33 -Distribution: OpenPKG Community
    2.34 -Class:        PLUS
    2.35 -Group:        Cryptography
    2.36 -License:      LGPL
    2.37 -Version:      1.9
    2.38 -Release:      20101020
    2.39 -
    2.40 -#   list of sources
    2.41 -Prefix:       %{l_prefix}
    2.42 -BuildRoot:    %{l_buildroot}
    2.43 -Source0:      ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-%{version}.tar.gz
    2.44 -Patch0:       gpg-error.patch
    2.45 -
    2.46 -#   build information
    2.47 -BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc, gawk
    2.48 -PreReq:       OpenPKG, openpkg >= 20100101
    2.49 -
    2.50 -%description
    2.51 -    This is a library that defines common error values for all GnuPG
    2.52 -    components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
    2.53 -    pinentry, SmartCard Daemon and possibly more in the future.
    2.54 -
    2.55 -%track
    2.56 -    prog gpg-error = {
    2.57 -        version   = %{version}
    2.58 -        url       = ftp://ftp.gnupg.org/gcrypt/libgpg-error/
    2.59 -        regex     = gpg-error-(__VER__)\.tar\.gz
    2.60 -    }
    2.61 -
    2.62 -%prep
    2.63 -    %setup -q -n libgpg-error-%{version}
    2.64 -    %patch -p0
    2.65 -
    2.66 -%build
    2.67 -    CC="%{l_cc}" \
    2.68 -    CXX="%{l_cxx}" \
    2.69 -    CFLAGS="%{l_cflags -O}" \
    2.70 -    CXXFLAGS="%{l_cxxflags -O}" \
    2.71 -    CPPFLAGS="%{l_cppflags}" \
    2.72 -    LDFLAGS="%{l_ldflags}" \
    2.73 -    ./configure \
    2.74 -        --prefix=%{l_prefix} \
    2.75 -        --disable-nls \
    2.76 -        --enable-shared=no
    2.77 -    %{l_make} %{l_mflags -O}
    2.78 -
    2.79 -%install
    2.80 -    rm -rf $RPM_BUILD_ROOT
    2.81 -    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    2.82 -    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    2.83 -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    2.84 -        %{l_files_std}
    2.85 -
    2.86 -%files -f files
    2.87 -
    2.88 -%clean
    2.89 -    rm -rf $RPM_BUILD_ROOT
    2.90 -
     3.1 --- a/libassuan/libassuan.patch	Wed Sep 21 13:55:11 2011 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,30 +0,0 @@
     3.4 -Index: libassuan-1.0.5/src/libassuan-config.in
     3.5 ---- libassuan-1.0.5/src/libassuan-config.in.orig	2006-10-09 12:41:47 +0200
     3.6 -+++ libassuan-1.0.5/src/libassuan-config.in	2006-11-15 20:25:37 +0100
     3.7 -@@ -105,6 +105,11 @@
     3.8 -   esac
     3.9 -   shift
    3.10 - done
    3.11 -+    
    3.12 -+if test "x${thread_module}" = "x-pth"; then
    3.13 -+    cflags="$cflags `$prefix/bin/pth-config --cflags`"
    3.14 -+    extralibs="$extralibs `$prefix/bin/pth-config --libs`"
    3.15 -+fi
    3.16 - 
    3.17 - if test "$echo_prefix" = "yes"; then
    3.18 -     echo $prefix
    3.19 -Index: libassuan-2.0.1/src/libassuan-config.in
    3.20 ---- libassuan-2.0.1/src/libassuan-config.in.orig	2006-10-09 12:41:47 +0200
    3.21 -+++ libassuan-2.0.1/src/libassuan-config.in	2006-11-15 20:25:37 +0100
    3.22 -@@ -105,6 +105,11 @@
    3.23 -   esac
    3.24 -   shift
    3.25 - done
    3.26 -+    
    3.27 -+if test "x${thread_module}" = "x-pth"; then
    3.28 -+    cflags="$cflags `$prefix/bin/pth-config --cflags`"
    3.29 -+    extralibs="$extralibs `$prefix/bin/pth-config --libs`"
    3.30 -+fi
    3.31 - 
    3.32 - if test "$echo_prefix" = "yes"; then
    3.33 -     echo $prefix
     4.1 --- a/libassuan/libassuan.spec	Wed Sep 21 13:55:11 2011 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,133 +0,0 @@
     4.4 -##
     4.5 -##  libassuan.spec -- OpenPKG RPM Package Specification
     4.6 -##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     4.7 -##
     4.8 -##  Permission to use, copy, modify, and distribute this software for
     4.9 -##  any purpose with or without fee is hereby granted, provided that
    4.10 -##  the above copyright notice and this permission notice appear in all
    4.11 -##  copies.
    4.12 -##
    4.13 -##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    4.14 -##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    4.15 -##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    4.16 -##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    4.17 -##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    4.18 -##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    4.19 -##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    4.20 -##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    4.21 -##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    4.22 -##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    4.23 -##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    4.24 -##  SUCH DAMAGE.
    4.25 -##
    4.26 -
    4.27 -#   package version
    4.28 -%define       V_assuan2  2.0.1
    4.29 -%define       V_assuan1  1.0.5
    4.30 -
    4.31 -#   package information
    4.32 -Name:         libassuan
    4.33 -Summary:      GnuPG IPC Library
    4.34 -URL:          http://www.gnupg.org/related_software/libassuan/
    4.35 -Vendor:       Werner Koch et al.
    4.36 -Packager:     OpenPKG Foundation e.V.
    4.37 -Distribution: OpenPKG Community
    4.38 -Class:        PLUS
    4.39 -Group:        Libraries
    4.40 -License:      GPL/LGPL
    4.41 -Version:      %{V_assuan2}
    4.42 -Release:      20101020
    4.43 -
    4.44 -#   list of sources
    4.45 -Source0:      ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan1}.tar.bz2
    4.46 -Source1:      ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan2}.tar.bz2
    4.47 -Patch0:       libassuan.patch
    4.48 -
    4.49 -#   build information
    4.50 -Prefix:       %{l_prefix}
    4.51 -BuildRoot:    %{l_buildroot}
    4.52 -BuildPreReq:  OpenPKG, openpkg >= 20100101
    4.53 -PreReq:       OpenPKG, openpkg >= 20100101
    4.54 -BuildPreReq:  pth, gpg-error
    4.55 -PreReq:       pth, gpg-error
    4.56 -
    4.57 -%description
    4.58 -    Libassuan is the IPC library used by some GnuPG related software.
    4.59 -
    4.60 -%track
    4.61 -    prog libassuan:libassuan1 = {
    4.62 -        version   = %{V_assuan1}
    4.63 -        url       = ftp://ftp.gnupg.org/gcrypt/libassuan/
    4.64 -        regex     = libassuan-(1\.\d+\.\d+)\.tar\.bz2
    4.65 -    }
    4.66 -    prog libassuan:libassuan2 = {
    4.67 -        version   = %{V_assuan2}
    4.68 -        url       = ftp://ftp.gnupg.org/gcrypt/libassuan/
    4.69 -        regex     = libassuan-(2\.\d+\.\d+)\.tar\.bz2
    4.70 -    }
    4.71 -
    4.72 -%prep
    4.73 -    %setup -q -c
    4.74 -    %setup -q -D -a 1
    4.75 -    %patch -p0
    4.76 -
    4.77 -%build
    4.78 -    ( cd libassuan-%{V_assuan1}
    4.79 -      CC="%{l_cc}" \
    4.80 -      CFLAGS="%{l_cflags -O}" \
    4.81 -      CPPFLAGS="%{l_cppflags pth .}" \
    4.82 -      LDFLAGS="%{l_ldflags}" \
    4.83 -      ./configure \
    4.84 -          --prefix=%{l_prefix} \
    4.85 -          --infodir=%{l_prefix}/info \
    4.86 -          --mandir=%{l_prefix}/man \
    4.87 -          --with-pth-prefix=%{l_prefix} \
    4.88 -          --disable-shared
    4.89 -      %{l_make} %{l_mflags -O}
    4.90 -    ) || exit $?
    4.91 -    ( cd libassuan-%{V_assuan2}
    4.92 -      CC="%{l_cc}" \
    4.93 -      CFLAGS="%{l_cflags -O}" \
    4.94 -      CPPFLAGS="%{l_cppflags pth .}" \
    4.95 -      LDFLAGS="%{l_ldflags}" \
    4.96 -      ./configure \
    4.97 -          --prefix=%{l_prefix} \
    4.98 -          --infodir=%{l_prefix}/info \
    4.99 -          --mandir=%{l_prefix}/man \
   4.100 -          --with-pth-prefix=%{l_prefix} \
   4.101 -          --disable-shared
   4.102 -      %{l_make} %{l_mflags -O}
   4.103 -    ) || exit $?
   4.104 -
   4.105 -%install
   4.106 -    rm -rf $RPM_BUILD_ROOT
   4.107 -    ( cd libassuan-%{V_assuan1}
   4.108 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   4.109 -      mv  $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan-config \
   4.110 -          $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config
   4.111 -      %{l_shtool} subst \
   4.112 -          -e 's;-lassuan;-lassuan1;g' \
   4.113 -          $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config
   4.114 -      mv  $RPM_BUILD_ROOT%{l_prefix}/include/assuan.h \
   4.115 -          $RPM_BUILD_ROOT%{l_prefix}/include/assuan1.h
   4.116 -      mv  $RPM_BUILD_ROOT%{l_prefix}/info/assuan.info \
   4.117 -          $RPM_BUILD_ROOT%{l_prefix}/info/assuan1.info
   4.118 -      mv  $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.a \
   4.119 -          $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1.a
   4.120 -      mv  $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan-pth.a \
   4.121 -          $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1-pth.a
   4.122 -      rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.la
   4.123 -      mv  $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan.m4 \
   4.124 -          $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan1.m4
   4.125 -    ) || exit $?
   4.126 -    ( cd libassuan-%{V_assuan2}
   4.127 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   4.128 -    ) || exit $?
   4.129 -    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
   4.130 -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   4.131 -
   4.132 -%files -f files
   4.133 -
   4.134 -%clean
   4.135 -    rm -rf $RPM_BUILD_ROOT
   4.136 -
     5.1 --- a/libksba/libksba.spec	Wed Sep 21 13:55:11 2011 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,84 +0,0 @@
     5.4 -##
     5.5 -##  libksba.spec -- OpenPKG RPM Package Specification
     5.6 -##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     5.7 -##
     5.8 -##  Permission to use, copy, modify, and distribute this software for
     5.9 -##  any purpose with or without fee is hereby granted, provided that
    5.10 -##  the above copyright notice and this permission notice appear in all
    5.11 -##  copies.
    5.12 -##
    5.13 -##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    5.14 -##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    5.15 -##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    5.16 -##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    5.17 -##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    5.18 -##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    5.19 -##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    5.20 -##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    5.21 -##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    5.22 -##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    5.23 -##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    5.24 -##  SUCH DAMAGE.
    5.25 -##
    5.26 -
    5.27 -#   package information
    5.28 -Name:         libksba
    5.29 -Summary:      CMS/X.509 Access Library
    5.30 -URL:          http://www.gnupg.org/related_software/libksba/
    5.31 -Vendor:       Werner Koch et al.
    5.32 -Packager:     OpenPKG Foundation e.V.
    5.33 -Distribution: OpenPKG Community
    5.34 -Class:        PLUS
    5.35 -Group:        Cryptography
    5.36 -License:      GPL/LGPL
    5.37 -Version:      1.0.8
    5.38 -Release:      20101020
    5.39 -
    5.40 -#   list of sources
    5.41 -Source0:      ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2
    5.42 -
    5.43 -#   build information
    5.44 -Prefix:       %{l_prefix}
    5.45 -BuildRoot:    %{l_buildroot}
    5.46 -BuildPreReq:  OpenPKG, openpkg >= 20100101
    5.47 -PreReq:       OpenPKG, openpkg >= 20100101
    5.48 -BuildPreReq:  gpg-error
    5.49 -PreReq:       gpg-error
    5.50 -
    5.51 -%description
    5.52 -    LibKSBA is the CMS and X.509 access library used by some GnuPG
    5.53 -    related software.
    5.54 -
    5.55 -%track
    5.56 -    prog libksba = {
    5.57 -        version   = %{version}
    5.58 -        url       = ftp://ftp.gnupg.org/gcrypt/libksba/
    5.59 -        regex     = libksba-(__VER__)\.tar\.bz2
    5.60 -    }
    5.61 -
    5.62 -%prep
    5.63 -    %setup -q
    5.64 -
    5.65 -%build
    5.66 -    CC="%{l_cc}" \
    5.67 -    CFLAGS="%{l_cflags -O}" \
    5.68 -    CPPFLAGS="%{l_cppflags}" \
    5.69 -    LDFLAGS="%{l_ldflags}" \
    5.70 -    ./configure \
    5.71 -        --prefix=%{l_prefix} \
    5.72 -        --infodir=%{l_prefix}/info \
    5.73 -        --with-gpg-error-prefix=%{l_prefix} \
    5.74 -        --disable-shared
    5.75 -    %{l_make} %{l_mflags -O}
    5.76 -
    5.77 -%install
    5.78 -    rm -rf $RPM_BUILD_ROOT
    5.79 -    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    5.80 -    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
    5.81 -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    5.82 -
    5.83 -%files -f files
    5.84 -
    5.85 -%clean
    5.86 -    rm -rf $RPM_BUILD_ROOT
    5.87 -
     6.1 --- a/pinentry/pinentry.patch	Wed Sep 21 13:55:11 2011 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,20 +0,0 @@
     6.4 -Index: gtk+-2/gtksecentry.c
     6.5 ---- gtk+-2/gtksecentry.c.orig	2004-09-02 03:47:13 +0200
     6.6 -+++ gtk+-2/gtksecentry.c	2006-11-15 21:27:51 +0100
     6.7 -@@ -39,6 +39,16 @@
     6.8 - #include <gdk/gdkkeysyms.h>
     6.9 - #include <gtk/gtk.h>
    6.10 - 
    6.11 -+#define g_malloc my_g_malloc
    6.12 -+#define g_malloc0 my_g_malloc0
    6.13 -+#define g_realloc my_g_realloc
    6.14 -+#define g_free my_g_free
    6.15 -+
    6.16 -+gpointer g_malloc(gulong size);
    6.17 -+gpointer g_malloc0(gulong size);
    6.18 -+gpointer g_realloc(gpointer mem, gulong size);
    6.19 -+void g_free(gpointer mem);
    6.20 -+
    6.21 - #include "gtksecentry.h"
    6.22 - #include "memory.h"
    6.23 - 
     7.1 --- a/pinentry/pinentry.spec	Wed Sep 21 13:55:11 2011 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,108 +0,0 @@
     7.4 -##
     7.5 -##  pinentry.spec -- OpenPKG RPM Package Specification
     7.6 -##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     7.7 -##
     7.8 -##  Permission to use, copy, modify, and distribute this software for
     7.9 -##  any purpose with or without fee is hereby granted, provided that
    7.10 -##  the above copyright notice and this permission notice appear in all
    7.11 -##  copies.
    7.12 -##
    7.13 -##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    7.14 -##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    7.15 -##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    7.16 -##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    7.17 -##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    7.18 -##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    7.19 -##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    7.20 -##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    7.21 -##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    7.22 -##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    7.23 -##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    7.24 -##  SUCH DAMAGE.
    7.25 -##
    7.26 -
    7.27 -#   package information
    7.28 -Name:         pinentry
    7.29 -Summary:      Interactive PIN Entry Dialogs
    7.30 -URL:          http://www.gnupg.org/related_software/pinentry/
    7.31 -Vendor:       R. Bihlmeyer, W. Koch, S. Hansen, M. Brinkmann
    7.32 -Packager:     OpenPKG Foundation e.V.
    7.33 -Distribution: OpenPKG Community
    7.34 -Class:        PLUS
    7.35 -Group:        Terminal
    7.36 -License:      GPL
    7.37 -Version:      0.8.0
    7.38 -Release:      20101020
    7.39 -
    7.40 -#   package options
    7.41 -%option       with_x11  no
    7.42 -
    7.43 -#   list of sources
    7.44 -Source0:      ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-%{version}.tar.gz
    7.45 -Patch0:       pinentry.patch
    7.46 -
    7.47 -#   build information
    7.48 -Prefix:       %{l_prefix}
    7.49 -BuildRoot:    %{l_buildroot}
    7.50 -BuildPreReq:  OpenPKG, openpkg >= 20100101
    7.51 -PreReq:       OpenPKG, openpkg >= 20100101
    7.52 -BuildPreReq:  ncurses, libiconv
    7.53 -PreReq:       ncurses, libiconv
    7.54 -%if "%{with_x11}" == "yes"
    7.55 -BuildPreReq:  gtk2
    7.56 -PreReq:       gtk2
    7.57 -%endif
    7.58 -
    7.59 -%description
    7.60 -    PINentry is a collection of simple PIN or passphrase entry dialogs
    7.61 -    which utilize the Assuan protocol as described by the GnuPG
    7.62 -    and Aegypten projects. It allows applications like GnuPG to
    7.63 -    interactively request PINs or passphrases.
    7.64 -
    7.65 -%track
    7.66 -    prog pinentry = {
    7.67 -        version   = %{version}
    7.68 -        url       = ftp://ftp.gnupg.org/gcrypt/pinentry/
    7.69 -        regex     = pinentry-(__VER__)\.tar\.gz
    7.70 -    }
    7.71 -
    7.72 -%prep
    7.73 -    %setup -q
    7.74 -    %patch -p0
    7.75 -
    7.76 -%build
    7.77 -    CC="%{l_cc}" \
    7.78 -    CXX="%{l_cxx}" \
    7.79 -    CFLAGS="%{l_cflags -O}" \
    7.80 -    CXXFLAGS="%{l_cxxflags -O}" \
    7.81 -    CPPFLAGS="%{l_cppflags ncurses .}" \
    7.82 -    LDFLAGS="%{l_ldflags}" \
    7.83 -    ./configure \
    7.84 -        --prefix=%{l_prefix} \
    7.85 -        --infodir=%{l_prefix}/info \
    7.86 -        --enable-pinentry-curses \
    7.87 -        --enable-fallback-curses \
    7.88 -        --with-ncurses-include-dir=%{l_prefix}/include/ncurses \
    7.89 -%if "%{with_x11}" == "yes"
    7.90 -        --with-x \
    7.91 -        --enable-pinentry-gtk2 \
    7.92 -%else
    7.93 -        --disable-pinentry-gtk2 \
    7.94 -%endif
    7.95 -        --disable-pinentry-gtk \
    7.96 -        --disable-pinentry-qt \
    7.97 -        --disable-threading
    7.98 -    %{l_make} %{l_mflags -O}
    7.99 -
   7.100 -%install
   7.101 -    rm -rf $RPM_BUILD_ROOT
   7.102 -    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   7.103 -    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   7.104 -    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
   7.105 -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   7.106 -
   7.107 -%files -f files
   7.108 -
   7.109 -%clean
   7.110 -    rm -rf $RPM_BUILD_ROOT
   7.111 -

mercurial