File mingw64-kicad-symbols.spec of Package mingw64-kicad-symbols

#
# spec file for package mingw64-kicad-symbols
#
# 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.x.y are bugfix versions, do not require users to upgrade symbols/footprints/packages
%define compatversion 6.0.0
%define _name   kicad-symbols
Name:           mingw64-%{_name}
Version:        6.0.11
Release:        0
Summary:        Schematic symbol library for KiCad
License:        CC-BY-SA-4.0
Group:          Productivity/Scientific/Electronics
# License is CC-BY-SA-4.0 but there is an exception
# See included LICENSE.md and kicad-pcb.org/libraries/license/
Url:            http://kicad-pcb.org
Source:         https://github.com/KiCad/kicad-symbols/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.bz2
BuildRequires:  mingw64-cross-cmake
BuildRequires:  fdupes
BuildRequires:  mingw64-filesystem
%_mingw64_package_header
BuildArch:      noarch
Requires:       mingw64-kicad-footprints = %{version}
Provides:       %{name} = %{compatversion}
Provides:       mingw64-kicad-library = %{version}
Obsoletes:      mingw64-kicad-library < 5.0.0

%description
KiCad is a software suite used for Electronic Design Automation (EDA).

This is the schematic symbol library package for KiCad.

%prep
%setup -q -n %{_name}-%{version}

%build
%_mingw64_cmake \
    -DKICAD_DATA:PATH=%{_mingw64_datadir}/kicad
%_mingw64_cmake_build

%install
%_mingw64_cmake_install
%fdupes -s %{buildroot}/%{_mingw64_datadir}/kicad/

%files
%doc README.md CONTRIBUTING.md
%{_mingw64_datadir}/kicad/
%license LICENSE.md

%changelog
openSUSE Build Service is sponsored by