commit
256ba0cbec
@ -0,0 +1 @@
|
||||
libgcrypt-1.4.4.tar.bz2
|
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Quit out if anything fails.
|
||||
set -e -x
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code.
|
||||
# EC: ????????? ??/??/2015
|
||||
|
||||
rm -f cipher/ecc.c
|
@ -0,0 +1,13 @@
|
||||
Do not abort when the fips mode flag is simply inaccessible because of
|
||||
insufficient permissions.
|
||||
diff -up libgcrypt-1.4.4/src/fips.c.no-access libgcrypt-1.4.4/src/fips.c
|
||||
--- libgcrypt-1.4.4/src/fips.c.no-access 2009-01-29 17:37:12.000000000 +0100
|
||||
+++ libgcrypt-1.4.4/src/fips.c 2009-01-29 17:37:15.000000000 +0100
|
||||
@@ -155,6 +155,7 @@ _gcry_initialize_fips_mode (int force)
|
||||
fclose (fp);
|
||||
}
|
||||
else if ((saved_errno = errno) != ENOENT
|
||||
+ && saved_errno != EACCES
|
||||
&& !access ("/proc/version", F_OK) )
|
||||
{
|
||||
/* Problem reading the fips file despite that we have the proc
|
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
--- src/libgcrypt.def.orig 2012-02-28 00:16:33.422552508 +0100
|
||||
+++ src/libgcrypt.def 2012-02-28 00:16:59.188018940 +0100
|
||||
@@ -1,3 +1,4 @@
|
||||
+EXPORTS
|
||||
;; libgcrypt.defs - Exported symbols for W32
|
||||
;; Copyright (C) 2003, 2007 Free Software Foundation, Inc.
|
||||
;;
|
||||
@@ -21,8 +22,6 @@
|
||||
;; Note: This file should be updated manually and the ordinals shall
|
||||
;; never be changed. Also check libgcrypt.vers and visibility.h.
|
||||
|
||||
-
|
||||
-EXPORTS
|
||||
gcry_check_version @1
|
||||
gcry_control @2
|
||||
|
@ -0,0 +1,171 @@
|
||||
%define __strip %{_mingw32_strip}
|
||||
%define __objdump %{_mingw32_objdump}
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires %{_mingw32_findrequires}
|
||||
%define __find_provides %{_mingw32_findprovides}
|
||||
|
||||
%define run_tests 0
|
||||
|
||||
Name: mingw32-libgcrypt
|
||||
Version: 1.4.4
|
||||
Release: 7%{?dist}
|
||||
Summary: MinGW Windows gcrypt encryption library
|
||||
|
||||
License: LGPLv2+ and GPLv2+
|
||||
Group: Development/Libraries
|
||||
|
||||
URL: ftp://ftp.gnupg.org/gcrypt/libgcrypt/
|
||||
# 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
|
||||
Source2: wk@g10code.com
|
||||
Source3: hobble-libgcrypt
|
||||
|
||||
Patch1: libgcrypt-1.4.4-fips-no-access.patch
|
||||
|
||||
# Workaround a bug in libtool:
|
||||
# libgcrypt-use-correct-def-file.patch
|
||||
Patch2: libgcrypt-use-correct-def-file.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: mingw32-filesystem >= 49
|
||||
BuildRequires: mingw32-gcc
|
||||
BuildRequires: mingw32-binutils
|
||||
BuildRequires: mingw32-libgpg-error
|
||||
BuildRequires: mingw32-dlfcn
|
||||
|
||||
%if %run_tests
|
||||
BuildRequires: wine
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n libgcrypt-%{version}
|
||||
%{SOURCE3}
|
||||
%patch1 -p1 -b .no-access
|
||||
%patch2 -p0 -b .def
|
||||
|
||||
|
||||
%build
|
||||
%{_mingw32_configure} \
|
||||
--disable-static \
|
||||
--enable-pubkey-ciphers='dsa elgamal rsa'
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%check
|
||||
%if %run_tests
|
||||
# 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
|
||||
for t in $(pwd)/../../tests/*.exe; do
|
||||
wine $t
|
||||
done
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Remove info pages which duplicate what is in Fedora natively.
|
||||
rm -rf $RPM_BUILD_ROOT%{_mingw32_infodir}
|
||||
|
||||
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgcrypt.def
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING COPYING.LIB
|
||||
%{_mingw32_bindir}/dumpsexp.exe
|
||||
%{_mingw32_bindir}/hmac256.exe
|
||||
%{_mingw32_bindir}/libgcrypt-11.dll
|
||||
%{_mingw32_bindir}/libgcrypt-config
|
||||
%{_mingw32_libdir}/libgcrypt.dll.a
|
||||
%{_mingw32_libdir}/libgcrypt.la
|
||||
%{_mingw32_includedir}/gcrypt-module.h
|
||||
%{_mingw32_includedir}/gcrypt.h
|
||||
%{_mingw32_datadir}/aclocal/libgcrypt.m4
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.4.4-7
|
||||
- Rebuild against the mingw-w64 toolchain
|
||||
- Use correct .def file
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.4-2
|
||||
- Rebuild for mingw32-gcc 4.4
|
||||
|
||||
* Fri Feb 6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.4-1
|
||||
- Update to Fedora native version 1.4.4:
|
||||
. Remove potentially patented ECC support.
|
||||
. Do not abort when the fips mode kernel flag is inaccessible
|
||||
due to permissions (#470219).
|
||||
- For review (Michel Alexandre Salim):
|
||||
. Remove *.def file.
|
||||
. Make description clearer.
|
||||
. Distribute the license files.
|
||||
- The license for binaries is GPLv2+, so update the license field.
|
||||
- Add check section (disabled by default).
|
||||
- Why did we set PATH before configure? Removed.
|
||||
- Added BR mingw32-dlfcn suggested by auto-buildrequires.
|
||||
|
||||
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-3
|
||||
- Use _smp_mflags.
|
||||
- Disable static libraries.
|
||||
|
||||
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-2
|
||||
- Rename mingw -> mingw32.
|
||||
|
||||
* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.3-1
|
||||
- Update to 1.4.3 release
|
||||
|
||||
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-6
|
||||
- Remove info pages.
|
||||
|
||||
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-5
|
||||
- Set PATH so it finds gpg-error-config
|
||||
|
||||
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-4
|
||||
- Remove static library.
|
||||
|
||||
* Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-3
|
||||
- Use RPM macros from mingw-filesystem.
|
||||
|
||||
* Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-2
|
||||
- List files explicitly and use custom CFLAGS
|
||||
|
||||
* Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-1
|
||||
- Initial RPM release, largely based on earlier work from several sources.
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue