Add tau-hydrogen spec

This commit is contained in:
lleyton
2022-11-20 19:47:32 -08:00
committed by GitHub
parent 9e7c610316
commit 3a87a4b5cc
3 changed files with 59 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project "pkg" {
rpm {
spec = "tau-hydrogen.spec"
}
}
+19
View File
@@ -0,0 +1,19 @@
import os
import requests
import re
NAME = 'tau-hydrogen'
REPO = "tau-OS/tau-hydrogen"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
+35
View File
@@ -0,0 +1,35 @@
Summary: tauOS Icon Theme
Name: tau-hydrogen
Version: 1.0.1
Release: 1%{?dist}
License: GPLv3
URL: https://github.com/tau-OS/tau-hydrogen
Source0: https://github.com/tau-OS/tau-hydrogen/archive/refs/tags/%{version}.tar.gz
BuildArch: noarch
BuildRequires: meson
BuildRequires: ninja-build
%description
Hydrogen is the default icon theme in tauOS
%prep
%autosetup -n tau-hydrogen-%{version}
%build
%meson
%meson_build
%install
# Install licenses
mkdir -p licenses
%meson_install
%files
%license LICENSE
%doc README.md
%{_datadir}/themes/Helium/*
%{_datadir}/themes/Helium-dark/*
%changelog
* Sun Nov 20 2022 Lleyton Gray <lleyton@fyralabs.com> - 1.0.1
- Terra Release