gnome-shell-extension-dash-.../gnome-shell-extension-dash-to-dock.spec

116 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 4;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global extdir %{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com
%global gschemadir %{_datadir}/glib-2.0/schemas
%global giturl https://github.com/micheleg/dash-to-dock
#%%global commit 506dd023215ee4be6a1c807af94bfd43303a2a3d
#%%global commit_short %%(c=%%{commit}; echo ${c:0:7})
#%%global commit_date 20240320
Name: gnome-shell-extension-dash-to-dock
Version: 92
Release: %autorelease
#Release: %%autorelease -e %%{commit_date}git%%{commit_short}
Summary: Dock for the Gnome Shell by micxgx@gmail.com
License: GPL-2.0-or-later
URL: https://micheleg.github.io/dash-to-dock
%if 0%{?commit:1}
Source0: %{giturl}/archive/%{commit}.tar.gz
%else
Source0: %{giturl}/archive/extensions.gnome.org-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%endif
BuildArch: noarch
BuildRequires: gettext
BuildRequires: make
BuildRequires: %{_bindir}/glib-compile-schemas
%if 0%{?fedora}
BuildRequires: sassc
%else
Patch: 0001-Pre-generate-stylesheet.patch
%endif
Requires: gnome-shell-extension-common
# libdbusmenu won't be part of RHEL 9, thus disable the dependency.
%if 0%{?fedora}
Requires: libdbusmenu-gtk3
%endif
Patch: post-v92.patch
%description
This extension enhances the dash moving it out of the overview and
transforming it in a dock for an easier launching of applications
and a faster switching between windows and desktops without having
to leave the desktop view.
%prep
%if 0%{?commit:1}
%autosetup -n dash-to-dock-%{commit} -p 1
%else
%autosetup -n dash-to-dock-extensions.gnome.org-v%{version} -p 1
%endif
%build
%make_build
%install
%make_install
# Cleanup crap.
%{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*,locale,schemas}
# Create manifest for i18n.
%find_lang %{name} --all-name
# Fedora handles this using triggers.
%if 0%{?rhel} && 0%{?rhel} <= 7
%postun
if [ $1 -eq 0 ] ; then
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
fi
%posttrans
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
%endif
%files -f %{name}.lang
%license COPYING
%doc README.md
%{extdir}
%{gschemadir}/*gschema.xml
%changelog
## START: Generated by rpmautospec
* Tue Jul 23 2024 Florian Müllner <fmuellner@redhat.com> - 92-4
- Ensure compatibility with 47.alpha
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 92-3
- Bump release for June 2024 mass rebuild
* Wed May 22 2024 Tomas Pelka <tpelka@redhat.com> - 92-2
- Add gating.yaml via API
* Wed May 22 2024 Tomas Popela <tpopela@redhat.com> - 92-1
- Import from Fedora
## END: Generated by rpmautospec