-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gnome): Add newer just perfection package
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
spec_files/gnome-shell-extension-just-perfection/gnome-shell-extension-just-perfection.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
%global extension just-perfection | ||
%global uuid %{extension}-desktop@%{extension} | ||
|
||
Name: gnome-shell-extension-%{extension} | ||
Version: 30.0 | ||
Release: %autorelease | ||
Summary: GNOME Shell extension to change behavior and disable UI elements | ||
License: GPL-3.0-only | ||
URL: https://gitlab.gnome.org/jrahmatzadeh/just-perfection | ||
BuildArch: noarch | ||
|
||
Source: %{url}/-/archive/%{version}/%{extension}-%{version}.tar.gz | ||
|
||
BuildRequires: glib2-devel | ||
BuildRequires: gettext | ||
|
||
Requires: gnome-shell >= 45 | ||
Recommends: gnome-extensions-app | ||
Provides: %{extension} = %{version}-%{release} | ||
|
||
|
||
%description | ||
%{summary}. | ||
|
||
|
||
%prep | ||
%autosetup -n %{extension}-%{version} | ||
|
||
# fix spurious-executable-perm and script-without-shebang rpmlint warnings/errors | ||
find -type f -print -exec chmod 644 {} \; | ||
|
||
|
||
%build | ||
glib-compile-resources \ | ||
--sourcedir src/data \ | ||
src/data/resources.gresource.xml | ||
|
||
|
||
%install | ||
pushd src | ||
|
||
# install main extension files | ||
install -d -m 0755 %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} | ||
cp -r --preserve=timestamps \ | ||
*.js stylesheet.css metadata.json \ | ||
lib data/resources.gresource \ | ||
%{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} | ||
|
||
# install the schema file | ||
install -D -p -m 0644 \ | ||
schemas/org.gnome.shell.extensions.%{extension}.gschema.xml \ | ||
%{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml | ||
|
||
popd | ||
|
||
# install locale files | ||
pushd po | ||
for po in *.po; do | ||
install -d -m 0755 %{buildroot}%{_datadir}/locale/${po%.po}/LC_MESSAGES | ||
msgfmt -o %{buildroot}%{_datadir}/locale/${po%.po}/LC_MESSAGES/%{extension}.mo $po | ||
done | ||
popd | ||
%find_lang %{extension} | ||
|
||
|
||
%files -f %{extension}.lang | ||
%license LICENSE | ||
%doc CHANGELOG.md | ||
%{_datadir}/gnome-shell/extensions/%{uuid} | ||
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml | ||
|
||
|
||
%changelog | ||
%autochangelog |