From baf4b9171667250813e0e91a9a29cb242f0728843e150c37f925a0e43d16f971 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Fri, 12 Jan 2024 01:56:55 +0000 Subject: [PATCH] Accepting request 1138082 from home:dimstar:Factory - Do not install test files: pass -Dtest=false to meson instead of Dtest=true (aids with reproducible build, boo#1218715). - Add check section and run meson test. OBS-URL: https://build.opensuse.org/request/show/1138082 OBS-URL: https://build.opensuse.org/package/show/Base:System/libjcat?expand=0&rev=25 --- libjcat.changes | 7 +++++++ libjcat.spec | 9 ++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/libjcat.changes b/libjcat.changes index 726d48c..261b5e9 100644 --- a/libjcat.changes +++ b/libjcat.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 10 09:17:52 UTC 2024 - Dominique Leuenberger + +- Do not install test files: pass -Dtest=false to meson instead of + Dtest=true (aids with reproducible build, boo#1218715). +- Add check section and run meson test. + ------------------------------------------------------------------- Thu Jan 4 16:39:57 UTC 2024 - Dominique Leuenberger diff --git a/libjcat.spec b/libjcat.spec index 526f4fd..60dd8f4 100644 --- a/libjcat.spec +++ b/libjcat.spec @@ -87,14 +87,15 @@ Files for development with %{name}. %meson \ -Dgtkdoc=true \ -Dintrospection=true \ - -Dtests=true \ + -Dtests=false \ %{nil} %meson_build %install %meson_install -# remove unreproducible signature file to make package build reproducible -rm -f %{buildroot}%{_libexecdir}/installed-tests/libjcat/colorhug/firmware.bin.p7c + +%check +%meson_test %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig @@ -110,8 +111,6 @@ rm -f %{buildroot}%{_libexecdir}/installed-tests/libjcat/colorhug/firmware.bin.p %doc NEWS README.md %{_bindir}/jcat-tool %{_mandir}/man1/jcat-tool.1.gz -%{_libexecdir}/installed-tests/ -%{_datadir}/installed-tests/ %files devel %doc %{_datadir}/gtk-doc/html/%{name}