Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37569267
en ru br
Репозитории ALT
S:1.10.2-alt1
5.1: 1.4.6-alt0.M51.1
4.1: 1.4.1-alt1
4.0: 1.2.4-alt1
3.0: 1.2.1-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libgcrypt

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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.2.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: %{name}-no_libnsl.patch
Patch1: %{name}-info.patch
Patch2: %{name}-am18.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
%__aclocal
%__autoconf
%__automake

%__rm -f COPYING.LIB
%__ln_s %_licensedir/LGPL-2.1 COPYING.LIB

%build
%add_optflags %optflags_shared
%configure %{subst_enable static} \
   --enable-shared \
   --enable-m-guard

%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 README.apichanges THANKS TODO
%doc --no-dereference COPYING.LIB

%if_with pth
%files pth
%_libdir/%name-pth.so.*
%endif

%files devel
%_bindir/*-config
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_infodir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin