diff --git a/mingw-libgcrypt.spec b/mingw-libgcrypt.spec index b43ae0a..f25ec94 100644 --- a/mingw-libgcrypt.spec +++ b/mingw-libgcrypt.spec @@ -4,7 +4,7 @@ Name: mingw-libgcrypt Version: 1.5.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: MinGW Windows gcrypt encryption library License: LGPLv2+ and GPLv2+ @@ -62,6 +62,14 @@ in GNU Privacy Guard. This is a Windows cross-compiled version of the library. +%package -n mingw32-libgcrypt-static +Summary: Static library for mingw32-libgcrypt development +Requires: mingw32-libgcrypt = %{version}-%{release} +Requires: mingw32-libgpg-error-static + +%description -n mingw32-libgcrypt-static +Static library for mingw32-libgcrypt development. + # Win64 %package -n mingw64-libgcrypt Summary: MinGW Windows gcrypt encryption library @@ -72,6 +80,14 @@ in GNU Privacy Guard. This is a Windows cross-compiled version of the library. +%package -n mingw64-libgcrypt-static +Summary: Static library for mingw64-libgcrypt development +Requires: mingw64-libgcrypt = %{version}-%{release} +Requires: mingw64-libgpg-error-static + +%description -n mingw64-libgcrypt-static +Static library for mingw64-libgcrypt development. + %?mingw_debug_package @@ -84,8 +100,8 @@ This is a Windows cross-compiled version of the library. %build -MINGW64_CONFIGURE_ARGS="--disable-asm" -%mingw_configure --disable-static --enable-pubkey-ciphers='dsa elgamal rsa' +MINGW64_CONFIGURE_ARGS="ac_cv_sys_symbol_underscore=no" +%mingw_configure --enable-shared --enable-static --enable-pubkey-ciphers='dsa elgamal rsa' %mingw_make %{?_smp_mflags} @@ -128,6 +144,9 @@ rm $RPM_BUILD_ROOT%{mingw64_libdir}/libgcrypt.la %{mingw32_includedir}/gcrypt.h %{mingw32_datadir}/aclocal/libgcrypt.m4 +%files -n mingw32-libgcrypt-static +%{mingw32_libdir}/libgcrypt.a + %files -n mingw64-libgcrypt %doc COPYING COPYING.LIB %{mingw64_bindir}/dumpsexp.exe @@ -139,8 +158,15 @@ rm $RPM_BUILD_ROOT%{mingw64_libdir}/libgcrypt.la %{mingw64_includedir}/gcrypt.h %{mingw64_datadir}/aclocal/libgcrypt.m4 +%files -n mingw64-libgcrypt-static +%{mingw64_libdir}/libgcrypt.a + %changelog +* Sun Oct 20 2012 Yaakov Selkowitz - 1.5.0-5 +- Add static libraries +- Fix compile of assembly code for mingw64 + * Fri Jul 20 2012 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild