forked from pool/libgcrypt
- Cleanup with spec-cleaner to sort out.
- Really apply ppc64 patch as it was ommited probably by mistake. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=49
This commit is contained in:
parent
62320f7e7e
commit
1cf0e05117
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 3 12:04:46 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup with spec-cleaner to sort out.
|
||||||
|
- Really apply ppc64 patch as it was ommited probably by mistake.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 27 14:57:22 UTC 2014 - meissner@suse.com
|
Thu Mar 27 14:57:22 UTC 2014 - meissner@suse.com
|
||||||
|
|
||||||
|
@ -18,17 +18,15 @@
|
|||||||
|
|
||||||
%define build_hmac256 1
|
%define build_hmac256 1
|
||||||
%define separate_hmac256_binary 0
|
%define separate_hmac256_binary 0
|
||||||
|
|
||||||
%define libsoname %{name}20
|
%define libsoname %{name}20
|
||||||
%define sosuffix 20.0.1
|
%define sosuffix 20.0.1
|
||||||
|
|
||||||
Name: libgcrypt
|
Name: libgcrypt
|
||||||
Url: http://directory.fsf.org/wiki/Libgcrypt
|
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The GNU Crypto Library
|
Summary: The GNU Crypto Library
|
||||||
License: GPL-2.0+ and LGPL-2.1+ and GPL-3.0+
|
License: GPL-2.0+ and LGPL-2.1+ and GPL-3.0+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Url: http://directory.fsf.org/wiki/Libgcrypt
|
||||||
Source: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
|
Source: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
|
||||||
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2.sig
|
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2.sig
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
@ -42,25 +40,22 @@ Patch4: %{name}-sparcv9.diff
|
|||||||
#was: libgcrypt-1.5.0-as-needed.patch
|
#was: libgcrypt-1.5.0-as-needed.patch
|
||||||
Patch5: libgcrypt-unresolved-dladdr.patch
|
Patch5: libgcrypt-unresolved-dladdr.patch
|
||||||
#PATCH-FIX-SUSE: N/A
|
#PATCH-FIX-SUSE: N/A
|
||||||
|
|
||||||
Patch7: libgcrypt-1.5.0-LIBGCRYPT_FORCE_FIPS_MODE-env.diff
|
Patch7: libgcrypt-1.5.0-LIBGCRYPT_FORCE_FIPS_MODE-env.diff
|
||||||
|
|
||||||
#PATCH-FIX-UPSTREAM: internal functions are supposed to be used inside libgcrypt, mvyskocil@suse.com
|
#PATCH-FIX-UPSTREAM: internal functions are supposed to be used inside libgcrypt, mvyskocil@suse.com
|
||||||
Patch8: libgcrypt-1.6.0-use-intenal-functions.patch
|
Patch8: libgcrypt-1.6.0-use-intenal-functions.patch
|
||||||
Patch10: libgcrypt-fips-allow-legacy.patch
|
Patch10: libgcrypt-fips-allow-legacy.patch
|
||||||
Patch11: libgcrypt-fixed-sizet.patch
|
Patch11: libgcrypt-fixed-sizet.patch
|
||||||
|
|
||||||
Patch12: libgcrypt-1.6.1-use-fipscheck.patch
|
Patch12: libgcrypt-1.6.1-use-fipscheck.patch
|
||||||
Patch13: libgcrypt-1.6.1-fips-cavs.patch
|
Patch13: libgcrypt-1.6.1-fips-cavs.patch
|
||||||
#PATCH-FIX-SUSE: bnc#724841, fix a random device opening routine
|
#PATCH-FIX-SUSE: bnc#724841, fix a random device opening routine
|
||||||
Patch14: libgcrypt-1.6.1-fips-cfgrandom.patch
|
Patch14: libgcrypt-1.6.1-fips-cfgrandom.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: automake >= 1.11
|
BuildRequires: automake >= 1.11
|
||||||
|
BuildRequires: libgpg-error-devel >= 1.11
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} > 1310
|
%if 0%{?suse_version} > 1310
|
||||||
BuildRequires: fipscheck
|
BuildRequires: fipscheck
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libgpg-error-devel >= 1.11
|
|
||||||
BuildRequires: libtool
|
|
||||||
# not for base packages to avoid huge cycles
|
# not for base packages to avoid huge cycles
|
||||||
#BuildRequires: gpg-offline
|
#BuildRequires: gpg-offline
|
||||||
|
|
||||||
@ -86,7 +81,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: %{libsoname} = %{version}
|
Requires: %{libsoname} = %{version}
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Requires: libgpg-error-devel >= 1.8
|
Requires: libgpg-error-devel >= 1.8
|
||||||
PreReq: %install_info_prereq
|
Requires(post): %{install_info_prereq}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Libgcrypt is a general purpose library of cryptographic building
|
Libgcrypt is a general purpose library of cryptographic building
|
||||||
@ -103,9 +98,9 @@ library.
|
|||||||
Summary: The GNU Crypto Library
|
Summary: The GNU Crypto Library
|
||||||
License: GPL-2.0+ and LGPL-2.1+
|
License: GPL-2.0+ and LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libsoname} = %version
|
Requires: %{libsoname} = %{version}
|
||||||
Requires: libgpg-error-devel
|
Requires: libgpg-error-devel
|
||||||
PreReq: %install_info_prereq
|
Requires(post): %{install_info_prereq}
|
||||||
|
|
||||||
%description hmac256
|
%description hmac256
|
||||||
Libgcrypt is a general purpose library of cryptographic building
|
Libgcrypt is a general purpose library of cryptographic building
|
||||||
@ -116,7 +111,8 @@ understanding of applied cryptography is required to use Libgcrypt.
|
|||||||
%endif # #if separate_hmac256_binary
|
%endif # #if separate_hmac256_binary
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
%patch1
|
%patch1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
@ -135,12 +131,12 @@ understanding of applied cryptography is required to use Libgcrypt.
|
|||||||
echo building with build_hmac256 set to %{build_hmac256}
|
echo building with build_hmac256 set to %{build_hmac256}
|
||||||
%{?suse_update_config}
|
%{?suse_update_config}
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
export CFLAGS="%optflags $(getconf LFS_CFLAGS)"
|
export CFLAGS="%{optflags} $(getconf LFS_CFLAGS)"
|
||||||
%configure --with-pic \
|
%configure --with-pic \
|
||||||
--enable-noexecstack \
|
--enable-noexecstack \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-m-guard \
|
--enable-m-guard \
|
||||||
%ifarch %sparc
|
%ifarch %{sparc}
|
||||||
--disable-asm \
|
--disable-asm \
|
||||||
%endif
|
%endif
|
||||||
--enable-hmac-binary-check \
|
--enable-hmac-binary-check \
|
||||||
@ -181,7 +177,7 @@ fipshmac src/.libs/libgcrypt.so.??
|
|||||||
# make check
|
# make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
|
||||||
rm %{buildroot}%{_libdir}/%{name}.la
|
rm %{buildroot}%{_libdir}/%{name}.la
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user