File gnome-shell-extension-clipboard-history.spec of Package gnome-shell-extension-clipboard-history

%global extid   %{extname_full}@alexsaveau.dev
%global extname_full clipboard-history
%global commit 450694983c5b6b03bbe80a449ce3dc4450ca7b95
%global commit_short 4506949
%global commit_date 20250924

Name:           gnome-shell-extension-%{extname_full}
Version:        47
Release:        1.%{?commit_date}git%{?commit_short}%{?dist}
Summary:        A clipboard manager GNOME extension

License:        MIT
URL:            https://github.com/SUPERCILEX/gnome-clipboard-history
Source0:        gnome-%{extname_full}-%{version}.tar.xz
Patch0:		0001-Set-new-menu-toogle-hotkey.patch
BuildArch:      noarch

BuildRequires:	glib2-tools
BuildRequires:	gettext
BuildRequires:	make

Requires:       gnome-shell

%description
Gnome Clipboard History is a clipboard manager GNOME extension that saves what
you've copied into an easily accessible, searchable history panel.

The extension is a rewrite of Clipboard Indicator with vastly improved
performance, new features, and bug fixes.

%prep
%autosetup -p1 -n gnome-%{extname_full}-%{version}
%make_build

%build


%install
%make_install
install -d %{buildroot}%{_datadir}/gnome-shell/extensions/%{extid}
cp -r metadata.json \
	extension.js \
	store.js \
	dataStructures.js \
	confirmDialog.js \
	prefs.js \
	settingsFields.js \
	stylesheet.css \
	LICENSE \
	README.md \
	schemas/ \
	locale \
	%{buildroot}%{_datadir}/gnome-shell/extensions/%{extid}

find %{buildroot}%{_datadir}/gnome-shell/extensions/%{extid} -name '*.po' -delete


%files
%license LICENSE
%doc README.md
%dir %{_datadir}/gnome-shell/extensions/
%dir %{_datadir}/gnome-shell
%{_datadir}/gnome-shell/extensions/%{extid}/


%changelog
* Wed Dec 24 2025 Arkady L. Shane <ashejn@gmail.com> - 47-1.20250924git4506949
- Update to 47 version

* Fri Jun 20 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 46-2.20250309gitc274be6
- Fix installation

* Fri Jun 20 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 46-1.20250309gitc274be6
- Initial build for MSVSphere 10
openSUSE Build Service is sponsored by