commit fbf7fd465f981afcb95149d5942f6d3d3a18d22a
Author: Uwe Klotz <uklotz(a)mixxx.org>
Date: Mon Oct 26 13:53:07 2020 +0100
Disable tests and add some comments
mixxx.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/mixxx.spec b/mixxx.spec
index 94f6b5e..0fe5722 100644
--- a/mixxx.spec
+++ b/mixxx.spec
@@ -1,3 +1,4 @@
+# Build out-of-source (default since Fedora 33)
%undefine __cmake_in_source_build
%ifarch %{power64}
@@ -127,10 +128,10 @@ echo "#pragma once" > src/build.h
%cmake3_build
+
%install
%cmake3_install
-
# USB HID permissions
# - Relocate .rules file
# - Order custom rules before 70-uaccess.rules
@@ -139,6 +140,8 @@ install -d \
mv \
%{buildroot}%{_prefix}%{_sysconfdir}/udev/rules.d/%{name}-usb-uaccess.rules \
%{buildroot}%{_udevrulesdir}/69-%{name}-usb-uaccess.rules
+
+# Delete unpackaged files
rm -rf \
%{buildroot}%{_prefix}%{_sysconfdir}/ \
%{buildroot}%{_datadir}/doc/mixxx/
@@ -148,8 +151,11 @@ rm -rf \
# Tests can only be executed locally. Running them on
#
http://koji.rpmfusion.org always ends with the error
# message "# Child aborted***Exception:"
+# Note: Add the macro prefix '%' in front of 'ctest3' manually after
uncommenting.
+# Otherwise the tests would get executed by macro expansion even though hidden
+# within a comment!
#QT_QPA_PLATFORM=offscreen \
-#%ctest3
+#ctest3
# Desktop launcher
desktop-file-install \
@@ -157,6 +163,7 @@ desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
res/linux/%{name}.desktop
+# AppStream data
appstream-util \
validate-relax \
--nonet \