From 721f1e1f59bad74ee9182afb1b2567d7cab3d5ff390c75208ae94d0ece93a150 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 5 Jun 2020 22:47:40 +0000 Subject: [PATCH] Accepting request 811877 from home:dkondratenko openSUSEway: set of packages to brand Sway and other packages to have openSUSE like Sway desktop environment OBS-URL: https://build.opensuse.org/request/show/811877 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/openSUSEway?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + openSUSEway-0.2.tar.gz | 3 + openSUSEway.changes | 27 +++++++++ openSUSEway.spec | 121 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 175 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 openSUSEway-0.2.tar.gz create mode 100644 openSUSEway.changes create mode 100644 openSUSEway.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/openSUSEway-0.2.tar.gz b/openSUSEway-0.2.tar.gz new file mode 100644 index 0000000..4f2585c --- /dev/null +++ b/openSUSEway-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31f1a51cc91f49be98d219d609932ebc7ec9eb663265fae27bb5f9d5592039a9 +size 6211 diff --git a/openSUSEway.changes b/openSUSEway.changes new file mode 100644 index 0000000..e97c27e --- /dev/null +++ b/openSUSEway.changes @@ -0,0 +1,27 @@ +------------------------------------------------------------------- +Fri Jun 5 14:21:35 UTC 2020 - Denis Kondratenko + +- Add waybar branding package +- Add alacritty customization + +------------------------------------------------------------------- +Fri Jun 5 13:50:14 UTC 2020 - Denis Kondratenko + +- Add metapackage in order to store more brandings packages under + +------------------------------------------------------------------- +Fri Jun 5 10:03:12 UTC 2020 - Denis Kondratenko + +- Add wofi config and style to sysconfdir + * wofi doesn't support distibution specific dirs from package + * spec seds distro specific dirs to sway config for wofi + +------------------------------------------------------------------- +Fri Jun 5 09:28:00 UTC 2020 - Denis Kondratenko + +- Add Source URL and build from archive + +------------------------------------------------------------------- +Fri May 29 15:09:04 UTC 2020 - Denis Kondratenko + +- Initial package to brand Sway in openSUSE way diff --git a/openSUSEway.spec b/openSUSEway.spec new file mode 100644 index 0000000..0d70b94 --- /dev/null +++ b/openSUSEway.spec @@ -0,0 +1,121 @@ +# +# spec file for package openSUSEway +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%define sway_version %(rpm -q --queryformat "%%{version}" sway) +%define waybar_version %(rpm -q --queryformat "%%{version}" waybar) + +Name: openSUSEway +Version: 0.2 +Release: 0 +Summary: The openSUSEway desktop enviroment meta package +Group: System/GUI/Other +URL: https://github.com/openSUSE/openSUSEway +Source0: https://github.com/openSUSE/openSUSEway/archive/{%version}.tar.gz#/%{name}-%{version}.tar.gz +License: MIT +BuildArch: noarch + +%description +This meta package aggregates openSUSEway desktop enviroment packages. + +%package -n sway-branding-openSUSE +Summary: openSUSE branding of sway +Group: System/GUI/Other +BuildRequires: sway +Requires: patterns-sway-sway +Requires: wallpaper-branding-openSUSE +Requires: brightnessctl +Requires: pavucontrol +Requires: fontawesome-fonts +Requires: jq +Requires: sway = %{sway_version} +Provides: sway-branding = %{version} +Conflicts: otherproviders(sway-branding) +Supplements: packageand(sway:branding-openSUSE) + +#BRAND: /etc/sway/config and /etc/sway/config.d/ +#BRAND: contain openSUSE config and branding + +%description -n sway-branding-openSUSE +This package provides the openSUSE look and feel for sway. + +%package -n waybar-branding-openSUSE +Summary: openSUSE branding of waybar +Group: System/GUI/Other +BuildRequires: waybar +Requires: waybar = %{waybar_version} +Provides: waybar-branding = %{version} +Conflicts: otherproviders(waybar-branding) +Supplements: packageand(waybar:branding-openSUSE) + +#BRAND: /etc/xdg/waybar/config and /etc/xdg/waybar/style.css +#BRAND: contain openSUSE config and branding + +%description -n waybar-branding-openSUSE +This package provides the openSUSE look and feel for waybar. + +%prep +%autosetup -p1 -n openSUSEway-%{version} + +%build + +%install + +## Sway +install -D -p -m 644 .config/sway/config %{buildroot}%{_sysconfdir}/sway/config +install -D -p -m 644 .config/sway/env %{buildroot}%{_sysconfdir}/sway/env +install -D -p -m 644 .config/sway/config.d/50-openSUSE %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE + +### alacritty +# so far doesn't have special branding package and it doesn't support system wide config +install -D -p -m 644 .config/alacritty/alacritty.yml %{buildroot}%{_sysconfdir}/alacritty/alacritty.yml +#set alacritty config to the system dir +sed -i -e "s|alacritty.*|alacritty --config-file %{_sysconfdir}/alacritty/alacritty.yml|g" %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE + +## wofi +install -D -p -m 644 .config/wofi/config %{buildroot}%{_sysconfdir}/wofi/config +install -D -p -m 644 .config/wofi/style.css %{buildroot}%{_sysconfdir}/wofi/style.css +#set wofi config and style to the system dir +sed -i -e "s|wofi --show.*|wofi --conf=%{_sysconfdir}/wofi/config --style=%{_sysconfdir}/wofi/style.css|g" %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE + +## waybar +install -D -p -m 644 .config/waybar/config %{buildroot}%{_sysconfdir}/xdg/waybar/config +install -D -p -m 644 .config/waybar/style.css %{buildroot}%{_sysconfdir}/xdg/waybar/style.css + +%clean +rm -rf %{buildroot} + +%files -n sway-branding-openSUSE +%dir %{_sysconfdir}/sway +%config(noreplace) %{_sysconfdir}/sway/config +%config(noreplace) %{_sysconfdir}/sway/env +%dir %{_sysconfdir}/sway/config.d +%config(noreplace) %{_sysconfdir}/sway/config.d/50-openSUSE + +%dir %{_sysconfdir}/alacritty +%config(noreplace) %{_sysconfdir}/alacritty/alacritty.yml + +%dir %{_sysconfdir}/wofi +%config(noreplace) %{_sysconfdir}/wofi/config +%config(noreplace) %{_sysconfdir}/wofi/style.css + +%files -n waybar-branding-openSUSE +%dir %{_sysconfdir}/xdg/waybar +%config(noreplace) %{_sysconfdir}/xdg/waybar/config +%config(noreplace) %{_sysconfdir}/xdg/waybar/style.css + +%changelog +