From 894b658439a6b197f29d65ef735e151aef7a77c6 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 30 Nov 2005 16:47:45 +0000 Subject: [PATCH] remove gnulib (it's the only visible change between the working libksba-0.9.11) besides, it's not used (??) --- libksba-0.9.13-gl.patch | 65 +++++++++++++++++++++++++++++++++++++++++ libksba.spec | 11 ++++++- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 libksba-0.9.13-gl.patch diff --git a/libksba-0.9.13-gl.patch b/libksba-0.9.13-gl.patch new file mode 100644 index 0000000..6dc0755 --- /dev/null +++ b/libksba-0.9.13-gl.patch @@ -0,0 +1,65 @@ +--- libksba-0.9.13/Makefile.am.gl 2005-08-01 09:56:29.000000000 -0500 ++++ libksba-0.9.13/Makefile.am 2005-11-30 10:38:35.000000000 -0600 +@@ -32,7 +32,7 @@ + endif + + +-SUBDIRS = gl src ${tests} doc ++SUBDIRS = src ${tests} doc + + dist-hook: + @set -e; echo "$(VERSION)" > $(distdir)/VERSION +--- libksba-0.9.13/src/Makefile.am.gl 2005-11-11 08:56:33.000000000 -0600 ++++ libksba-0.9.13/src/Makefile.am 2005-11-30 10:37:09.000000000 -0600 +@@ -73,7 +73,7 @@ + asn1-tables.c + + asn1_gentables_SOURCES = asn1-gentables.c asn1-parse.c asn1-func.c oid.c util.c +-asn1_gentables_LDADD = $(GPG_ERROR_LIBS) ../gl/libgnu.la ++asn1_gentables_LDADD = $(GPG_ERROR_LIBS) + # Note that we need to use per-target flags to force renaming of the + # object files to avoid clashes with libtool. + asn1_gentables_CFLAGS = $(AM_CFLAGS) +@@ -81,7 +81,7 @@ + ber_dump_SOURCES = ber-dump.c \ + ber-decoder.c ber-help.c reader.c writer.c asn1-parse.c \ + asn1-func.c oid.c util.c +-ber_dump_LDADD = $(GPG_ERROR_LIBS) ../gl/libgnu.la ++ber_dump_LDADD = $(GPG_ERROR_LIBS) + ber_dump_CFLAGS = $(AM_CFLAGS) + + asn1-parse.c : asn1-func.h +--- libksba-0.9.13/configure.ac.gl 2005-11-24 04:42:34.000000000 -0600 ++++ libksba-0.9.13/configure.ac 2005-11-30 10:37:09.000000000 -0600 +@@ -75,7 +75,7 @@ + AC_PROG_INSTALL + AC_PROG_LN_S + AC_PROG_MAKE_SET +-gl_EARLY ++#gl_EARLY + #AC_ARG_PROGRAM + AC_PROG_YACC + AC_C_INLINE +@@ -141,10 +141,10 @@ + + + # GNUlib checks +-gl_SOURCE_BASE(gl) +-gl_M4_BASE(gl/m4) +-gl_MODULES(alloca) +-gl_INIT ++#gl_SOURCE_BASE(gl) ++#gl_M4_BASE(gl/m4) ++#gl_MODULES(alloca) ++#gl_INIT + + # To be used in ksba-config + KSBA_CONFIG_LIBS="-lksba" +@@ -157,7 +157,6 @@ + + AC_CONFIG_FILES([ + Makefile +-gl/Makefile + src/Makefile + src/ksba-config + tests/Makefile diff --git a/libksba.spec b/libksba.spec index 7196ef5..8a5fb3c 100644 --- a/libksba.spec +++ b/libksba.spec @@ -1,7 +1,7 @@ Summary: X.509 library Name: libksba Version: 0.9.13 -Release: 1%{?dist} +Release: 1%{?dist}.1 #Version: 0.9.11 #Release: 3%{?dist} License: GPL @@ -11,8 +11,13 @@ Source0: ftp://ftp.gnupg.org/gcrypt/alpha/libksba/libksba-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/alpha/libksba/libksba-%{version}.tar.bz2.sig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Try to help x86_64 gnupg2/gpgsm crashes/issues +Patch1: libksba-0.9.13-gl.patch + BuildRequires: libgpg-error >= 0.7 BuildRequires: libgcrypt-devel >= 1.2.0 +BuildRequires: automake +BuildRequires: bison # Version 0.9.12-1 had issues (see gnupg2 pkg, 'make check' # failures on x86_64), drop when resolved @@ -43,6 +48,10 @@ Obsoletes: libksba-devel = 0.9.12-1%{?dist} %prep %setup -q +%patch1 -p1 -b .gl + +./autogen.sh + %build %configure \