File ffmpegthumbs-kf5.spec of Package ffmpegthumbs

# spec file for package ffmpegthumbs
# Copyright (c) 2024 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

%define kf5_version 5.92.0
%define qt5_version 5.15.0

%define rname ffmpegthumbs
%bcond_without released
Name:           ffmpegthumbs-kf5
Version:        24.05.0
Release:        0
Summary:        FFmpeg-based thumbnail creator for video files
License:        LGPL-2.0-or-later
%if %{with released}
Source2:        applications.keyring
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF5Config) >= %{kf5_version}
BuildRequires:  cmake(KF5KIO) >= %{kf5_version}
BuildRequires:  cmake(Qt5Core) >= %{qt5_version}
BuildRequires:  cmake(Qt5Gui) >= %{qt5_version}
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(libavfilter)
BuildRequires:  pkgconfig(libavformat)
BuildRequires:  pkgconfig(libavutil)
BuildRequires:  pkgconfig(libswscale)
BuildRequires:  pkgconfig(taglib)
# Provides ffmpegthumbnailersettings5.kcfg and org.kde.ffmpegthumbs.metainfo.xml
Requires:       ffmpegthumbs = %{version}

FFmpeg-based thumbnail creator for video files.
This package will only work for packages still using KDE Frameworks 5

%autosetup -p1 -n %{rname}-%{version}

%cmake_kf5 -d build


%kf5_makeinstall -C build

# These files are already shipped by ffmpegthumbs
rm %{buildroot}%{_kf5_appstreamdir}/org.kde.ffmpegthumbs.metainfo.xml
rm %{buildroot}%{_kf5_configkcfgdir}/ffmpegthumbnailersettings5.kcfg


%license LICENSES/*
%dir %{_kf5_plugindir}/kf5/thumbcreator

openSUSE Build Service is sponsored by