forked from pool/gnutls
Accepting request 142850 from Base:System
- include LGPL-3.0+ text in COPYING.LESSER - run regression tests, but move "make check" to %check section - add gnutls-3.0.26-skip-test-fwrite.patch to skip a failing test - no longer manipulate doc/examples tree in %install section, the deletion of Makefiles breaks "make check" in %check - install documentation, reference and examples in %install section to fetch them for the package without unneccessary files (forwarded request 142825 from AndreasStieger) OBS-URL: https://build.opensuse.org/request/show/142850 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnutls?expand=0&rev=53
This commit is contained in:
committed by
Git OBS Bridge
parent
5b1c69d57e
commit
830abeae2a
34
gnutls.spec
34
gnutls.spec
@@ -21,7 +21,7 @@
|
||||
%define gnutls_ossl_sover 27
|
||||
|
||||
Name: gnutls
|
||||
Version: 3.0.21
|
||||
Version: 3.0.26
|
||||
Release: 0
|
||||
Summary: The GNU Transport Layer Security Library
|
||||
License: LGPL-3.0+ and GPL-3.0+
|
||||
@@ -32,11 +32,13 @@ Source1: baselibs.conf
|
||||
# suse specific, add support for certificate directories -- lnussel
|
||||
Patch1: gnutls-implement-trust-store-dir.diff
|
||||
Patch2: automake-1.12.patch
|
||||
# PATCH-FIX-OPENSUSE gnutls-3.0.26-skip-test-fwrite.patch andreas.stieger@gmx.de -- skip a failing test
|
||||
Patch3: gnutls-3.0.26-skip-test-fwrite.patch
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libidn-devel
|
||||
BuildRequires: libnettle-devel >= 2.2
|
||||
BuildRequires: libtasn1-devel
|
||||
BuildRequires: libtasn1-devel >= 2.14
|
||||
BuildRequires: libtool
|
||||
BuildRequires: p11-kit-devel >= 0.11
|
||||
BuildRequires: pkg-config
|
||||
@@ -123,8 +125,9 @@ Files needed for software development using gnutls.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
echo %{_includedir}/%{name}/abstract.h
|
||||
|
||||
%build
|
||||
@@ -136,22 +139,27 @@ autoreconf -if
|
||||
--disable-silent-rules \
|
||||
--with-default-trust-store-dir=/etc/ssl/certs \
|
||||
--with-sysroot=/%{?_sysroot}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# 17-ago-2011, Test suite passes in factory, just not
|
||||
#in the build system due to some broken code requiring both networking
|
||||
#and fixes.
|
||||
#make check
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_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}%{_datadir}/locale/en@{,bold}quot
|
||||
# Do not package static libs and libtool files
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
# install docs
|
||||
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/
|
||||
%__cp doc/gnutls.html doc/*.png doc/gnutls.pdf %{buildroot}%{_docdir}/libgnutls-devel/
|
||||
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/reference
|
||||
%__cp doc/reference/html/* %{buildroot}%{_docdir}/libgnutls-devel/reference/
|
||||
%__mkdir -p %{buildroot}%{_docdir}/libgnutls-devel/examples
|
||||
%__cp doc/examples/*.{c,h} %{buildroot}%{_docdir}/libgnutls-devel/examples/
|
||||
|
||||
%find_lang libgnutls --all-name
|
||||
|
||||
%check
|
||||
%__make check
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
@@ -177,7 +185,7 @@ rm -rf %{buildroot}
|
||||
|
||||
%files -f libgnutls.lang
|
||||
%defattr(-, root, root)
|
||||
%doc THANKS README NEWS ChangeLog COPYING AUTHORS doc/TODO
|
||||
%doc THANKS README NEWS ChangeLog COPYING COPYING.LESSER AUTHORS doc/TODO
|
||||
%{_bindir}/certtool
|
||||
%{_bindir}/crywrap
|
||||
%{_bindir}/gnutls-cli
|
||||
@@ -218,7 +226,7 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/pkgconfig/gnutls.pc
|
||||
%{_mandir}/man3/*
|
||||
%{_infodir}/*.*
|
||||
%doc doc/examples doc/gnutls.html doc/*.png doc/gnutls.pdf doc/reference/html/*
|
||||
%doc %{_docdir}/libgnutls-devel
|
||||
|
||||
%files -n libgnutlsxx-devel
|
||||
%defattr(-, root, root)
|
||||
|
Reference in New Issue
Block a user