File mingw32-vsgQt5.spec of Package mingw32-vsgQt5

#
# spec file for package mingw32-vsgQt
#
# Copyright (c) 2021 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/
#

%define _vsg_so_nr 0

%define _name   vsgQt
Name:           mingw32-%{_name}5
Version:        0.2.0
Release:        0
Summary:        3D graphics toolkit
License:        MIT
Group:          Productivity/Graphics/Other
URL:            https://vsg-dev.github.io/VulkanSceneGraph
Source0:        https://github.com/vsg-dev/%{_name}/archive/%{_name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM --cmake: add option 'ENABLE_QT_SUFFIX' to add major version as suffix for creating files and binaries
Patch0:         0001-cmake-add-option-ENABLE_QT_SUFFIX-to-add-major-versi.patch
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-libqt5-qtbase-devel
BuildRequires:  mingw32-libvsg-devel
# BuildRequires:  pkgconfig(xcb)
BuildRequires:  mingw32-vulkan-devel
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Utility library adding Qt features to VulkanSceneGraph

%package -n mingw32-libvsgQt5%{_vsg_so_nr}
Summary:        Shared libraries for vsgQt
Group:          System/Libraries

%description -n mingw32-libvsgQt5%{_vsg_so_nr}
The VulkanSceneGraph is a graphics toolkit for the development of
graphic applications such as flight simulators, games, virtual
reality and scientific visualization. Based around the concept of a
scene graph, it provides an object-oriented framework on top of
Vulkan.

This package contains the shared libraries for vsgQt

%package devel
Summary:        VulkanSceneGraph development files
Group:          Development/Libraries/C and C++
Requires:       mingw32-libvsgQt5%{_vsg_so_nr} == %{version}

%description devel
The VulkanSceneGraph is a graphics toolkit for the development of
graphic applications such as flight simulators, games, virtual
reality and scientific visualization. Based around the concept of a
scene graph, it provides an object-oriented framework on top of
Vulkan.

This package contains the header and development files for vsgQt.

%_mingw32_debug_package

%prep
%autosetup -p1 -n %{_name}-%{version}

%build
%_mingw32_cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_RELWITHDEBINFO_POSTFIX=
%_mingw32_cmake_build

%install
%_mingw32_cmake_install


%files
%defattr(-,root,root)
%license LICENSE.md
%{_mingw32_bindir}/*.exe

%files -n mingw32-libvsgQt5%{_vsg_so_nr}
%defattr(-,root,root)
%{_mingw32_bindir}/lib*.dll

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/vsg*/
%{_mingw32_libdir}/lib*.dll.a
%{_mingw32_libdir}/cmake

%changelog
openSUSE Build Service is sponsored by