Group :: System/Libraries
RPM: libgcrypt
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable static
#%%set_verify_elf_method textrel=relaxed
%if_with pth
%define with_pth 1
%else
%define with_pth 0
%endif
%define req_gpgerror_ver 1.0
Name: libgcrypt
Version: 1.4.1
Release: alt1
Group: System/Libraries
Summary: The GNU crypto library
License: LGPL
URL: http://www.gnupg.org/
Requires: libgpg-error >= %req_gpgerror_ver
BuildRequires: libgpg-error-devel >= %req_gpgerror_ver
%if_with pth
BuildRequires: libpth-devel
%endif
Source: %name-%version.tar.bz2
# PLD
Patch0: libgcrypt-1.3.1-no_libnsl.patch
Patch1: %{name}-info.patch
Patch2: %{name}-am18.patch
# ALT
Patch3: libgcrypt-1.4.0-alt-autotools-version.patch
%package pth
Summary: GNU Crypto library with GNU Pth user-space thread support
Group: System/Libraries
%package devel
Summary: Development files for the %name package
Group: Development/Other
Requires: %name = %version-%release
Requires: libgpg-error-devel
%if_with pth
Requires: %name-pth = %version-%release
%endif
Conflicts: %{name}0-devel
%package devel-static
Summary: Static libraries for the %name-devel package
Group: Development/Other
Requires: %name-devel = %version-%release
Requires: libgpg-error-devel-static
Conflicts: %{name}0-devel-static
%description
Libgcrypt is a general purpose cryptographic library
based on the code from GNU Privacy Guard. It provides functions for all
cryptograhic building blocks: symmetric ciphers
(AES,DES,Blowfish,CAST5,Twofish,Arcfour), hash algorithms (MD5,
RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all hash algorithms),
public key algorithms (RSA, ElGamal, DSA), large integer functions,
random numbers and a lot of supporting functions.
%description pth
This is a portion of Libgcrypt supporting user-space
threads provided by the GNU Pth library.
%description devel
Libgcrypt is a general purpose cryptographic library
based on the code from GNU Privacy Guard.
This package contains files needed to develop
applications using libgcrypt (e.g. Aegypten project).
%description devel-static
Static libraries for the %name-devel package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
#%patch2 -p1
#%patch3 -p1
%autoreconf
%__rm -f COPYING.LIB
%__ln_s %_licensedir/LGPL-2.1 COPYING.LIB
%build
%add_optflags %optflags_shared
%configure %{subst_enable static} \
--enable-shared \
--enable-noexecstack \
--enable-ld-version-script \
--disable-dev-random
%make_build
%make check
%install
%makeinstall
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%post pth -p %post_ldconfig
%postun pth -p %postun_ldconfig
%files
%_libdir/%name.so.*
#%_libdir/%name-pthread.so.*
%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
%if_with pth
%files pth
%_libdir/%name-pth.so.*
%endif
%files devel
%_bindir/*-config
%_bindir/dumpsexp
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_infodir/*
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here
#%%set_verify_elf_method textrel=relaxed
%if_with pth
%define with_pth 1
%else
%define with_pth 0
%endif
%define req_gpgerror_ver 1.0
Name: libgcrypt
Version: 1.4.1
Release: alt1
Group: System/Libraries
Summary: The GNU crypto library
License: LGPL
URL: http://www.gnupg.org/
Requires: libgpg-error >= %req_gpgerror_ver
BuildRequires: libgpg-error-devel >= %req_gpgerror_ver
%if_with pth
BuildRequires: libpth-devel
%endif
Source: %name-%version.tar.bz2
# PLD
Patch0: libgcrypt-1.3.1-no_libnsl.patch
Patch1: %{name}-info.patch
Patch2: %{name}-am18.patch
# ALT
Patch3: libgcrypt-1.4.0-alt-autotools-version.patch
%package pth
Summary: GNU Crypto library with GNU Pth user-space thread support
Group: System/Libraries
%package devel
Summary: Development files for the %name package
Group: Development/Other
Requires: %name = %version-%release
Requires: libgpg-error-devel
%if_with pth
Requires: %name-pth = %version-%release
%endif
Conflicts: %{name}0-devel
%package devel-static
Summary: Static libraries for the %name-devel package
Group: Development/Other
Requires: %name-devel = %version-%release
Requires: libgpg-error-devel-static
Conflicts: %{name}0-devel-static
%description
Libgcrypt is a general purpose cryptographic library
based on the code from GNU Privacy Guard. It provides functions for all
cryptograhic building blocks: symmetric ciphers
(AES,DES,Blowfish,CAST5,Twofish,Arcfour), hash algorithms (MD5,
RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all hash algorithms),
public key algorithms (RSA, ElGamal, DSA), large integer functions,
random numbers and a lot of supporting functions.
%description pth
This is a portion of Libgcrypt supporting user-space
threads provided by the GNU Pth library.
%description devel
Libgcrypt is a general purpose cryptographic library
based on the code from GNU Privacy Guard.
This package contains files needed to develop
applications using libgcrypt (e.g. Aegypten project).
%description devel-static
Static libraries for the %name-devel package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
#%patch2 -p1
#%patch3 -p1
%autoreconf
%__rm -f COPYING.LIB
%__ln_s %_licensedir/LGPL-2.1 COPYING.LIB
%build
%add_optflags %optflags_shared
%configure %{subst_enable static} \
--enable-shared \
--enable-noexecstack \
--enable-ld-version-script \
--disable-dev-random
%make_build
%make check
%install
%makeinstall
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%post pth -p %post_ldconfig
%postun pth -p %postun_ldconfig
%files
%_libdir/%name.so.*
#%_libdir/%name-pthread.so.*
%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
%if_with pth
%files pth
%_libdir/%name-pth.so.*
%endif
%files devel
%_bindir/*-config
%_bindir/dumpsexp
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_infodir/*
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here