Initial build for Alma9

This commit is contained in:
eabdullin 2022-06-06 20:56:58 +03:00
commit 797fe9b08b
10 changed files with 155 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux abstract-dark
X-KDE-PluginInfo-Name=Alma-abstract-dark
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux abstract-light
X-KDE-PluginInfo-Name=Alma-abstract-light
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux dark
X-KDE-PluginInfo-Name=Alma-dark
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux light
X-KDE-PluginInfo-Name=Alma-light
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux mountains-dark
X-KDE-PluginInfo-Name=Alma-mountains-dark
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux mountains-white
X-KDE-PluginInfo-Name=Alma-mountains-white
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux waves-dark
X-KDE-PluginInfo-Name=Alma-waves-dark
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux waves-light
X-KDE-PluginInfo-Name=Alma-waves-light
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=AlmaLinux waves-sunset
X-KDE-PluginInfo-Name=Alma-waves-sunset
X-KDE-PluginInfo-Author=Bala Raman
X-KDE-PluginInfo-Email=srbala@gmail.com
X-KDE-PluginInfo-License=MIT

View File

@ -0,0 +1,101 @@
%global codename sphericalcow
# Package is only arch specific due to missing deps on arm
# Debuginfo package is useless.
%global debug_package %{nil}
Name: almalinux-backgrounds-extras
Version: 90.0
Release: 1%{?dist}
Summary: AlmaLinux-related desktop backgrounds for KDE and XFCE
BuildArch: noarch
#Group: System Environment/Base
URL: http://www.almalinux.org
Source0: alma-dark-metadata.desktop
Source1: alma-light-metadata.desktop
Source2: alma-abstract-dark-metadata.desktop
Source3: alma-abstract-light-metadata.desktop
Source4: alma-mountains-dark.desktop
Source5: alma-mountains-white.desktop
Source6: alma-waves-dark.desktop
Source7: alma-waves-light.desktop
Source8: alma-waves-sunset.desktop
License: MIT
Requires: almalinux-backgrounds
Requires: coreutils
Conflicts: desktop-backgrounds-compat
Provides: desktop-backgrounds-compat
%description
AlmaLinux-related desktop backgrounds for KDE and XFCE
%prep
%build
%install
# Declare an array for background types
declare -a bgtypes=("abstract-dark" "abstract-light" "dark" "light" "mountains-dark" "mountains-white" "waves-dark" "waves-light" "waves-sunset")
# Declare an array for background sizes
declare -a sizes=("1800x1440.jpg" "2048x1536.jpg" "2560x1080.jpg" "2560x1440.jpg" "2560x1600.jpg" "3440x1440.jpg")
# kde
## Loop through the above array(s) types and sizes to create links and metadata
for bg in "${bgtypes[@]}"
do
# Remove any old folders and create new structure
rm -rf %{_datadir}/wallpapers/Alma-$bg*
mkdir -p %{buildroot}%{_datadir}/wallpapers/Alma-$bg/contents/images/
# create sym link for all sizes
for size in "${sizes[@]}"
do
ln -sf %{_datadir}/backgrounds/Alma-$bg-$size %{buildroot}%{_datadir}/wallpapers/Alma-$bg/contents/images/$size
done
done
install -p -m 644 %{SOURCE0} %{buildroot}%{_datadir}/wallpapers/Alma-dark/metadata.desktop
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/wallpapers/Alma-light/metadata.desktop
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/wallpapers/Alma-abstract-dark/metadata.desktop
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/wallpapers/Alma-abstract-light/metadata.desktop
# xfce
mkdir -p %{buildroot}%{_datadir}/backgrounds/images
ln -s %{_datadir}/backgrounds/Alma-dark-2560x1440.jpg %{buildroot}%{_datadir}/backgrounds/default.png
ln -s %{_datadir}/backgrounds/Alma-dark-2560x1440.jpg %{buildroot}%{_datadir}/backgrounds/images/default.png
ln -s %{_datadir}/backgrounds/Alma-dark-2560x1440.jpg %{buildroot}%{_datadir}/backgrounds/images/default-16_9.png
ln -s %{_datadir}/backgrounds/Alma-dark-2560x1600.jpg %{buildroot}%{_datadir}/backgrounds/images/default-16_10.png
# TODO: Replace following symlink with an actual 5/4 ratio image if one is added in the future
ln -s %{_datadir}/backgrounds/Alma-dark-2048x1536.jpg %{buildroot}%{_datadir}/backgrounds/images/default-5_4.png
%post
%postun
%posttrans
%files
%{_datadir}/wallpapers/Alma-abstract-dark
%{_datadir}/wallpapers/Alma-abstract-light
%{_datadir}/wallpapers/Alma-dark
%{_datadir}/wallpapers/Alma-light
%{_datadir}/wallpapers/Alma-mountains-dark
%{_datadir}/wallpapers/Alma-mountains-white
%{_datadir}/wallpapers/Alma-waves-dark
%{_datadir}/wallpapers/Alma-waves-light
%{_datadir}/wallpapers/Alma-waves-sunset
%{_datadir}/backgrounds/default.png
%{_datadir}/backgrounds/images/default.png
%{_datadir}/backgrounds/images/default-16_9.png
%{_datadir}/backgrounds/images/default-16_10.png
%{_datadir}/backgrounds/images/default-5_4.png
#%license COPYING
%changelog
* Mon Jun 06 2022 Eduard Abdullin <eabdullin@almalinux.org> - 90.0-1
- Update for AlmaLinux9
* Tue Aug 24 2021 Jonathan Wright <jonathan@almalinux.org> - 84.0-1
- package created