Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37554628
en ru br
Репозитории ALT
4.1: 2.0.4-alt2.M41.2
4.0: 2.0.1-alt2.M40.1
3.0: 1.2.3-alt1
www.altlinux.org/Changes

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

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: gnutls
Version: 2.0.4
Release: alt2.M41.2

%def_disable static
%def_enable check
%def_with libtasn1

Summary: Transport Layer Security library
Group: System/Libraries
License: LGPL
Url: http://www.gnu.org/software/%name/
Packager: Pavlov Konstantin <thresh at altlinux.ru>

%define pkgdocdir %_docdir/%name-%version

%define req_gcrypt_ver 1.2.2
%define req_opencdk_ver 0.5.5
%define req_tasn1_ver 0.3.4

Source: %name-%version.tar.bz2
Source2: gnutls-%version-vers.sym

# See  http://www.gnu.org/s/gnutls/security.html

Patch1: gnutls-2.0.4-CVE-2009-2730.patch
Patch2: gnutls-1.4.1-cve-2008-4989.patch
Patch3: gnutls-1.4.1-cve-2009-2409.patch



# Automatically added by buildreq on Tue May 30 2006

BuildRequires: cvs gtk-doc libgcrypt-devel liblzo-devel libopencdk-devel libreadline-devel libtasn1-devel pkg-config zlib-devel
BuildRequires: gcc-c++

BuildRequires: libgcrypt-devel >= %req_gcrypt_ver
BuildRequires: libopencdk-devel >= %req_opencdk_ver
%if_with libtasn1
BuildRequires: libtasn1-devel >= %req_tasn1_ver
%endif
%ifarch %ix86 x86_64
BuildRequires: valgrind
%endif

%description
GnuTLS is a project that aims to develop a library which provides a
secure layer, over a reliable transport layer. Currently the GnuTLS
library implements the proposed standards by the IETF TLS working
group.

%package -n lib%name
Summary: Transport Layer Security library
Group: System/Libraries
Requires: libgcrypt >= %req_gcrypt_ver
%if_with libtasn1
Requires: libtasn1 >= %req_tasn1_ver
%endif

%description -n lib%name
A library which provides a secure layer, over a reliable transport layer.
Currently the GnuTLS library implements the proposed standards
by the IETF TLS working group.

%package -n lib%{name}xx
Summary: Transport Layer Security C++ library
Group: System/Libraries

%description -n lib%{name}xx
A library which provides a secure layer, over a reliable transport layer.
Currently the GnuTLSxx library implements the proposed standards
by the IETF TLS working group.

%package -n lib%name-extra
Summary: Transport Layer Security library, extra functions
Group: System/Libraries
License: GPL
Requires: lib%name = %version-%release
Requires: libopencdk >= %req_opencdk_ver

%description -n lib%name-extra
The %name-extra library provides extra functions to the %name library.
This portion of the library is covered by the GNU General Public License.

%package -n lib%name-openssl
Summary: OpenSSL compatibility layer for the GnuTLS library
Group: System/Libraries
License: GPL
Requires: lib%name = %version-%release

%description -n lib%name-openssl
The %name-openssl library provides an OpenSSL compatibility layer to the
%name library, to ease migration from the OpenSSL library.

%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %version-%release
Requires: libgcrypt-devel >= %req_gcrypt_ver

%description -n lib%name-devel
Header and other files to build applications using %name,
a Transport Layer Security (TLS) library.

%package -n lib%{name}xx-devel
Summary: Development files for lib{%name}xx
Group: Development/C
Requires: lib%{name}xx = %version-%release

%description -n lib%{name}xx-devel
Header and other files to build applications using %{name}xx,
a Transport Layer Security (TLS) C++ library.

%package -n lib%name-extra-devel
Summary: Development files for lib%name-extra
Group: Development/C
License: GPL
Requires: lib%name-extra = %version-%release
Requires: lib%name-devel = %version-%release

%description -n lib%name-extra-devel
Header and other files to build applications using the %name-extra library.

%package -n lib%name-openssl-devel
Summary: Development files for lib%name-openssl
Group: Development/C
License: GPL
Requires: lib%name-openssl = %version-%release
Requires: lib%name-devel = %version-%release

%description -n lib%name-openssl-devel
Header and other files to build applications using the %name-openssl library.

%package -n lib%name-devel-static
Summary: Static build for lib%name
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static build of %name, a Transport Layer Security (TLS) library.

%package -n lib%name-extra-devel-static
Summary: Static build for lib%name-extra
Group: Development/C
License: GPL
Requires: lib%name-extra-devel = %version-%release

%description -n lib%name-extra-devel-static
Static build of the %name-extra library.

%package -n lib%name-openssl-devel-static
Summary: Static build for lib%name-openssl
Group: Development/C
License: GPL
Requires: lib%name-openssl-devel = %version-%release

%description -n lib%name-openssl-devel-static
Static build of the %name-openssl library.

%package utils
Summary: Utilities for GnuTLS
Group: Security/Networking
License: GPL
Requires: lib%name = %version-%release
Requires: lib%name-extra = %version-%release

%description utils
Utilities coming with the GnuTLS project.

%package devel-doc
Summary: Development documentation for GnuTLS
Group: Development/C
Conflicts: libgnutls-devel < 1.2.9-alt1

%description devel-doc
Development documentation for GnuTLS.

%prep
%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1

install -m644 %SOURCE2 lib/libgnutls.vers

bzip2 -9k ChangeLog

%build
#autoreconf -isfv
%configure \
%if_without libtasn1
--with-included-libtasn1 \
%endif
--enable-gtk-doc \
%{subst_enable static}
# Non-parallel make
%make
%if_enabled check
%make check
%endif

%install
%make_install DESTDIR=%buildroot install

install -d -m755 %buildroot%pkgdocdir
install -p -m644 AUTHORS ChangeLog.bz2 NEWS README THANKS doc/TODO \
   %buildroot%pkgdocdir
ln -s %_licensedir/GPL-2 %buildroot%pkgdocdir/COPYING
ln -s %_licensedir/LGPL-2.1 %buildroot%pkgdocdir/COPYING.LIB
install -p -m644 doc/*.html doc/*.png %buildroot%pkgdocdir
%make -C doc/examples clean
cp -a doc/examples %buildroot%pkgdocdir
rm -f %buildroot%pkgdocdir/examples/Makefile*

%find_lang gnutls

%files -n lib%name -f gnutls.lang
%dir %pkgdocdir
%pkgdocdir/AUTHORS
%pkgdocdir/ChangeLog.bz2
%pkgdocdir/NEWS
%pkgdocdir/README
%pkgdocdir/THANKS
%pkgdocdir/TODO
%pkgdocdir/COPYING.LIB
%_libdir/lib%name.so.*

%files -n lib%{name}xx
%_libdir/lib%{name}xx.so.*

%files -n lib%name-extra
%pkgdocdir/COPYING
%_libdir/lib%name-extra.so.*

%files -n lib%name-openssl
%_libdir/lib%name-openssl.so.*

%files -n lib%name-devel
%_includedir/gnutls
%exclude %_includedir/gnutls/extra.h
%exclude %_includedir/gnutls/openssl.h
%_bindir/lib%name-config
%_libdir/lib%name.so
%_libdir/pkgconfig/gnutls.pc
%_datadir/aclocal/lib%name.m4

%files -n lib%{name}xx-devel
%_libdir/lib%{name}xx.so

%files -n lib%name-extra-devel
%_includedir/gnutls/extra.h
%_bindir/lib%name-extra-config
%_libdir/lib%name-extra.so
%_libdir/pkgconfig/gnutls-extra.pc
%_datadir/aclocal/lib%name-extra.m4

%files -n lib%name-openssl-devel
%_includedir/gnutls/openssl.h
%_libdir/lib%name-openssl.so

%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib%name.a

%files -n lib%name-extra-devel-static
%_libdir/lib%name-extra.a

%files -n lib%name-openssl-devel-static
%_libdir/lib%name-openssl.a
%endif # enabled static

%files devel-doc
%pkgdocdir/*.html
%pkgdocdir/*.png
%pkgdocdir/examples
%_man3dir/*
%_infodir/*
%_datadir/gtk-doc/html/*

%files utils
%_bindir/*
%exclude %_bindir/*-config
%_man1dir/*

%changelog

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

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