%define major 28 %define sslmajor 27 %define libname %mklibname %{name} %{major} %define libssl %mklibname %{name}-ssl %{sslmajor} %define libname_orig lib%{name} %define develname %mklibname %{name} -d Summary: Library providing a secure layer (SSL) Name: gnutls Version: 3.0.17 Release: %mkrel 1 License: GPLv3+ and LGPLv3+ Group: System/Libraries URL: http://www.gnutls.org Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz.sig BuildRequires: liblzo-devel BuildRequires: nettle-devel >= 2.4 BuildRequires: libtasn1-devel >= 0.3.4 BuildRequires: pkgconfig(p11-kit-1) >= 0.2 %ifnarch %arm %mips BuildRequires: valgrind %endif BuildRequires: opencdk-devel %description GnuTLS is a project that aims to develop a library which provides a secure layer, over a reliable transport layer. %package -n %{libname} Summary: Library providing a secure layer (SSL) Group: System/Libraries Provides: %{libname_orig} = %{version}-%{release} %description -n %{libname} GnuTLS is a project that aims to develop a library which provides a secure layer, over a reliable transport layer. %package -n %{libssl} Summary: Library providing a secure layer (SSL) Group: System/Libraries %description -n %{libssl} GnuTLS is a project that aims to develop a library which provides a secure layer, over a reliable transport layer. %package -n %{develname} Summary: Development files for %{name} Group: Development/C Requires: %{name} = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: %{libssl} = %{version}-%{release} Provides: %{libname_orig}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %mklibname %{name} 13 -d %description -n %{develname} GnuTLS is a project that aims to develop a library which provides a secure layer, over a reliable transport layer. This package contains all necessary files to compile or develop programs/libraries that use %{name}. %prep %setup -q %build %configure2_5x \ --disable-static \ --with-included-libtasn1=no \ --with-libz-prefix=%{_prefix} \ --with-libtasn1-prefix=%{_prefix} \ --with-packager="%_vendor" \ --with-packager-version="%product_version" \ --with-packager-bug-reports="https://bugs.mageia.org" \ --disable-gtk-doc-html \ %ifnarch %arm %mips --enable-valgrind-tests \ %endif --disable-rpath \ --disable-guile %make %check make check %install %makeinstall_std %{find_lang} %{name} %{name} libgnutls rm -f %{buildroot}%{_libdir}/*.la %post %_install_info gnutls.info %postun %_remove_install_info gnutls.info %files -f %{name}.lang %defattr(-,root,root) %doc NEWS README %{_bindir}/[cgs]* %{_bindir}/psktool %{_bindir}/p11tool %{_bindir}/ocsptool %{_mandir}/man?/* %{_infodir}/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib*.so.%{major}* %files -n %{libssl} %defattr(-,root,root) %{_libdir}/lib*.so.%{sslmajor}* %files -n %{develname} %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/gnutls