File friction.spec of Package friction
#
# spec file for package friction
#
# 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/
#
%define _name graphics.friction.Friction
Name: friction
Version: @SERVICE@
Release: 0
Summary: Friction Graphics
License: GPL-3.0-or-later
Group: Productivity/Graphics/Vector Editors
URL: https://github.com/friction2d/friction
Source0: %{name}-%{version}.tar.xz
Patch0: 001-dont-install-license-and-readme.patch
#uildRequires: clang17
BuildRequires: clang
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
#uildRequires: llvm17-gold
BuildRequires: llvm-gold
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qscintilla-qt5-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.15.13
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(icu-i18n)
#uildRequires: pkgconfig(libavcodec)
BuildRequires: ffmpeg-4-libavcodec-devel
#uildRequires: pkgconfig(libavformat)
BuildRequires: ffmpeg-4-libavformat-devel
#uildRequires: pkgconfig(libavutil)
BuildRequires: ffmpeg-4-libavutil-devel
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
#uildRequires: pkgconfig(libswresample)
BuildRequires: ffmpeg-4-libswresample-devel
#uildRequires: pkgconfig(libswscale)
BuildRequires: ffmpeg-4-libswscale-devel
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libwebpdemux)
BuildRequires: pkgconfig(libwebpmux)
BuildRequires: pkgconfig(zlib)
%description
Friction is a powerful and versatile motion graphics application that
allows you to create vector and raster animations for web and video.
%prep
%autosetup -p1
%build
%define __builder ninja
%cmake \
-DCMAKE_C_COMPILER=%{_bindir}/clang \
-DCMAKE_CXX_COMPILER=%{_bindir}/clang++
%cmake_build
%install
%cmake_install
%fdupes -s %{buildroot}%{_datadir}/icons/
%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{_name}.??g
%{_datadir}/icons/hicolor/*/mimetypes/application-x-%{_name}.??g
%{_datadir}/metainfo/%{_name}.appdata.xml
%{_datadir}/mime/packages/%{_name}.xml
%license LICENSE.md
%changelog