Blame mingw-libgcrypt.spec

26aad1f
%define __strip %{mingw32_strip}
26aad1f
%define __objdump %{mingw32_objdump}
f29153f
f29153f
%define run_tests 0
f29153f
66f05ce
Name:           mingw-libgcrypt
f29153f
Version:        1.4.4
cab705e
Release:        9%{?dist}
f29153f
Summary:        MinGW Windows gcrypt encryption library
f29153f
f29153f
License:        LGPLv2+ and GPLv2+
f29153f
Group:          Development/Libraries
f29153f
f29153f
URL:            ftp://ftp.gnupg.org/gcrypt/libgcrypt/
f29153f
# The original libgcrypt sources now contain potentially patented ECC
f29153f
# cipher support. We have to remove it in the tarball we ship with
f29153f
# the hobble-libgcrypt script.
f29153f
Source0:        ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
f29153f
Source1:        ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
f29153f
Source2:        wk@g10code.com
f29153f
Source3:        hobble-libgcrypt
f29153f
f29153f
Patch1:         libgcrypt-1.4.4-fips-no-access.patch
f29153f
cb1fb41
# Workaround a bug in libtool:
cb1fb41
# libgcrypt-use-correct-def-file.patch
cb1fb41
Patch2:         libgcrypt-use-correct-def-file.patch
cb1fb41
f29153f
BuildArch:      noarch
f29153f
fd69b94
BuildRequires:  mingw32-filesystem >= 49
f29153f
BuildRequires:  mingw32-gcc
f29153f
BuildRequires:  mingw32-binutils
f29153f
BuildRequires:  mingw32-libgpg-error
f29153f
BuildRequires:  mingw32-dlfcn
f29153f
f29153f
%if %run_tests
f29153f
BuildRequires:  wine
f29153f
%endif
f29153f
f29153f
f29153f
%description
f29153f
Libgcrypt is a general purpose crypto library based on the code used
f29153f
in GNU Privacy Guard.
f29153f
f29153f
This is a Windows cross-compiled version of the library.
f29153f
f29153f
66f05ce
%package -n mingw32-libgcrypt
66f05ce
Summary:        MinGW Windows gcrypt encryption library
66f05ce
66f05ce
%description -n mingw32-libgcrypt
66f05ce
Libgcrypt is a general purpose crypto library based on the code used
66f05ce
in GNU Privacy Guard.
66f05ce
66f05ce
This is a Windows cross-compiled version of the library.
66f05ce
66f05ce
f29153f
%prep
f29153f
%setup -q -n libgcrypt-%{version}
f29153f
%{SOURCE3}
f29153f
%patch1 -p1 -b .no-access
cb1fb41
%patch2 -p0 -b .def
f29153f
f29153f
f29153f
%build
26aad1f
%{mingw32_configure} \
f29153f
  --disable-static \
f29153f
  --enable-pubkey-ciphers='dsa elgamal rsa'
f29153f
make %{?_smp_mflags}
f29153f
f29153f
f29153f
%check
f29153f
%if %run_tests
f29153f
# Stupid Wine doesn't load DLLs from the PATH any
f29153f
# more, so libtool scripts don't work.  As a result
f29153f
# we need to use the following Big Hack.
f29153f
make -C tests check ||:
f29153f
pushd src/.libs
f29153f
for t in $(pwd)/../../tests/*.exe; do
f29153f
  wine $t
f29153f
done
f29153f
popd
f29153f
%endif
f29153f
f29153f
f29153f
%install
f29153f
make DESTDIR=$RPM_BUILD_ROOT install
f29153f
f29153f
# Remove info pages which duplicate what is in Fedora natively.
26aad1f
rm -rf $RPM_BUILD_ROOT%{mingw32_infodir}
f29153f
26aad1f
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libgcrypt.def
cab705e
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libgcrypt.la
f29153f
f29153f
66f05ce
%files -n mingw32-libgcrypt
f29153f
%doc COPYING COPYING.LIB
26aad1f
%{mingw32_bindir}/dumpsexp.exe
26aad1f
%{mingw32_bindir}/hmac256.exe
26aad1f
%{mingw32_bindir}/libgcrypt-11.dll
26aad1f
%{mingw32_bindir}/libgcrypt-config
26aad1f
%{mingw32_libdir}/libgcrypt.dll.a
26aad1f
%{mingw32_includedir}/gcrypt-module.h
26aad1f
%{mingw32_includedir}/gcrypt.h
26aad1f
%{mingw32_datadir}/aclocal/libgcrypt.m4
f29153f
f29153f
f29153f
%changelog
cab705e
* Fri Mar 09 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.4-9
cab705e
- Remove .la files
cab705e
66f05ce
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.4-8
66f05ce
- Renamed the source package to mingw-libgcrypt (#800428)
573f602
- Spec clean up
66f05ce
53673d2
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.4.4-7
53673d2
- Rebuild against the mingw-w64 toolchain
cb1fb41
- Use correct .def file
53673d2
25e078d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-6
25e078d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
25e078d
f10640e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-5
f10640e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f10640e
7c9b190
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-4
7c9b190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7c9b190
d41daed
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
d41daed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d41daed
fd69b94
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.4-2
fd69b94
- Rebuild for mingw32-gcc 4.4
fd69b94
f29153f
* Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.4-1
f29153f
- Update to Fedora native version 1.4.4:
f29153f
  . Remove potentially patented ECC support.
f29153f
  . Do not abort when the fips mode kernel flag is inaccessible
f29153f
    due to permissions (#470219).
f29153f
- For review (Michel Alexandre Salim):
f29153f
  . Remove *.def file.
f29153f
  . Make description clearer.
f29153f
  . Distribute the license files.
f29153f
- The license for binaries is GPLv2+, so update the license field.
f29153f
- Add check section (disabled by default).
f29153f
- Why did we set PATH before configure? Removed.
f29153f
- Added BR mingw32-dlfcn suggested by auto-buildrequires.
f29153f
f29153f
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-3
f29153f
- Use _smp_mflags.
f29153f
- Disable static libraries.
f29153f
f29153f
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.3-2
f29153f
- Rename mingw -> mingw32.
f29153f
f29153f
* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.3-1
f29153f
- Update to 1.4.3 release
f29153f
f29153f
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-6
f29153f
- Remove info pages.
f29153f
f29153f
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-5
f29153f
- Set PATH so it finds gpg-error-config
f29153f
f29153f
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-4
f29153f
- Remove static library.
f29153f
f29153f
* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-3
f29153f
- Use RPM macros from mingw-filesystem.
f29153f
f29153f
* Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 1.4.1-2
f29153f
- List files explicitly and use custom CFLAGS
f29153f
f29153f
* Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-1
f29153f
- Initial RPM release, largely based on earlier work from several sources.