You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f39-backgrounds/SPECS/f39-backgrounds.spec

243 lines
6.7 KiB

## START: Set by rpmautospec
## (rpmautospec version 0.6.1)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global relnum 39
%global Bg_Name F39
%global bgname %(t="%{Bg_Name}";echo ${t,,})
# Enable Extras
%global with_extras 1
Name: %{bgname}-backgrounds
Version: %{relnum}.0.5
Release: %autorelease.1
Summary: Fedora %{relnum} default desktop background
License: CC-BY-SA-4.0
URL: https://fedoraproject.org/wiki/_Artwork
Source0: https://github.com/fedoradesign/backgrounds/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildArch: noarch
# for %%_kde4_* macros
# Starting from Fedora 40 and onward
%if 0%{?fedora} > 39
BuildRequires: kde4-filesystem
%else
BuildRequires: kde-filesystem
%endif
BuildRequires: make
Requires: %{name}-budgie = %{version}-%{release}
Requires: %{name}-gnome = %{version}-%{release}
Requires: %{name}-kde = %{version}-%{release}
Requires: %{name}-xfce = %{version}-%{release}
Requires: %{name}-mate = %{version}-%{release}
%description
This package contains desktop backgrounds for the Fedora %{relnum} default
theme. Pulls in themes for GNOME, KDE, Mate and Xfce desktops.
%package base
Summary: Base images for Fedora %{relnum} default background
License: CC-BY-SA-4.0
%description base
This package contains base images for Fedora %{relnum} default background.
%package budgie
Summary: Fedora %{relnum} default wallpaper for Budgie
Requires: %{name}-base = %{version}-%{release}
Recommends: %{name}-gnome = %{version}-%{release}
%description budgie
This package contains Budgie desktop wallpaper for the
Fedora %{relnum} default theme.
%package gnome
Summary: Fedora %{relnum} default wallpaper for Gnome and Cinnamon
Requires: %{name}-base = %{version}-%{release}
%description gnome
This package contains Gnome/Cinnamon desktop wallpaper for the
Fedora %{relnum} default theme.
%package kde
Summary: Fedora %{relnum} default wallpaper for KDE
Requires: %{name}-base = %{version}-%{release}
# Starting from Fedora 40 and onward
%if 0%{?fedora} > 39
Requires: kde4-filesystem
%else
Requires: kde-filesystem
%endif
%description kde
This package contains KDE desktop wallpaper for the Fedora %{relnum}
default them
%package mate
Summary: Fedora %{relnum} default wallpaper for Mate
Requires: %{name}-base = %{version}-%{release}
%description mate
This package contains Mate desktop wallpaper for the Fedora %{relnum}
default theme.
%package xfce
Summary: Fedora %{relnum} default background for XFCE4
Requires: %{name}-base = %{version}-%{release}
#Requires: xfdesktop
%description xfce
This package contains XFCE4 desktop background for the Fedora %{relnum}
default theme.
%if %{with_extras}
%package extras-base
Summary: Base images for Extras Backgrounds
License: CC-BY-4.0 and CC-BY-SA-4.0 and CC0-1.0 and copyleft-next-0.3.1
%description extras-base
This package contains base images for supplemental
wallpapers.
%package extras-gnome
Summary: Extra Wallpapers for Gnome and Cinnamon
Requires: %{name}-extras-base = %{version}-%{release}
%description extras-gnome
This package contains supplemental wallpapers for Gnome
and Cinnamon
%package extras-mate
Summary: Extra Wallpapers for Mate
Requires: %{name}-extras-base = %{version}-%{release}
%description extras-mate
This package contains supplemental wallpapers for Mate
%package extras-kde
Summary: Extra Wallpapers for KDE
Requires: %{name}-extras-base = %{version}-%{release}
%description extras-kde
This package contains supplemental wallpapers for Gnome
%package extras-xfce
Summary: Extra Wallpapers for XFCE
Requires: %{name}-extras-base = %{version}-%{release}
%description extras-xfce
This package contains supplemental wallpapers for XFCE
%endif
%prep
%autosetup -n %{name}
%build
%make_build
%install
%make_install
%files
%doc
%files base
%license COPYING Attribution
%dir %{_datadir}/backgrounds/%{bgname}
%dir %{_datadir}/backgrounds/%{bgname}/default
%{_datadir}/backgrounds/%{bgname}/default/%{bgname}*.{png,xml}
%files kde
%{_kde4_datadir}/wallpapers/%{Bg_Name}/
%dir %{_datadir}/plasma/
%dir %{_datadir}/plasma/desktoptheme/
%{_datadir}/plasma/desktoptheme/%{Bg_Name}/
%files gnome
%{_datadir}/gnome-background-properties/%{bgname}.xml
%dir %{_datadir}/gnome-background-properties/
%files budgie
%{_datadir}/gnome-background-properties/%{bgname}-budgie.xml
%files mate
%{_datadir}/mate-background-properties/%{bgname}.xml
%dir %{_datadir}/mate-background-properties/
%files xfce
%{_datadir}/xfce4/backdrops/%{bgname}.png
%dir %{_datadir}/xfce4/
%dir %{_datadir}/xfce4/backdrops/
%if %{with_extras}
%files extras-base
%license COPYING
%{_datadir}/backgrounds/%{bgname}/extras/
%files extras-gnome
%{_datadir}/gnome-background-properties/%{bgname}-extras.xml
%files extras-kde
%{_kde4_datadir}/wallpapers/%{Bg_Name}_*/
%files extras-mate
%{_datadir}/mate-background-properties/%{bgname}-extras.xml
%files extras-xfce
%{_datadir}/xfce4/backdrops/
%endif
%changelog
* Thu May 02 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 39.0.5-2.1
- Drop R: xfdesktop
- Rebuilt for MSVSphere 9.4
* Wed Feb 21 2024 Adam Williamson <awilliam@redhat.com> - 39.0.5-2
- Also make runtime kde-filesystem dependency conditional
* Tue Feb 20 2024 Luya Tshimbalanga <luya@fedoraproject.org> - 39.0.5-1
- Update to 39.0.5
- Set conditional for kde-filesystem build dependency
- Drop unused pngquant dependency
* Sat Feb 03 2024 Luya Tshimbalanga <luya@fedoraproject.org> - 39.0.4-4
- Rebuild with kde4-filesystem dependency
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 39.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 39.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Sep 29 2023 Luya Tshimbalanga <luya@fedoraproject.org> - 39.0.4-1
- Update to 39.0.4
* Tue Sep 12 2023 Adam Williamson <awilliam@redhat.com> - 39.0.3-1
- 39.0.3 (try again to improve dithering)
* Mon Sep 11 2023 Adam Williamson <awilliam@redhat.com> - 39.0.2-1
- New release 39.0.2 (fix dithering / color depth issues)
* Sat Sep 02 2023 Adam Williamson <awilliam@redhat.com> - 39.0.1-1
- Import the reviewed .src.rpm
## END: Generated by rpmautospec