File openboardview.spec of Package openboardview

#
# spec file for package openboardview
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


Name:           openboardview
Version:        9.95.0
Release:        0
Summary:        Viewer for PCB layouts
# glad is licensed under MIT
# imgui is licensed under MIT
# utf8.h is licensed under Unlicense
License:        MIT
URL:            https://openboardview.org/
Source:         OpenBoardView-%{version}.tar.xz
Patch0:         0001-Fix-build-with-GCC13-Add-missing-cstdint-include-to-.patch
BuildRequires:  hicolor-icon-theme
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(stb)
Provides:       bundled(glad)
Provides:       bundled(imgui)
Provides:       bundled(utf8.h)

%description
Software for viewing PCB/Laptop/Motherboard Layouts.

  * Dynamic part outline rendering, including complex connectors
  * Annotations, for leaving notes about parts, nets, pins or location
  * Configurable colour themes
  * Configurable DPI to facilitate usage on 4K monitors
  * Tablet usage with OSD controls
  * Slower CPU systems through adjustable features
  * Reads FZ (with key), BRD, BRD2, BDV and BV* formats
  * Combined search system finds parts, pins and nets all within single
    search

%prep
%setup -q -n OpenBoardView-%{version}
%autopatch -p1

%build
%cmake \
  -DCMAKE_SHARED_LINKER_FLAGS="" \
  -DBUILD_SHARED_LIBS:BOOL=OFF \
  -DBUILD_STATIC_LIBS:BOOL=ON
%cmake_build

%install
%cmake_install

%files
%license LICENSE
%doc README.md
%{_bindir}/openboardview
%{_datadir}/applications/openboardview.desktop
%{_datadir}/icons/hicolor/scalable/apps/openboardview.svg
%{_datadir}/metainfo/openboardview.appdata.xml
%{_datadir}/mime/packages/openboardview.xml

%changelog
openSUSE Build Service is sponsored by