Fri, 22 Oct 2010 22:51:26 +0200
Import package vendor original specs for necessary manipulations.
pinentry/pinentry.patch | file | annotate | diff | comparison | revisions | |
pinentry/pinentry.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/pinentry/pinentry.patch Fri Oct 22 22:51:26 2010 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +Index: gtk+-2/gtksecentry.c 1.5 +--- gtk+-2/gtksecentry.c.orig 2004-09-02 03:47:13 +0200 1.6 ++++ gtk+-2/gtksecentry.c 2006-11-15 21:27:51 +0100 1.7 +@@ -39,6 +39,16 @@ 1.8 + #include <gdk/gdkkeysyms.h> 1.9 + #include <gtk/gtk.h> 1.10 + 1.11 ++#define g_malloc my_g_malloc 1.12 ++#define g_malloc0 my_g_malloc0 1.13 ++#define g_realloc my_g_realloc 1.14 ++#define g_free my_g_free 1.15 ++ 1.16 ++gpointer g_malloc(gulong size); 1.17 ++gpointer g_malloc0(gulong size); 1.18 ++gpointer g_realloc(gpointer mem, gulong size); 1.19 ++void g_free(gpointer mem); 1.20 ++ 1.21 + #include "gtksecentry.h" 1.22 + #include "memory.h" 1.23 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/pinentry/pinentry.spec Fri Oct 22 22:51:26 2010 +0200 2.3 @@ -0,0 +1,104 @@ 2.4 +## 2.5 +## pinentry.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: pinentry 2.29 +Summary: Interactive PIN Entry Dialogs 2.30 +URL: http://www.gnupg.org/related_software/pinentry/ 2.31 +Vendor: R. Bihlmeyer, W. Koch, S. Hansen, M. Brinkmann 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: PLUS 2.35 +Group: Terminal 2.36 +License: GPL 2.37 +Version: 0.8.0 2.38 +Release: 20100303 2.39 + 2.40 +# package options 2.41 +%option with_x11 no 2.42 + 2.43 +# list of sources 2.44 +Source0: ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-%{version}.tar.gz 2.45 +Patch0: pinentry.patch 2.46 + 2.47 +# build information 2.48 +BuildPreReq: OpenPKG, openpkg >= 20100101 2.49 +PreReq: OpenPKG, openpkg >= 20100101 2.50 +BuildPreReq: ncurses, libiconv 2.51 +PreReq: ncurses, libiconv 2.52 +%if "%{with_x11}" == "yes" 2.53 +BuildPreReq: gtk2 2.54 +PreReq: gtk2 2.55 +%endif 2.56 + 2.57 +%description 2.58 + PINentry is a collection of simple PIN or passphrase entry dialogs 2.59 + which utilize the Assuan protocol as described by the GnuPG 2.60 + and Aegypten projects. It allows applications like GnuPG to 2.61 + interactively request PINs or passphrases. 2.62 + 2.63 +%track 2.64 + prog pinentry = { 2.65 + version = %{version} 2.66 + url = ftp://ftp.gnupg.org/gcrypt/pinentry/ 2.67 + regex = pinentry-(__VER__)\.tar\.gz 2.68 + } 2.69 + 2.70 +%prep 2.71 + %setup -q 2.72 + %patch -p0 2.73 + 2.74 +%build 2.75 + CC="%{l_cc}" \ 2.76 + CXX="%{l_cxx}" \ 2.77 + CFLAGS="%{l_cflags -O}" \ 2.78 + CXXFLAGS="%{l_cxxflags -O}" \ 2.79 + CPPFLAGS="%{l_cppflags ncurses .}" \ 2.80 + LDFLAGS="%{l_ldflags}" \ 2.81 + ./configure \ 2.82 + --prefix=%{l_prefix} \ 2.83 + --infodir=%{l_prefix}/info \ 2.84 + --enable-pinentry-curses \ 2.85 + --enable-fallback-curses \ 2.86 + --with-ncurses-include-dir=%{l_prefix}/include/ncurses \ 2.87 +%if "%{with_x11}" == "yes" 2.88 + --with-x \ 2.89 + --enable-pinentry-gtk2 \ 2.90 +%else 2.91 + --disable-pinentry-gtk2 \ 2.92 +%endif 2.93 + --disable-pinentry-gtk \ 2.94 + --disable-pinentry-qt \ 2.95 + --disable-threading 2.96 + %{l_make} %{l_mflags -O} 2.97 + 2.98 +%install 2.99 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.100 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.101 + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 2.102 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.103 + 2.104 +%files -f files 2.105 + 2.106 +%clean 2.107 +