From 18473d9e4dbd3551916aa20fd5366ffa06ef2a35 Mon Sep 17 00:00:00 2001 From: Brendan Early Date: Aug 06 2020 18:18:37 +0000 Subject: use forge macros --- diff --git a/numix-icon-theme-square.spec b/numix-icon-theme-square.spec index 59d8bc9..c839e21 100644 --- a/numix-icon-theme-square.spec +++ b/numix-icon-theme-square.spec @@ -1,17 +1,16 @@ -%global commit 6702bc0763e2a4e59ad59f6b128a310264b0fbac -%global gittag 19.12.27 +%global forgeurl https://github.com/numixproject/numix-icon-theme-square +Version: 20.07.11 +%global tag %{version} -%global gitdate %(date -d %(echo %{gittag} | tr -d '.') +%Y%m%d) -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%forgemeta -i Name: numix-icon-theme-square -Version: 0.1.0 -Release: 11.%{gitdate}.git%{shortcommit}%{?dist} Summary: Numix Project square icon theme +Release: 1%{?dist} License: GPLv3 -URL: https://github.com/numixproject/numix-icon-theme-square -Source: https://github.com/numixproject/numix-icon-theme-square/archive/%{commit}/%{name}-%{commit}.tar.gz +URL: %{forgeurl} +Source: %{forgesource} BuildArch: noarch Requires: numix-icon-theme @@ -20,7 +19,7 @@ Requires: numix-icon-theme Numix Square is a modern icon theme for Linux from the Numix project. %prep -%autosetup -n %{name}-%{commit} +%forgesetup %install mkdir -p %{buildroot}%{_datadir}/icons