Summary: A TLS protocol implementation Name: gnutls Version: 2.2.0 Release: 1 License: LGPL Group: System Environment/Libraries URL: http://www.gnutls.org/ Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2.sig Patch0: %{name}-%{version}-aix.patch BuildRequires: libgcrypt-devel >= 1.2.4, gettext BuildRequires: zlib-devel, libtasn1-devel, opencdk-devel, lzo-devel Requires: libgcrypt >= 1.2.4 Requires: libtasn1, opencdk, lzo BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %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's TLS working group. %package devel Summary: Development files for the %{name} package. Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libgcrypt-devel, zlib-devel Requires: libtasn1-devel, opencdk-devel, lzo-devel Requires: pkg-config, info, gettext Requires: /sbin/install-info %description devel 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's TLS working group. This package contains files needed for developing applications with the GnuTLS library. %package utils Summary: Command line tools for TLS protocol. Group: Applications/System Requires: %{name} = %{version}-%{release} %description utils 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's TLS working group. This package contains command line TLS client and server and certificate manipulation tools. %prep %setup -q %patch0 -p0 cat Makefile.in | \ sed -e "s|SUBDIRS = lgl gl includes lib libextra src doc tests po|SUBDIRS = lgl gl includes lib libextra src tests po|" > Makefile.tmp mv -f Makefile.tmp Makefile.in %build export CC=xlc ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --infodir=%{_prefix}/info \ --enable-shared --enable-static \ --with-libgcrypt \ --enable-random-device \ --enable-pseudo-random-device \ --enable-nonce-device \ --disable-cxx make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT cd doc make install DESTDIR=$RPM_BUILD_ROOT gzip --best $RPM_BUILD_ROOT/%{_infodir}/*.info* %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post devel /sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir || : %preun devel if [ $1 -eq 0 ]; then /sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir || : fi %files %defattr(-,root,system,-) %{_libdir}/*.a %{_datadir}/locale/* %doc AUTHORS COPYING COPYING.LIB README %files devel %defattr(-,root,system,-) %{_bindir}/libgnutls*-config %{_includedir}/* %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc %{_datadir}/aclocal/* %{_mandir}/man3/* %{_infodir}/gnutls* %files utils %defattr(-,root,system,-) %{_bindir}/certtool %{_bindir}/gnutls* %{_bindir}/psktool %{_bindir}/srptool %{_mandir}/man1/* %changelog * Tue Dec 18 2007 Michael Perzl 2.2.0-1 - First version for AIX5L v5.1 and higher