e2b857d648
Copy from Base:System/gnutls based on submit request 31574 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/31574 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnutls?expand=0&rev=21
230 lines
5.8 KiB
RPMSpec
230 lines
5.8 KiB
RPMSpec
#
|
|
# spec file for package gnutls (Version 2.8.5)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: gnutls
|
|
BuildRequires: gcc-c++ libgcrypt-devel libopencdk-devel
|
|
Version: 2.8.5
|
|
Release: 1
|
|
License: GPLv3+ ; LGPLv2.1+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Url: http://www.gnutls.org/
|
|
Source0: %name-%version.tar.bz2
|
|
Source1: baselibs.conf
|
|
Summary: The GNU Transport Layer Security Library
|
|
Group: Productivity/Networking/Security
|
|
AutoReqProv: on
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: gnutls-64bit
|
|
%endif
|
|
#
|
|
|
|
%description
|
|
The GnuTLS project aims to develop a library that provides a secure
|
|
layer over a reliable transport layer. Currently the GnuTLS library
|
|
implements the proposed standards of the IETF's TLS working group.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Nikos Mavroyanopoulos
|
|
Fabio Fiorina
|
|
Timo Schulz
|
|
Andrew McDonald
|
|
|
|
%package -n libgnutls26
|
|
License: LGPLv2.1+
|
|
Summary: The GNU Transport Layer Security Library
|
|
Group: Productivity/Networking/Security
|
|
|
|
%description -n libgnutls26
|
|
The GnuTLS project aims to develop a library that provides a secure
|
|
layer over a reliable transport layer. Currently the GnuTLS library
|
|
implements the proposed standards of the IETF's TLS working group.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Nikos Mavroyanopoulos
|
|
Fabio Fiorina
|
|
Timo Schulz
|
|
Andrew McDonald
|
|
|
|
%package -n libgnutls-extra26
|
|
License: GPLv3+
|
|
Summary: The GNU Transport Layer Security Library
|
|
Group: Productivity/Networking/Security
|
|
|
|
%description -n libgnutls-extra26
|
|
The GnuTLS project aims to develop a library that provides a secure
|
|
layer over a reliable transport layer. Currently the GnuTLS library
|
|
implements the proposed standards of the IETF's TLS working group.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Nikos Mavroyanopoulos
|
|
Fabio Fiorina
|
|
Timo Schulz
|
|
Andrew McDonald
|
|
|
|
%package -n libgnutls-devel
|
|
License: LGPLv2.1+
|
|
Summary: Development package for gnutls
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libgnutls26 = %version glibc-devel libopencdk-devel libgcrypt-devel
|
|
PreReq: %install_info_prereq
|
|
|
|
%description -n libgnutls-devel
|
|
Files needed for software development using gnutls.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Nikos Mavroyanopoulos
|
|
Fabio Fiorina
|
|
Timo Schulz
|
|
Andrew McDonald
|
|
|
|
%package -n libgnutls-extra-devel
|
|
License: GPLv3+
|
|
Summary: The GNU Transport Layer Security Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libgnutls-extra26 = %version libgnutls-devel
|
|
# gnutls-devel last used in 10.3
|
|
Obsoletes: gnutls-devel < %version
|
|
Provides: gnutls-devel = %version
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: gnutls-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description -n libgnutls-extra-devel
|
|
The GnuTLS project aims to develop a library that provides a secure
|
|
layer over a reliable transport layer. Currently the GnuTLS library
|
|
implements the proposed standards of the IETF's TLS working group.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Nikos Mavroyanopoulos
|
|
Fabio Fiorina
|
|
Timo Schulz
|
|
Andrew McDonald
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch1 -p1
|
|
#%patch2 -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
./configure --prefix=%_prefix \
|
|
--sysconfdir=%_sysconfdir \
|
|
--libdir=%_libdir \
|
|
--mandir=%_mandir --infodir=%_infodir \
|
|
--localstatedir=%_localstatedir \
|
|
--with-included-libtasn1 \
|
|
--without-lzo \
|
|
--disable-srp-authentication \
|
|
--disable-rpath \
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
CXXFLAGS="$RPM_OPT_FLAGS"
|
|
make %{?_smp_mflags}
|
|
make check
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
rm -rf doc/examples/.deps doc/examples/.libs doc/examples/*.{o,lo,la} doc/examples/Makefile{,.in}
|
|
find doc/examples -perm -111 -exec rm {} \;
|
|
rm -rf %{buildroot}/usr/share/locale/en@{,bold}quot
|
|
# Do not package static libs and libtool files
|
|
rm -f %{buildroot}%{_libdir}/*.{a,la}
|
|
%find_lang libgnutls
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
%post -n libgnutls26
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libgnutls26
|
|
/sbin/ldconfig
|
|
|
|
%post -n libgnutls-extra26
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libgnutls-extra26
|
|
/sbin/ldconfig
|
|
|
|
%post -n libgnutls-devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
|
|
|
%postun -n libgnutls-devel
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnutls.info.gz
|
|
|
|
%files -f libgnutls.lang
|
|
%defattr(-, root, root)
|
|
%doc THANKS README NEWS ChangeLog COPYING AUTHORS doc/TODO
|
|
%_bindir/certtool
|
|
%_bindir/gnutls-cli
|
|
%_bindir/gnutls-cli-debug
|
|
%_bindir/gnutls-serv
|
|
%_bindir/psktool
|
|
%_mandir/man1/*
|
|
|
|
%files -n libgnutls26
|
|
%defattr(-,root,root)
|
|
%_libdir/libgnutls.so.26*
|
|
%_libdir/libgnutlsxx.so.26*
|
|
|
|
%files -n libgnutls-extra26
|
|
%defattr(-,root,root)
|
|
%_libdir/libgnutls-extra.so.26*
|
|
%_libdir/libgnutls-openssl.so.26*
|
|
|
|
%files -n libgnutls-devel
|
|
%defattr(-, root, root)
|
|
#%_bindir/libgnutls-config
|
|
%_includedir/*
|
|
%_libdir/libgnutls.so
|
|
%_libdir/libgnutlsxx.so
|
|
#%_datadir/aclocal/libgnutls.m4
|
|
%_libdir/pkgconfig/gnutls.pc
|
|
%_mandir/man3/*
|
|
%_infodir/%{name}*
|
|
%doc doc/examples doc/gnutls.html doc/*.png doc/gnutls.pdf doc/reference/html/*
|
|
|
|
%files -n libgnutls-extra-devel
|
|
%defattr(-, root, root)
|
|
#%_bindir/libgnutls-extra-config
|
|
%_libdir/libgnutls-extra.so
|
|
%_libdir/libgnutls-openssl.so
|
|
#%_datadir/aclocal/libgnutls-extra.m4
|
|
%_libdir/pkgconfig/gnutls-extra.pc
|
|
|
|
%changelog
|