ALT Linux repositórios
Group :: Sistema/Bibliotecas
RPM: libgcrypt
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_enable static
%def_disable pth
%define req_gpgerror_ver 1.0
%define info_nogen 1
Name: libgcrypt
Version: 1.4.4
Release: alt2
Group: System/Libraries
Summary: The GNU crypto library
License: LGPL
URL: http://www.gnupg.org/
Requires: libgpg-error >= %req_gpgerror_ver
Requires: %name-common = %version-%release
BuildRequires: libgpg-error-devel >= %req_gpgerror_ver
%if_enabled static
BuildRequires: glibc-devel-static
%endif
%if_enabled pth
BuildRequires: libpth-devel
%endif
Source: %name-%version.tar.bz2
Source1: version-script-gcrypt-1.4.map
# 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 common
Summary: %name common package
Group: System/Configuration/Other
%description common
%name common package
%package pth
Summary: GNU Crypto library with GNU Pth user-space thread support
Group: System/Libraries
Requires: libgpg-error >= %req_gpgerror_ver
Requires: %name-common = %version-%release
%package utils
Group: Networking/Other
Summary: Utilities for the %name package
Requires: %name-common = %version-%release
Conflicts: %name-devel <= 1.4.2
%package devel
Group: Development/Other
Summary: Development files for the %name package
Requires: %name = %version-%release
Requires: libgpg-error-devel
%if_enabled 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 utils
This package contains %name utilities:
* dumpsexp - debug tool for S-expressions
* hmac256 - standalone HMAC-SHA-256 implementation
%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
cat %SOURCE1 >> src/libgcrypt.vers
%if %info_nogen
sed -i "s|^info_TEXINFOS|#info_TEXINFOS|" doc/Makefile.am
%endif
%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 -C doc ||:
%make_build
%make check
%install
%makeinstall
%if %info_nogen
mkdir %buildroot/%_infodir/
install -m 0644 doc/*.info %buildroot/%_infodir/
%endif
%files common
%files utils
%_bindir/dumpsexp
%_bindir/hmac256
%files
%_libdir/%name.so.*
#%_libdir/%name-pthread.so.*
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%if_enabled 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
…
Todas as alterações você pod ver aqui
%def_enable static
%def_disable pth
%define req_gpgerror_ver 1.0
%define info_nogen 1
Name: libgcrypt
Version: 1.4.4
Release: alt2
Group: System/Libraries
Summary: The GNU crypto library
License: LGPL
URL: http://www.gnupg.org/
Requires: libgpg-error >= %req_gpgerror_ver
Requires: %name-common = %version-%release
BuildRequires: libgpg-error-devel >= %req_gpgerror_ver
%if_enabled static
BuildRequires: glibc-devel-static
%endif
%if_enabled pth
BuildRequires: libpth-devel
%endif
Source: %name-%version.tar.bz2
Source1: version-script-gcrypt-1.4.map
# 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 common
Summary: %name common package
Group: System/Configuration/Other
%description common
%name common package
%package pth
Summary: GNU Crypto library with GNU Pth user-space thread support
Group: System/Libraries
Requires: libgpg-error >= %req_gpgerror_ver
Requires: %name-common = %version-%release
%package utils
Group: Networking/Other
Summary: Utilities for the %name package
Requires: %name-common = %version-%release
Conflicts: %name-devel <= 1.4.2
%package devel
Group: Development/Other
Summary: Development files for the %name package
Requires: %name = %version-%release
Requires: libgpg-error-devel
%if_enabled 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 utils
This package contains %name utilities:
* dumpsexp - debug tool for S-expressions
* hmac256 - standalone HMAC-SHA-256 implementation
%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
cat %SOURCE1 >> src/libgcrypt.vers
%if %info_nogen
sed -i "s|^info_TEXINFOS|#info_TEXINFOS|" doc/Makefile.am
%endif
%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 -C doc ||:
%make_build
%make check
%install
%makeinstall
%if %info_nogen
mkdir %buildroot/%_infodir/
install -m 0644 doc/*.info %buildroot/%_infodir/
%endif
%files common
%files utils
%_bindir/dumpsexp
%_bindir/hmac256
%files
%_libdir/%name.so.*
#%_libdir/%name-pthread.so.*
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%if_enabled 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
…
Todas as alterações você pod ver aqui