1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
9 Name: mingw32-libgcrypt
12 Summary: MinGW Windows gcrypt encryption library
14 License: LGPLv2+ and GPLv2+
15 Group: Development/Libraries
17 URL: ftp://ftp.gnupg.org/gcrypt/libgcrypt/
18 # The original libgcrypt sources now contain potentially patented ECC
19 # cipher support. We have to remove it in the tarball we ship with
20 # the hobble-libgcrypt script.
21 Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
22 Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
23 Source2: wk@g10code.com
24 Source3: hobble-libgcrypt
26 Patch1: libgcrypt-1.4.4-fips-no-access.patch
28 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
32 BuildRequires: mingw32-filesystem >= 40
33 BuildRequires: mingw32-gcc
34 BuildRequires: mingw32-binutils
35 BuildRequires: mingw32-libgpg-error
36 BuildRequires: mingw32-dlfcn
44 Libgcrypt is a general purpose crypto library based on the code used
47 This is a Windows cross-compiled version of the library.
51 %setup -q -n libgcrypt-%{version}
53 %patch1 -p1 -b .no-access
57 %{_mingw32_configure} \
59 --enable-pubkey-ciphers='dsa elgamal rsa'
65 # Stupid Wine doesn't load DLLs from the PATH any
66 # more, so libtool scripts don't work. As a result
67 # we need to use the following Big Hack.
68 make -C tests check ||:
70 for t in $(pwd)/../../tests/*.exe; do
78 rm -rf $RPM_BUILD_ROOT
80 make DESTDIR=$RPM_BUILD_ROOT install
82 # Remove info pages which duplicate what is in Fedora natively.
83 rm -rf $RPM_BUILD_ROOT%{_mingw32_infodir}
85 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgcrypt.def
89 rm -rf $RPM_BUILD_ROOT
94 %doc COPYING COPYING.LIB
95 %{_mingw32_bindir}/dumpsexp.exe
96 %{_mingw32_bindir}/hmac256.exe
97 %{_mingw32_bindir}/libgcrypt-11.dll
98 %{_mingw32_bindir}/libgcrypt-config
99 %{_mingw32_libdir}/libgcrypt.dll.a
100 %{_mingw32_libdir}/libgcrypt.la
101 %{_mingw32_includedir}/gcrypt-module.h
102 %{_mingw32_includedir}/gcrypt.h
103 %{_mingw32_datadir}/aclocal/libgcrypt.m4
107 * Fri Feb 6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.4-1
108 - Update to Fedora native version 1.4.4:
109 . Remove potentially patented ECC support.
110 . Do not abort when the fips mode kernel flag is inaccessible
111 due to permissions (#470219).
112 - For review (Michel Alexandre Salim):
114 . Make description clearer.
115 . Distribute the license files.
116 - The license for binaries is GPLv2+, so update the license field.
117 - Add check section (disabled by default).
118 - Why did we set PATH before configure? Removed.
119 - Added BR mingw32-dlfcn suggested by auto-buildrequires.
121 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-3
123 - Disable static libraries.
125 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-2
126 - Rename mingw -> mingw32.
128 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.3-1
129 - Update to 1.4.3 release
131 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-6
134 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-5
135 - Set PATH so it finds gpg-error-config
137 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-4
138 - Remove static library.
140 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-3
141 - Use RPM macros from mingw-filesystem.
143 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-2
144 - List files explicitly and use custom CFLAGS
146 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-1
147 - Initial RPM release, largely based on earlier work from several sources.