File mingw64-kicad.spec of Package mingw64-kicad
#
# spec file for package mingw64-kicad
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{_mingw64_package_header_debug}
Name: mingw64-kicad
Version: 9.99.0+git1236.e03b273e17
Release: 0
Summary: test build of kicad
License: GPL-3.0-only
URL: https://gitlab.com/hramrach/kicad.git
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cairo-devel
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-glew-devel
BuildRequires: mingw64-glm-devel
BuildRequires: mingw64-libcurl-devel
BuildRequires: mingw64-libgit2-devel
BuildRequires: mingw64-libharfbuzz-devel
BuildRequires: mingw64-libngspice-devel
BuildRequires: mingw64-occt-devel
BuildRequires: mingw64-nng-devel
BuildRequires: mingw64-protobuf-devel
BuildRequires: mingw64-python3-devel
BuildRequires: mingw64-wxWidgets-3_2-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: swig
BuildArch: noarch
%description
%prep
%autosetup -p1
%build
pushd thirdparty/lemon/
# FIXME: you should use the %%cmake macros
cmake .
%make_build
popd
mingw64-cmake -DOCC_INCLUDE_DIR=%{_mingw64_includedir}/opencascade/ -DKICAD_SCRIPTING_WXPYTHON=off -DLEMON_EXE=$(pwd)/thirdparty/lemon/lemon
cd build
%make_build
%install
cd build
%make_install
%check
%files
%license LICENSE*
%doc *.md
%{_mingw64_prefix}
%changelog