Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37707990
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: 1.2.3
Release: alt1

%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/

%define pkgdocdir %_docdir/%name-%version

%define req_gcrypt_ver 1.1.94
%define req_opencdk_ver 0.5.5
%define req_tasn1_ver 0.2.10

Source: %name-%version.tar.bz2

BuildRequires: docbook-dtds docbook-style-xsl glib2-devel gtk-doc
BuildRequires: libgpg-error-devel liblzo-devel pkgconfig xml-common xsltproc
BuildRequires: zlib-devel

BuildRequires: libgcrypt-devel >= %req_gcrypt_ver
BuildRequires: libopencdk-devel >= %req_opencdk_ver
%if_with libtasn1
BuildRequires: libtasn1-devel >= %req_tasn1_ver
%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-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
Requires(post): %install_info
Requires(preun): %uninstall_info

%description -n lib%name-devel
Header and other files to build applications using %name,
a Transport Layer Security (TLS) 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.

%prep
%setup -q

%__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
%makeinstall

%__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
%__cp -a doc/examples %buildroot%pkgdocdir

%post   -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post   -n lib%name-extra -p %post_ldconfig
%postun -n lib%name-extra -p %postun_ldconfig

%post -n lib%name-devel
%install_info %name.info

%preun -n lib%name-devel
%uninstall_info %name.info

%files -n lib%name
%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-extra
%pkgdocdir/COPYING
%_libdir/lib%name-extra.so.*

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

%files -n lib%name-devel
%pkgdocdir/*.html
%pkgdocdir/*.png
%pkgdocdir/examples
%_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
%_man3dir/*
%_infodir/*
%_datadir/gtk-doc/html/*

%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 utils
%_bindir/*
%exclude %_bindir/*-config
%_man1dir/*

%changelog

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

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