Fri, 22 Oct 2010 19:11:05 +0200
Import package vendor original specs for necessary manipulations.
gpg-error/gpg-error.patch | file | annotate | diff | comparison | revisions | |
gpg-error/gpg-error.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gpg-error/gpg-error.patch Fri Oct 22 19:11:05 2010 +0200 1.3 @@ -0,0 +1,19 @@ 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 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gpg-error/gpg-error.spec Fri Oct 22 19:11:05 2010 +0200 2.3 @@ -0,0 +1,83 @@ 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: 20100722 2.39 + 2.40 +# list of sources 2.41 +Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-%{version}.tar.gz 2.42 +Patch0: gpg-error.patch 2.43 + 2.44 +# build information 2.45 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gawk 2.46 +PreReq: OpenPKG, openpkg >= 20100101 2.47 + 2.48 +%description 2.49 + This is a library that defines common error values for all GnuPG 2.50 + components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, 2.51 + pinentry, SmartCard Daemon and possibly more in the future. 2.52 + 2.53 +%track 2.54 + prog gpg-error = { 2.55 + version = %{version} 2.56 + url = ftp://ftp.gnupg.org/gcrypt/libgpg-error/ 2.57 + regex = gpg-error-(__VER__)\.tar\.gz 2.58 + } 2.59 + 2.60 +%prep 2.61 + %setup -q -n libgpg-error-%{version} 2.62 + %patch -p0 2.63 + 2.64 +%build 2.65 + CC="%{l_cc}" \ 2.66 + CXX="%{l_cxx}" \ 2.67 + CFLAGS="%{l_cflags -O}" \ 2.68 + CXXFLAGS="%{l_cxxflags -O}" \ 2.69 + CPPFLAGS="%{l_cppflags}" \ 2.70 + LDFLAGS="%{l_ldflags}" \ 2.71 + ./configure \ 2.72 + --prefix=%{l_prefix} \ 2.73 + --disable-nls \ 2.74 + --enable-shared=no 2.75 + %{l_make} %{l_mflags -O} 2.76 + 2.77 +%install 2.78 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.79 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.80 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 2.81 + %{l_files_std} 2.82 + 2.83 +%files -f files 2.84 + 2.85 +%clean 2.86 +