%global commit deb6359a0034438745fa3146a6b40a8baa8858d9 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_date 20190619 %global upstream_name gnome-shell-extended-gestures %global gnome_dir extendedgestures@mpiannucci.github.com %global ext_dir %{_datadir}/gnome-shell/extensions/%{gnome_dir} Name: gnome-shell-extension-extended-gestures Version: 0 Release: %{commit_date}.git%{shortcommit}%{?dist} Summary: Better touchpad gesture handling for GNOME BuildArch: noarch License: GPLv3 URL: https://github.com/mpiannucci/gnome-shell-extended-gestures Source0: https://github.com/mpiannucci/gnome-shell-extended-gestures/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Requires: gnome-shell-extension-common %description Provides extended touchpad gesture functionality and configuration to the GNOME desktop. %prep %setup -n %{upstream_name}-%{commit} %install ls %{__install} -d -m 755 %{buildroot}/usr/share/gnome-shell/extensions %{__cp} -r %{gnome_dir} %{buildroot}%{ext_dir} %files %{ext_dir} %doc README.md %license LICENSE %changelog * Fri Jul 5 2019 Jeremy Bertozzi - 0.git%{shortcommit} - Initial version