]> git.pld-linux.org Git - packages/gnutls.git/blobdiff - gnutls.spec
- updated to 3.0.19
[packages/gnutls.git] / gnutls.spec
index d6f09182f78e4bc1cf4a92caaa918814c1c1cc2e..64e6eb5d80f0cab95be18cfebae53d056410ad9d 100644 (file)
@@ -1,30 +1,50 @@
+#
+# Conditional build:
+%bcond_with    gcrypt  # use gcrypt crypto backend instead of nettle (broken or withdrawn?)
+#
 Summary:       The GNU Transport Layer Security Library
-Summary(pl):   Biblioteka GNU TLS (Transport Layer Security)
+Summary(pl.UTF-8):     Biblioteka GNU TLS (Transport Layer Security)
 Name:          gnutls
-Version:       1.4.1
+Version:       3.0.19
 Release:       1
-License:       LGPL
+License:       LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
 Group:         Libraries
-Source0:       ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2
-# Source0-md5: 1948be128e8f684da034b32988867a13
+Source0:       ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.lz
+# Source0-md5: a1307837e12d4317b136eb23fbf987f2
 Patch0:                %{name}-info.patch
+Patch1:                %{name}-link.patch
+Patch2:                %{name}-pl.po-update.patch
 URL:           http://www.gnu.org/software/gnutls/
-BuildRequires: autoconf >= 2.60
-BuildRequires: automake >= 1:1.9
-BuildRequires: gettext-devel
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-devel >= 0.18
+BuildRequires: gtk-doc >= 1.1
+BuildRequires: guile-devel >= 5:2.0
 BuildRequires: libcfg+-devel
-BuildRequires: libgcrypt-devel >= 1.2.2
-BuildRequires: libtasn1-devel >= 0.3.4
+%{?with_gcrypt:BuildRequires:  libgcrypt-devel >= 1.4.0}
+BuildRequires: libidn-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtasn1-devel >= 2.12
 BuildRequires: libtool >= 2:1.5
-BuildRequires: lzo-devel
-BuildRequires: opencdk-devel >= 0.5.5
+BuildRequires: lzip
+%{!?with_gcrypt:BuildRequires: nettle-devel >= 2.4}
+# miniopencdk is included in sources and currently maintained
+# as part of gnutls, not external package
+#BuildRequires:        opencdk-devel >= 0.6.6
+BuildRequires: p11-kit-devel >= 0.11
+BuildRequires: pkgconfig
 BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.383
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo >= 4.8
 BuildRequires: zlib-devel
 Requires(post,postun): /sbin/ldconfig
-Requires:      libgcrypt >= 1.2.2
-Requires:      libtasn1 >= 0.3.4
-Requires:      opencdk >= 0.5.5
+%{?with_gcrypt:Requires:       libgcrypt >= 1.4.0}
+Requires:      libtasn1 >= 2.12
+%{!?with_gcrypt:Requires:      nettle >= 2.4}
+#Requires:     opencdk >= 0.6.6
+Requires:      p11-kit >= 0.11
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -33,62 +53,137 @@ secure layer, over a reliable transport layer (ie. TCP/IP). Currently
 the gnuTLS library implements the proposed standards by the IETF's TLS
 working group.
 
-%description -l pl
-GnuTLS to projekt maj±cy na celu stworzenie biblioteki udostêpniaj±cej
-pow³okê bezpieczeñstwa ponad pow³ok± transportow± (np. TCP/IP).
+%description -l pl.UTF-8
+GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
+powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
-grupê robocz± IETF TLS.
+grupę roboczą IETF TLS.
 
 %package devel
 Summary:       Header files etc to develop gnutls applications
-Summary(pl):   Pliki nag³ówkowe i inne do gnutls
+Summary(pl.UTF-8):     Pliki nagłówkowe i inne do gnutls
+License:       LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      libgcrypt-devel >= 1.2.2
-Requires:      libtasn1-devel >= 0.3.4
-Requires:      opencdk-devel
+%{?with_gcrypt:Requires:       libgcrypt-devel >= 1.4.0}
+Requires:      libtasn1-devel >= 2.12
+%{!?with_gcrypt:Requires:      nettle-devel >= 2.4}
+#Requires:     opencdk-devel >= 0.6.6
+Requires:      p11-kit-devel >= 0.11
 Requires:      zlib-devel
 
 %description devel
 Header files etc to develop gnutls applications.
 
-%description devel -l pl
-Pliki nag³ówkowe i inne do gnutls.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i inne do gnutls.
 
 %package static
 Summary:       Static gnutls library
-Summary(pl):   Biblioteka statyczna gnutls
+Summary(pl.UTF-8):     Biblioteka statyczna gnutls
+License:       LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static gnutls library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteka statyczna gnutls.
 
+%package c++
+Summary:       libgnutlsxx - C++ interface to gnutls library
+Summary(pl.UTF-8):     libgnutlsxx - interfejs C++ do biblioteki gnutls
+License:       LGPL v2.1+
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description c++
+libgnutlsxx - C++ interface to gnutls library.
+
+%description c++ -l pl.UTF-8
+libgnutlsxx - interfejs C++ do biblioteki gnutls.
+
+%package c++-devel
+Summary:       Header files for libgnutlsxx, a C++ interface to gnutls library
+Summary(pl.UTF-8):     Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      %{name}-c++ = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      libstdc++-devel
+
+%description c++-devel
+Header files for libgnutlsxx, a C++ interface to gnutls library.
+
+%description c++-devel -l pl.UTF-8
+Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
+
+%package c++-static
+Summary:       Static version of libgnutlsxx, a C++ interface to gnutls library
+Summary(pl.UTF-8):     Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      %{name}-c++-devel = %{version}-%{release}
+
+%description c++-static
+Static version of libgnutlsxx, a C++ interface to gnutls library.
+
+%description c++-static -l pl.UTF-8
+Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
+
+%package -n guile-gnutls
+Summary:       Guile bindings for GnuTLS
+Summary(pl.UTF-8):     Wiązania Guile do GnuTLS
+License:       LGPL v2.1+
+Group:         Development/Languages
+Requires:      %{name} = %{version}-%{release}
+Requires:      guile >= 5:2.0
+
+%description -n guile-gnutls
+Guile bindings for GnuTLS.
+
+%description -n guile-gnutls -l pl.UTF-8
+Wiązania Guile do GnuTLS.
+
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%{__rm} po/stamp-po
+
+# remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
+# (after gnutls or libtool change)
+%{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
 
 %build
-%{__gettextize}
 %{__libtoolize}
-%{__aclocal} -I m4 -I gl/m4
+%{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
-       --disable-dependency-tracking
+       --disable-silent-rules \
+       %{?with_gcrypt:--with-libgcrypt}
 
-%{__make}
+# docs build is broken with -jN
+%{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       m4datadir=%{_aclocaldir}
+       DESTDIR=$RPM_BUILD_ROOT
+
+# although libgnutls.la is obsoleted by pkg-config, there is
+# .pc file missing for libgnutls-openssl, and it needs libgnutls.la
+
+# guile module - dynamic only
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
 %find_lang %{name}
 
@@ -103,30 +198,70 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
+%post  c++ -p /sbin/ldconfig
+%postun        c++ -p /sbin/ldconfig
+
+%post  -n guile-gnutls -p /sbin/ldconfig
+%postun        -n guile-gnutls -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
 %attr(755,root,root) %{_bindir}/certtool
-%attr(755,root,root) %{_bindir}/gnutls*
+%attr(755,root,root) %{_bindir}/crywrap
+%attr(755,root,root) %{_bindir}/gnutls-*
+%attr(755,root,root) %{_bindir}/ocsptool
+%attr(755,root,root) %{_bindir}/p11tool
 %attr(755,root,root) %{_bindir}/psktool
 %attr(755,root,root) %{_bindir}/srptool
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
+%attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
 %{_mandir}/man1/certtool.1*
-%{_mandir}/man1/gnutls-*
+%{_mandir}/man1/gnutls-*.1*
+%{_mandir}/man1/ocsptool.1*
+%{_mandir}/man1/p11tool.1*
 %{_mandir}/man1/psktool.1*
 %{_mandir}/man1/srptool.1*
-%{_infodir}/*.info*
+%{_infodir}/gnutls.info*
+%{_infodir}/gnutls-*.png
+%{_infodir}/pkcs11-vision.png
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/libgnutls*-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libgnutls.so
+%attr(755,root,root) %{_libdir}/libgnutls-openssl.so
+%{_libdir}/libgnutls.la
+%{_libdir}/libgnutls-openssl.la
 %{_includedir}/gnutls
-%{_aclocaldir}/*.m4
-%{_pkgconfigdir}/*.pc
-%{_mandir}/man3/*gnutls*.3*
+%exclude %{_includedir}/gnutls/gnutlsxx.h
+%{_pkgconfigdir}/gnutls.pc
+%{_mandir}/man3/gnutls_*.3*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libgnutls.a
+%{_libdir}/libgnutls-openssl.a
+
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgnutlsxx.so
+%{_libdir}/libgnutlsxx.la
+%{_includedir}/gnutls/gnutlsxx.h
+
+%files c++-static
+%defattr(644,root,root,755)
+%{_libdir}/libgnutlsxx.a
+
+%files -n guile-gnutls
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
+%{_datadir}/guile/site/gnutls.scm
+%{_datadir}/guile/site/gnutls
+%{_infodir}/gnutls-guile.info*
This page took 0.035438 seconds and 4 git commands to generate.