File mingw32-kicad-packages3D.spec of Package mingw32-kicad-packages3D
#
# spec file for package mingw32-kicad-packages3D
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# 5.0.x are bugfix versions, do not require users to upgrade symbols/footprints/packages
%define compatversion 6.0.0
%define _name kicad-packages3D
Name: mingw32-%{_name}
Version: 6.0.11
Release: 0
Summary: 3D model libraries for rendering and MCAD integration
# License is CC-BY-SA-4.0 but there is an exception
# See included LICENSE.md and kicad-pcb.org/libraries/license/
License: CC-BY-SA-4.0
Group: Productivity/Scientific/Electronics
URL: https://www.kicad.org
Source: https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/%{version}/kicad-packages3D-%{version}.tar.gz
BuildRequires: mingw32-cross-cmake
BuildRequires: fdupes
BuildRequires: mingw32-filesystem
%_mingw32_package_header
BuildArch: noarch
Requires: mingw32-kicad-footprints = %{version}
Provides: %{name} = %{compatversion}
Provides: mingw32-kicad-library-3D = %{version}
Obsoletes: mingw32-kicad-library-3D < %{compatversion}
Suggests: FreeCAD
%description
KiCad is a software suite used for Electronic Design Automation (EDA).
This package contains 3D models associated with the various KiCad footprint
library components for rendering and mechanical CAD (MCAD) integration.
%prep
%setup -q -n %{_name}-%{version}
%build
%_mingw32_cmake \
-DKICAD_DATA:PATH=%{_mingw32_datadir}/kicad
%_mingw32_cmake_build
%install
%_mingw32_cmake_install
%fdupes -s %{buildroot}%{_mingw32_datadir}/kicad/3dmodels/
%files
%doc README.md CREDITS.md
%license LICENSE.md
%dir %{_mingw32_datadir}/kicad/
%dir %{_mingw32_datadir}/kicad/3dmodels
%dir %{_mingw32_datadir}/kicad/3dmodels/*
%{_mingw32_datadir}/kicad/3dmodels/*/*.step
%{_mingw32_datadir}/kicad/3dmodels/*/*.wrl
%changelog