File fantascene-dynamic-wallpaper.spec of Package fantascene-dynamic-wallpaper

#
# spec file for package obs-vkcapture
#
# Copyright (c) 2023 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:           fantascene-dynamic-wallpaper
Version:        2.0.5
Release:        2
Summary:        An application for running animated wallpaper
License:        GPL-3.0
URL:            https://github.com/dependon/fantascene-dynamic-wallpaper
Source0:        https://github.com/dependon/fantascene-dynamic-wallpaper/archive/refs/tags/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Charts)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xrender)
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(xcb-ewmh)
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(mpv)
BuildRequires:  pkgconfig(jack)
BuildRequires:	glib2-devel

%ifarch ppc ppc64 ppc64le s390 s390x
BuildRequires:  pkgconfig(Qt5WebKit)
%else
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  libqt5-qtwebengine-devel
%endif

%description
Managed animated wallpaper based on X11 under Linux. Also compatible with Wayland environment

%prep
%autosetup -p1
pwd
sed -i "s/(lrelease/(lrelease-qt5/g" ./src/*.pro

%build
qmake-qt5 ./%{name}.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/
%make_build ./build

%install
make INSTALL_ROOT="%buildroot" -C ./build install

%files
%{_bindir}/fantascene-dynamic-wallpaper
%{_datadir}/applications/fantascene-dynamic-wallpaper.desktop
%dir %{_datadir}/fantascene-dynamic-wallpaper/
%{_datadir}/fantascene-dynamic-wallpaper/*
%{_datadir}/icons/fantascene-dynamic-wallpaper.png

openSUSE Build Service is sponsored by