2020-06-06 00:47:40 +02:00
|
|
|
#
|
|
|
|
# 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
|
2020-07-31 11:15:19 +02:00
|
|
|
Version: 0.8
|
2020-06-06 00:47:40 +02:00
|
|
|
Release: 0
|
2020-06-22 18:06:11 +02:00
|
|
|
Summary: The openSUSEway desktop environment meta package
|
2020-07-14 15:08:30 +02:00
|
|
|
Group: Metapackages
|
2020-06-06 00:47:40 +02:00
|
|
|
URL: https://github.com/openSUSE/openSUSEway
|
2020-06-19 21:59:02 +02:00
|
|
|
Source0: https://github.com/openSUSE/openSUSEway/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-06-06 00:47:40 +02:00
|
|
|
License: MIT
|
|
|
|
BuildArch: noarch
|
2020-07-31 11:15:19 +02:00
|
|
|
BuildRequires: aaa_base
|
|
|
|
BuildRequires: systemd
|
|
|
|
Requires: aaa_base
|
2020-07-14 14:25:48 +02:00
|
|
|
Requires: sway-branding-openSUSE
|
|
|
|
Requires: waybar-branding-openSUSE
|
|
|
|
Requires: sudo
|
|
|
|
Requires: git
|
|
|
|
Requires: jq
|
|
|
|
Requires: wget
|
|
|
|
Requires: curl
|
|
|
|
Requires: vim
|
|
|
|
Requires: tar
|
|
|
|
Requires: gzip
|
|
|
|
Requires: bzip2
|
|
|
|
Requires: less
|
|
|
|
Requires: grep
|
|
|
|
Requires: vifm
|
|
|
|
Requires: imv
|
|
|
|
Requires: firefox
|
|
|
|
Requires: NetworkManager
|
|
|
|
Requires: mpv
|
2020-07-31 11:15:19 +02:00
|
|
|
Requires: libqt5-qtwayland
|
|
|
|
Requires: xdg-desktop-portal
|
|
|
|
Requires: xdg-utils
|
|
|
|
Requires: qt5ct
|
|
|
|
Requires: adwaita-qt5
|
|
|
|
Requires: wob
|
|
|
|
Requires: pamixer
|
|
|
|
Requires: command-not-found
|
2020-06-06 00:47:40 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This meta package aggregates openSUSEway desktop enviroment packages.
|
|
|
|
|
2020-07-15 16:25:29 +02:00
|
|
|
%bcond_with betatest
|
|
|
|
%pattern_graphicalenvironments
|
|
|
|
%package -n patterns-openSUSEway
|
2020-07-16 11:41:38 +02:00
|
|
|
Summary: The openSUSEway desktop environment pattern
|
2020-07-15 16:25:29 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Metapackages
|
|
|
|
Provides: pattern() = openSUSEway
|
|
|
|
Provides: pattern-category() = openSUSEway
|
|
|
|
Provides: pattern-icon() = pattern-sway
|
|
|
|
Provides: pattern-order() = 1460
|
|
|
|
Provides: pattern-visible()
|
|
|
|
URL: https://github.com/openSUSE/openSUSEway
|
|
|
|
BuildRequires: patterns-rpm-macros
|
|
|
|
Requires: openSUSEway
|
|
|
|
|
|
|
|
%description -n patterns-openSUSEway
|
|
|
|
This is an internal package that is used to create the patterns as part
|
|
|
|
of the installation source setup. Installation of this package does
|
|
|
|
not make sense.
|
|
|
|
|
2020-06-06 00:47:40 +02:00
|
|
|
%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
|
2020-07-14 14:25:48 +02:00
|
|
|
Requires: sway
|
2020-06-06 00:47:40 +02:00
|
|
|
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
|
|
|
|
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
|
|
|
|
|
2020-07-31 11:15:19 +02:00
|
|
|
## openSUSEway package
|
|
|
|
install -D -p -m 644 openSUSEway.sh %{buildroot}%{_sysconfdir}/profile.d/openSUSEway.sh
|
|
|
|
install -D -p -m 644 .config/sway/env %{buildroot}%{_prefix}/lib/environment.d/50-openSUSE.conf
|
|
|
|
|
|
|
|
## openSUSEway pattern package
|
2020-07-14 15:08:30 +02:00
|
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/patterns/
|
|
|
|
echo 'This file marks the pattern openSUSEway to be installed.' >%{buildroot}/%{_defaultdocdir}/patterns/openSUSEway.txt
|
|
|
|
|
2020-06-06 00:47:40 +02:00
|
|
|
## 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
|
2020-07-14 14:25:48 +02:00
|
|
|
install -D -p -m 644 .config/sway/config.d/50-openSUSE.conf %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE.conf
|
2020-06-06 00:47:40 +02:00
|
|
|
|
|
|
|
### 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
|
|
|
|
|
|
|
|
## 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
|
2020-07-14 14:25:48 +02:00
|
|
|
sed -i -e "s|wofi --show.*|wofi --conf=%{_sysconfdir}/wofi/config --style=%{_sysconfdir}/wofi/style.css|g" %{buildroot}%{_sysconfdir}/sway/config.d/50-openSUSE.conf
|
2020-06-06 00:47:40 +02:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|
2020-07-14 15:08:30 +02:00
|
|
|
%files
|
2020-07-31 11:15:19 +02:00
|
|
|
%config %{_sysconfdir}/profile.d/openSUSEway.sh
|
|
|
|
%config %{_prefix}/lib/environment.d/50-openSUSE.conf
|
2020-07-15 16:25:29 +02:00
|
|
|
|
|
|
|
%files -n patterns-openSUSEway
|
2020-07-14 15:08:30 +02:00
|
|
|
%dir %{_defaultdocdir}/patterns
|
|
|
|
%{_defaultdocdir}/patterns/openSUSEway.txt
|
2020-06-06 00:47:40 +02:00
|
|
|
|
|
|
|
%files -n sway-branding-openSUSE
|
|
|
|
%dir %{_sysconfdir}/sway
|
2020-07-31 11:15:19 +02:00
|
|
|
%config %{_sysconfdir}/sway/config
|
|
|
|
%config %{_sysconfdir}/sway/env
|
2020-06-06 00:47:40 +02:00
|
|
|
%dir %{_sysconfdir}/sway/config.d
|
2020-07-31 11:15:19 +02:00
|
|
|
%config %{_sysconfdir}/sway/config.d/50-openSUSE.conf
|
2020-06-06 00:47:40 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|