[packages/libtorrent] - added tests, dropped (unconditional in reality) ipv6 bcond
arekm
arekm at pld-linux.org
Sat Sep 12 19:29:58 CEST 2026
commit e6a183d0915878caf55a7c45116fe8319060c76f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Sep 12 19:29:16 2026 +0200
- added tests, dropped (unconditional in reality) ipv6 bcond
libtorrent.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libtorrent.spec b/libtorrent.spec
index cc15bcf..dfa34ac 100644
--- a/libtorrent.spec
+++ b/libtorrent.spec
@@ -1,7 +1,7 @@
#
# Conditional build:
%bcond_without static_libs # static library
-%bcond_without ipv6 # IPv6 support
+%bcond_without tests # unit tests
#
Summary: LibTorrent - a BitTorrent library written in C++ for Unix
Summary(pl.UTF-8): LibTorrent - biblioteka BitTorrenta napisana w C++ dla Uniksa
@@ -19,7 +19,9 @@ Patch0: %{name}-client_list.patch
URL: https://github.com/rakshasa/rtorrent/wiki
BuildRequires: autoconf >= 2.50
BuildRequires: automake
+%if %{with tests}
BuildRequires: cppunit-devel >= 1.9.6
+%endif
BuildRequires: curl-devel
BuildRequires: libstdc++-devel >= 6:8
BuildRequires: libtool >= 2:2
@@ -88,7 +90,6 @@ fi
%configure \
--enable-debug%{!?debug:=no} \
- --enable-ipv6%{!?with_ipv6:=no} \
%{?with_static_libs:--enable-static} \
%ifarch i386 i486
--disable-instrumentation
@@ -96,6 +97,10 @@ fi
%{__make}
+%if %{with tests}
+%{__make} check
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libtorrent.git/commitdiff/e6a183d0915878caf55a7c45116fe8319060c76f
More information about the pld-cvs-commit
mailing list