Blob Blame History Raw
%global srcname         wallpapers

Name:           elementary-wallpapers
Summary:        Collection of wallpapers from the elementary project
Version:        5.0
Release:        1%{?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}
%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
* Sun Jan 21 2018 Fabio Valentini <decathorpe@gmail.com> - 5.0-1
- Initial package obsoleting pandora-wallpapers.