2018-08-28 11:59:48 +00:00
|
|
|
#
|
|
|
|
# spec file for package FreeCAD-test
|
|
|
|
#
|
2020-01-26 14:39:28 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-08-28 11:59:48 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-04 08:22:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-28 11:59:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: FreeCAD-test
|
2019-10-30 16:14:17 +00:00
|
|
|
Version: 0.18.4
|
2018-08-28 11:59:48 +00:00
|
|
|
Release: 0
|
2018-09-06 05:51:13 +00:00
|
|
|
Summary: Meta source package that runs the FreeCAD testsuite when built
|
2018-08-28 11:59:48 +00:00
|
|
|
License: LGPL-2.0-or-later AND GPL-2.0-or-later
|
|
|
|
Group: Productivity/Graphics/CAD
|
2020-01-23 16:46:17 +00:00
|
|
|
URL: http://www.freecadweb.org/
|
2018-08-28 11:59:48 +00:00
|
|
|
BuildRequires: FreeCAD
|
2020-05-06 12:34:05 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2019-07-31 20:18:15 +00:00
|
|
|
BuildRequires: gmsh
|
2020-05-06 12:34:05 +00:00
|
|
|
%endif
|
2018-08-28 11:59:48 +00:00
|
|
|
|
2019-02-14 08:05:22 +00:00
|
|
|
# Test suite fails on 32bit and I don't want to debug that anymore
|
|
|
|
ExcludeArch: %ix86 %arm ppc s390 s390x
|
|
|
|
|
2018-08-28 11:59:48 +00:00
|
|
|
%description
|
|
|
|
This is just executing the test suite at build time.
|
|
|
|
|
|
|
|
%build
|
|
|
|
export LC_ALL="C.utf-8"
|
2019-05-12 07:12:28 +00:00
|
|
|
file=`mktemp`
|
2019-07-31 20:18:15 +00:00
|
|
|
if ! FreeCAD --console --write-log --log-file="$file" --run-test 0; then
|
2019-05-12 07:12:28 +00:00
|
|
|
cat "$file"
|
|
|
|
exit 1
|
|
|
|
fi
|
2018-08-28 11:59:48 +00:00
|
|
|
|
|
|
|
%changelog
|