%global srcname wallpapers
Name: elementary-wallpapers
Summary: Collection of wallpapers from the elementary project
Version: 5.2
Release: 2%{?dist}
# License breakdown is available in debian/copyright
License: Public Domain
URL: https://github.com/elementary/%{srcname}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# background settings file for gnome-control-center
Source1: %{name}.xml
BuildRequires: coreutils
BuildArch: noarch
Provides: pandora-wallpapers = %{version}-%{release}
Obsoletes: pandora-wallpapers < 0.1.8-2
%description
This is the official collection of wallpapers from the elementary
project.
%package gnome
Summary: Collection of wallpapers from elementary (GNOME settings)
Requires: %{name} = %{version}-%{release}
Requires: gnome-control-center
Supplements: (%{name} and gnome-control-center)
%description gnome
This is the official collection of wallpapers from the elementary
project. This package contains the settings file that will make the
wallpapers show up in gnome-control-center.
%prep
%autosetup -n %{srcname}-%{version}
%build
# Nothing to do
%install
mkdir -p %{buildroot}/%{_datadir}/backgrounds/elementary
cp -pav *.jpg %{buildroot}/%{_datadir}/backgrounds/elementary/
mkdir -p %{buildroot}/%{_datadir}/gnome-background-properties
cp %{SOURCE1} %{buildroot}/%{_datadir}/gnome-background-properties/
%files
%license debian/copyright
%doc README.md
%{_datadir}/backgrounds/elementary/
%files gnome
%{_datadir}/gnome-background-properties/elementary-wallpapers.xml
%changelog
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jul 07 2018 Fabio Valentini <decathorpe@gmail.com> - 5.2-1
- Update to version 5.2.
* Sun May 27 2018 Fabio Valentini <decathorpe@gmail.com> - 5.1-1
- Update to version 5.1.
* Sun Jan 21 2018 Fabio Valentini <decathorpe@gmail.com> - 5.0-1
- Initial package obsoleting pandora-wallpapers.