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
This commit is contained in:
Gary Ching-Pang Lin 2024-01-12 01:56:55 +00:00 committed by Git OBS Bridge
parent 4c1652def4
commit baf4b91716
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 10 09:17:52 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- 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 <dimstar@opensuse.org>

View File

@ -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}