File blend2d-apps.spec of Package blend2d-apps
#
# spec file for package blend2d-apps
#
# 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/
#
Name: blend2d-apps
Version: @SERVICE@
Release: 0
Summary: Interactive demos and benchmarking tool
License: Zlib
Group: Productivity/Graphics/Other
URL: https://github.com/blend2d/blend2d-apps
Source0: %{name}-%{version}.tar.xz
# git clone https://github.com/blend2d/blend2d && cd blend2d/
# git archive --format tar --prefix blend2d/ HEAD | xz > ../blend2d-`git rev-parse --short HEAD`.tar.xz
Source1: blend2d-320a63a.tar.xz
# git clone https://github.com/asmjit/asmjit && cd asmjit/
# git archive --format tar --prefix 3rdparty/asmjit/ HEAD | xz > ../asmjit-`git rev-parse --short HEAD`.tar.xz
Source2: asmjit-32b5f78.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairo)
BuildRequires: update-desktop-files
%description
Additional applications that use Blend2D rendering engine and optionally other libraries.
%prep
%autosetup -p1
tar xf %{SOURCE1} -C ../
tar xf %{SOURCE2} -C ../blend2d/
%build
%cmake_qt6
%qt6_build
%install
#%%qt6_install
install -dm 0755 %{buildroot}%{_bindir}
for i in $(find build/ -type f -name 'bl_*' -perm 755) ; do
install -Dm 0755 $i %{buildroot}%{_bindir}/
done
%files
%doc README.md
%{_bindir}/bl_*
%license LICENSE.md
%changelog