File plasma5-wallpapers-dynamic.spec of Package plasma5-wallpapers-dynamic

#
# Spec file for package plasma5-wallpapers-dynamic
#
# Escarzador
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

%define _name  plasma_wallpaper_com.github.zzag.dynamic

Name:             plasma5-wallpapers-dynamic
Summary:          Dynamic wallpaper plugin for KDE Plasma (HEIF based)
Version:          3.3.9
Release:          0
Group:            System/Emulators/Other
License:          GPL-3.0-or-later
URL:              https://github.com/zzag/plasma5-wallpapers-dynamic
Source0:          %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:    cmake
BuildRequires:    binutils gcc gcc-c++
BuildRequires:    extra-cmake-modules
BuildRequires:    gmp-ecm-devel
BuildRequires:    kpackage-devel
BuildRequires:    kdeclarative-devel
BuildRequires:    plasma-framework-devel 
BuildRequires:    ki18n-devel
BuildRequires:    libqt5-qtbase-devel
BuildRequires:    libqt5-qtdeclarative-devel
BuildRequires:    libqt5-qtlocation-devel
BuildRequires:    libexif-devel
BuildRequires:    libheif-devel
BuildRequires:    fdupes
Recommends:       geoclue2
ExclusiveArch:    x86_64 noarch

%description
A wallpaper plugin for KDE Plasma that continuously updates the desktop background based on the current time in your location.


%package devel
Summary:          Development files for Plasma5 dynamic wallpaper plugin
BuildArch:        noarch

%description devel
Development files for Plasma5 dynamic wallpaper plugin

%package lang
Summary:          Translation files for Plasma5 dynamic wallpaper plugin
BuildArch:        noarch

%description lang
Translation files for Plasma5 dynamic wallpaper plugin


%prep
%setup -q -n %{name}-%{version}


%build
export CCFLAGS='%{optflags}'

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
         -DCMAKE_INSTALL_PREFIX=%{_prefix}
make

%install
cd build
make DESTDIR=%{buildroot} install
%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSES/GPL-3.0-or-later.txt
%{_libdir}/qt5/qml/com/github/zzag/plasma/wallpapers/dynamic/
%{_libdir}/cmake/KDynamicWallpaper
%{_libdir}/qt5/plugins/kpackage/packagestructure/packagestructure_dynamicwallpaper.so
%{_datadir}/plasma/wallpapers/com.github.zzag.dynamic
%{_bindir}/kdynamicwallpaperbuilder
%{_datadir}/bash-completion/completions/kdynamicwallpaperbuilder
%{_datadir}/fish/completions/kdynamicwallpaperbuilder.fish
%{_datadir}/kservices5/plasma-wallpaper-com.github.zzag.dynamic.desktop
%{_datadir}/metainfo/com.github.zzag.dynamic.appdata.xml
"%{_datadir}/wallpapers/Dynamic Numbers"
%{_datadir}/zsh/site-functions/_kdynamicwallpaperbuilder
%{_libdir}/libkdynamicwallpaper.*
%dir %{_libdir}/qt5/qml/com
%dir %{_libdir}/qt5/qml/com/github
%dir %{_libdir}/qt5/qml/com/github/zzag
%dir %{_libdir}/qt5/qml/com/github/zzag/plasma
%dir %{_libdir}/qt5/qml/com/github/zzag/plasma/wallpapers
%dir %{_datadir}/fish
%dir %{_datadir}/fish/completions
%dir %{_datadir}/plasma/wallpapers
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions

%files lang
%defattr(-,root,root)
%{_datadir}/locale/*/LC_MESSAGES/%{_name}.mo

%files devel
%defattr(-,root,root)
/usr/include/KDynamicWallpaper

%changelog
openSUSE Build Service is sponsored by