|
|
|
@ -1,26 +1,29 @@
|
|
|
|
|
%define __strip %{mingw32_strip}
|
|
|
|
|
%define __objdump %{mingw32_objdump}
|
|
|
|
|
%?mingw_package_header
|
|
|
|
|
|
|
|
|
|
%global mingw_build_win32 1
|
|
|
|
|
%global mingw_build_win64 1
|
|
|
|
|
|
|
|
|
|
%define run_tests 0
|
|
|
|
|
|
|
|
|
|
Name: mingw-libgcrypt
|
|
|
|
|
Version: 1.4.4
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Version: 1.5.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: MinGW Windows gcrypt encryption library
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+ and GPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
URL: ftp://ftp.gnupg.org/gcrypt/libgcrypt/
|
|
|
|
|
Source0: libgcrypt-%{version}-hobbled.tar.bz2
|
|
|
|
|
# The original libgcrypt sources now contain potentially patented ECC
|
|
|
|
|
# cipher support. We have to remove it in the tarball we ship with
|
|
|
|
|
# the hobble-libgcrypt script.
|
|
|
|
|
Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
|
|
|
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
|
|
|
|
|
#Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
|
|
|
|
|
#Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
|
|
|
|
|
Source2: wk@g10code.com
|
|
|
|
|
Source3: hobble-libgcrypt
|
|
|
|
|
|
|
|
|
|
Patch1: libgcrypt-1.4.4-fips-no-access.patch
|
|
|
|
|
Patch0: libgcrypt-mingw64-use-correct-datatype-for-GetProcessWorkingSet.patch
|
|
|
|
|
|
|
|
|
|
# Workaround a bug in libtool:
|
|
|
|
|
# libgcrypt-use-correct-def-file.patch
|
|
|
|
@ -28,11 +31,15 @@ Patch2: libgcrypt-use-correct-def-file.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 49
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
|
BuildRequires: mingw32-libgpg-error
|
|
|
|
|
BuildRequires: mingw32-dlfcn
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc
|
|
|
|
|
BuildRequires: mingw64-binutils
|
|
|
|
|
BuildRequires: mingw64-libgpg-error
|
|
|
|
|
|
|
|
|
|
%if %run_tests
|
|
|
|
|
BuildRequires: wine
|
|
|
|
@ -46,6 +53,7 @@ in GNU Privacy Guard.
|
|
|
|
|
This is a Windows cross-compiled version of the library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Win32
|
|
|
|
|
%package -n mingw32-libgcrypt
|
|
|
|
|
Summary: MinGW Windows gcrypt encryption library
|
|
|
|
|
|
|
|
|
@ -55,19 +63,31 @@ in GNU Privacy Guard.
|
|
|
|
|
|
|
|
|
|
This is a Windows cross-compiled version of the library.
|
|
|
|
|
|
|
|
|
|
# Win64
|
|
|
|
|
%package -n mingw64-libgcrypt
|
|
|
|
|
Summary: MinGW Windows gcrypt encryption library
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-libgcrypt
|
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used
|
|
|
|
|
in GNU Privacy Guard.
|
|
|
|
|
|
|
|
|
|
This is a Windows cross-compiled version of the library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%?mingw_debug_package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n libgcrypt-%{version}
|
|
|
|
|
%{SOURCE3}
|
|
|
|
|
%patch1 -p1 -b .no-access
|
|
|
|
|
%patch0 -p0 -b .win64
|
|
|
|
|
%patch2 -p0 -b .def
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{mingw32_configure} \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-pubkey-ciphers='dsa elgamal rsa'
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
MINGW64_CONFIGURE_ARGS="--disable-asm"
|
|
|
|
|
%mingw_configure --disable-static --enable-pubkey-ciphers='dsa elgamal rsa'
|
|
|
|
|
%mingw_make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -75,8 +95,8 @@ make %{?_smp_mflags}
|
|
|
|
|
# Stupid Wine doesn't load DLLs from the PATH any
|
|
|
|
|
# more, so libtool scripts don't work. As a result
|
|
|
|
|
# we need to use the following Big Hack.
|
|
|
|
|
make -C tests check ||:
|
|
|
|
|
pushd src/.libs
|
|
|
|
|
make -C build_win32/tests check ||:
|
|
|
|
|
pushd build_win32/src/.libs
|
|
|
|
|
for t in $(pwd)/../../tests/*.exe; do
|
|
|
|
|
wine $t
|
|
|
|
|
done
|
|
|
|
@ -85,13 +105,17 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# Remove info pages which duplicate what is in Fedora natively.
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{mingw32_infodir}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{mingw64_infodir}
|
|
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libgcrypt.def
|
|
|
|
|
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libgcrypt.def
|
|
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libgcrypt.la
|
|
|
|
|
rm $RPM_BUILD_ROOT%{mingw64_libdir}/libgcrypt.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-libgcrypt
|
|
|
|
@ -105,8 +129,23 @@ rm $RPM_BUILD_ROOT%{mingw32_libdir}/libgcrypt.la
|
|
|
|
|
%{mingw32_includedir}/gcrypt.h
|
|
|
|
|
%{mingw32_datadir}/aclocal/libgcrypt.m4
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-libgcrypt
|
|
|
|
|
%doc COPYING COPYING.LIB
|
|
|
|
|
%{mingw64_bindir}/dumpsexp.exe
|
|
|
|
|
%{mingw64_bindir}/hmac256.exe
|
|
|
|
|
%{mingw64_bindir}/libgcrypt-11.dll
|
|
|
|
|
%{mingw64_bindir}/libgcrypt-config
|
|
|
|
|
%{mingw64_libdir}/libgcrypt.dll.a
|
|
|
|
|
%{mingw64_includedir}/gcrypt-module.h
|
|
|
|
|
%{mingw64_includedir}/gcrypt.h
|
|
|
|
|
%{mingw64_datadir}/aclocal/libgcrypt.m4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Mar 11 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.5.0-1
|
|
|
|
|
- Update to 1.5.0
|
|
|
|
|
- Added win64 support
|
|
|
|
|
|
|
|
|
|
* Fri Mar 09 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.4-9
|
|
|
|
|
- Remove .la files
|
|
|
|
|
|
|
|
|
|