From 444e55f60c70770855ba71cc54ad6f9546c24c34 Mon Sep 17 00:00:00 2001 From: Ward Nakchbandi Date: Sat, 24 Sep 2022 15:32:53 +0300 Subject: [PATCH] commit --- nobara-gnome-layouts.spec | 46 ++++++++++++++++++++++++++++++++ src/usr/bin/nobara-gnome-layouts | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 nobara-gnome-layouts.spec create mode 100644 src/usr/bin/nobara-gnome-layouts diff --git a/nobara-gnome-layouts.spec b/nobara-gnome-layouts.spec new file mode 100644 index 0000000..ba64eee --- /dev/null +++ b/nobara-gnome-layouts.spec @@ -0,0 +1,46 @@ +BuildArch: noarch + +Name: nobara-gnome-layouts +Version: 0.3 +Release: 1%{?dist} +License: GPLv2 +Group: System Environment/Libraries +Summary: Nobara's Gnome layouts App + + +URL: https://github.com/CosmicFusion/cosmo-gnome-layouts + +Source0: %{name}-%{version}-%{release}.tar.gz + +BuildRequires: wget +Requires: /usr/bin/bash +Requires: python3 +Requires: python +Requires: gtk3 +Requires: gnome-shell +Requires: dconf +Requires: glib2 + +%install +tar -xf %{SOURCE0} +mv usr %{buildroot}/ +mv etc %{buildroot}/ +mkdir -p %{buildroot}/usr/share/licenses/nobara-gnome-layouts +wget https://raw.githubusercontent.com/CosmicFusion/cosmo-gnome-layouts/main/LICENSE.md -O %{buildroot}/usr/share/licenses/nobara-gnome-layouts/LICENSE + +%description +Nobara's Python3 & GTK3 built Gnome layouts App +%files +%attr(0755, root, root) "/usr/bin/nobara-gnome-layouts" +%attr(0644, root, root) "/usr/share/glib-2.0/schemas/org.nobara.layouts.gschema.xml" +%attr(0755, root, root) "/etc/nobara/scripts/nobara-layouts/all.sh" +%attr(0755, root, root) "/etc/nobara/scripts/nobara-layouts/reload.sh" +%attr(0755, root, root) "/etc/nobara/scripts/nobara-layouts/nobara-layouts.py" +%attr(0644, root, root) "/etc/nobara/scripts/nobara-layouts/nobara-layouts.ui" +%attr(0755, root, root) "/etc/nobara/scripts/nobara-layouts/layout-scripts/*.sh" +%attr(0755, root, root) "/etc/nobara/scripts/nobara-layouts/settings-scripts/*.sh" +%attr(0644, root, root) "/etc/nobara/scripts/nobara-layouts/previews/*.svg" +%attr(0644, root, root) "/usr/share/licenses/nobara-gnome-layouts/LICENSE" + +%post +glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/src/usr/bin/nobara-gnome-layouts b/src/usr/bin/nobara-gnome-layouts new file mode 100644 index 0000000..6d29e75 --- /dev/null +++ b/src/usr/bin/nobara-gnome-layouts @@ -0,0 +1,2 @@ +#! /bin/bash +python3 /etc/nobara/scripts/nobara-layouts/nobara-layouts.py