From 9a44959bab2cc8bc90d80fdf8a8aa2a492f4fbe8 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Wed, 13 Nov 2019 13:53:41 +0100 Subject: [PATCH] Disable automatic dependencies for test binaries Tests package contains binaries compiled with different gcc versions. RPMs calls ldd on them adding libgcc(3.5) to the package dependencies. As a result the package can't be installed without --nodeps option. This commit moves the test binaries to a separate package with automatic dependencies disabled. Change-Id: Ic77c85125f4d8348c8449dc04fc35116646f40c0 --- packaging/cert-svc.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packaging/cert-svc.spec b/packaging/cert-svc.spec index c5822d2..3a56a94 100644 --- a/packaging/cert-svc.spec +++ b/packaging/cert-svc.spec @@ -70,9 +70,19 @@ Summary: Certification service (tests) Group: Security/Testing Requires: ca-certificates-tizen Requires: %{name} = %{version}-%{release} +Requires: %{name}-test-binaries = %{version}-%{release} %description test Certification service (tests) + +%package test-binaries +Summary: Certification service (test binaries) +Group: Security/Testing +AutoReq: no +Requires: %{name}-test = %{version}-%{release} + +%description test-binaries +Certification service (test binaries) %endif %prep @@ -180,10 +190,15 @@ fi %if 0%{?certsvc_test_build} %files test %bin_dir/cert-svc-test* -%cert_svc_tests +%dir %cert_svc_tests +%cert_svc_tests/p12 +%cert_svc_tests/certs %_libdir/libcert-svc-validator-plugin.so %bin_dir/cert-svc-example* %cert_svc_examples +%files test-binaries +%cert_svc_tests/apps + %endif -- 2.7.4