Blob Blame Raw
%global commit      9b4e16dd9bd21a27d7ae012ce8a6c807d70c9e82
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date        20190904

%global uuid    material-shell@papyelgringo

Name:           gnome-shell-extension-material-shell
Version:        0
Release:        0.8.%{date}git%{shortcommit}%{?dist}
Summary:        Performant and simple opinionated mouse/keyboard workflow

License:        MIT
URL:            https://github.com/PapyElGringo/material-shell
Source0:        %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz
BuildArch:      noarch

Requires:       gnome-shell >= 3.32.0

%description
New shell for Gnome following the Material-design guidelines. Proposing a
performant and simple opinionated mouse/keyboard workflow to increase daily
productivity and comfort.

How to install:

1. Reload gnome-shell by logout and re-login
2. Open 'gnome-tweaks' and activate 'Material-shell' extension

or run in terminal:

  gnome-shell-extension-tool -e %uuid

%prep
%autosetup -n material-shell-%{commit}

%install
rm demo.gif CONTRIBUTING.md
mkdir -p    %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}
cp -a *     %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/
rm          %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/LICENSE
rm          %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/README.md

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

%changelog
* Wed Sep 04 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-0.8.20190904git9b4e16d
- Update to latest git snapshot

* Fri Jul 26 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-0.7.20190720git2aad584
- Update to latest git snapshot

* Wed Jul 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-0.6.20190717gitac433ba
- Update to latest git snapshot

* Sun Jul 07 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-0.1.20190706git96e68b8
- Initial package
- Thanks to Robert-André Mauchin <zebob.m@gmail.com> for help with packaging (as always) and review