%global tarball_version %%(echo %{version} | tr '~' '.') Name: gnome-backgrounds Version: 49.0 Release: %autorelease Summary: Desktop backgrounds packaged with the GNOME desktop License: CC-BY-SA-3.0 URL: https://gitlab.gnome.org/GNOME/gnome-backgrounds Source0: https://download.gnome.org/sources/%{name}/49/%{name}-%{tarball_version}.tar.xz BuildArch: noarch BuildRequires: gettext BuildRequires: meson # svg and jxl pixbuf loaders Requires: (librsvg2 if gdk-pixbuf2) Requires: (jxl-pixbuf-loader if gdk-pixbuf2) Provides: gnome-backgrounds-extras = %{version}-%{release} Obsoletes: gnome-backgrounds-extras < %{version}-%{release} %description The gnome-backgrounds package contains the default desktop background, known as the Adwaita background, for the GNOME Desktop version %prep %autosetup -p1 -n %{name}-%{tarball_version} %build %meson %meson_build %install %meson_install mkdir -p $RPM_BUILD_ROOT%{_datadir}/backgrounds/images # all translations are merged back into xml by intltool rm -rf $RPM_BUILD_ROOT%{_datadir}/locale %files %license COPYING %doc AUTHORS NEWS README.md %{_datadir}/backgrounds/gnome/*.{jxl,png,svg} %{_datadir}/gnome-background-properties/*.xml %changelog %autochangelog