Merge branch 'main' into maintenance/lint

This commit is contained in:
windowsboy111
2023-01-03 22:09:08 +08:00
339 changed files with 1554 additions and 4959 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
---
name: Package request
about: Request a new package
title: ''
title: "[Package Request] "
labels: enhancement
assignees: ''
+7 -4
View File
@@ -15,7 +15,10 @@ jobs:
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install packages
run: dnf install -y rpmdevtools git python
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
dnf install -y rpmdevtools git python anda
- name: Checkout
uses: actions/checkout@v3
@@ -28,9 +31,9 @@ jobs:
mkdir -p ${{ runner.temp }}
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
chmod 0700 ${{ runner.temp }}/signing_key
- name: Run Update
run: bash ./update.sh
- name: Run Update (anda)
run: anda update -vv
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5
View File
@@ -25,3 +25,8 @@
/anda/games/prismlauncher-nightly @getchoo
/anda/games/prismlauncher-qt5-nightly @getchoo
/anda/games/prismlauncher-qt5 @getchoo
/anda/srpm-macros @korewaChino
/anda/rust/starship @korewaChino
/anda/rust/zellij @korewaChino
/anda/audio/distrho @korewaChino
+5
View File
@@ -1 +1,6 @@
config {
strip_prefix = "anda/"
strip_suffix = "/pkg"
}
project {}
+2 -2
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "adwaita++-icons.spec"
sources = "."
update = ""
}
}
}
-27
View File
@@ -1,27 +0,0 @@
import os
import requests
import re
NAME = "adwaita++-icons"
REPO = "Bonandry/adwaita-plus"
REGEX_VER = r"Version:\s*([\.\d]+)\n"
SPEC = f"{NAME}.spec"
LINK = f"https://api.github.com/repos/{REPO}/releases/latest"
token = os.getenv("GITHUB_TOKEN")
ver = requests.get(LINK, headers={"Authorization": f"Bearer {token}"}).json()[
"tag_name"
][1:]
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}")
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("Bonandry/adwaita-plus"));
+20
View File
@@ -0,0 +1,20 @@
diff -uNr anki-2.1.55.old/qt/aqt/qt/__init__.py anki-2.1.55/qt/aqt/qt/__init__.py
--- anki-2.1.55.old/qt/aqt/qt/__init__.py 2023-01-02 18:34:13.716216913 +0800
+++ anki-2.1.55/qt/aqt/qt/__init__.py 2023-01-02 18:34:00.410033708 +0800
@@ -9,16 +9,7 @@
import traceback
from typing import Callable, TypeVar, Union
-try:
- import PyQt6
-except:
- from .qt5 import * # type: ignore
-else:
- if not os.getenv("DISABLE_QT5_COMPAT"):
- print("Running with temporary Qt5 compatibility shims.")
- print("Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.")
- from . import qt5_compat # needs to be imported first
- from .qt6 import *
+from .qt5 import * # type: ignore
from anki.utils import is_mac, is_win
+17
View File
@@ -0,0 +1,17 @@
diff -uNr anki-2.1.55.old/qt/aqt/profiles.py anki-2.1.55/qt/aqt/profiles.py
--- anki-2.1.55.old/qt/aqt/profiles.py 2023-01-02 18:35:44.574467892 +0800
+++ anki-2.1.55/qt/aqt/profiles.py 2023-01-02 18:34:00.412033736 +0800
@@ -77,11 +77,11 @@
metaConf = dict(
ver=0,
- updates=True,
+ updates=False,
created=int_time(),
id=random.randrange(0, 2**63),
lastMsg=-1,
- suppressUpdate=False,
+ suppressUpdate=True,
firstRun=True,
defaultLang=None,
)
+6
View File
@@ -0,0 +1,6 @@
project "pkg" {
rpm {
spec = "anki-qt5.spec"
update = ""
}
}
+64
View File
@@ -0,0 +1,64 @@
Name: anki-qt5
Version: 2.1.55
Release: %autorelease
Summary: Flashcard program for using space repetition learning
License: AGPLv3+ and GPLv3+ and LGPLv3 and MIT and BSD and ASL 2.0 and CC-BY-SA and CC-BY
URL: https://apps.ankiweb.net/
BuildRequires: python3-devel python3-setuptools python3-beautifulsoup4 python3-waitress python3-decorator python3-markdown python3-protobuf python3-pysocks
BuildRequires: python3-distro python3-flask-cors python3-jsonschema python3-requests python3-send2trash python3-certifi python3-pyqt5-sip python3-simplejson
BuildRequires: python3-installer make mold cargo git rsync ninja-build libxcrypt-compat nodejs python3.9 python-unversioned-command
Requires: hicolor-icon-theme python3-sqlalchemy python3-simplejson python3-matplotlib python3-decorator python3-markdown python3-send2trash
Requires: python3-requests python3-pygame python3-beautifulsoup4 python3-httplib2 python3-pyaudio python3-jsonschema sox libxcrypt-compat
ExclusiveArch: %{qt5_qtwebengine_arches} noarch
Patch0: 0001-Force-qt5.patch
Patch1: 0001-No-update.patch
BuildArch: noarch
Conflicts: anki
%description
Anki is a program designed to help you remember facts (such as words
and phrases in a foreign language) as easily, quickly and efficiently
as possible. Anki is based on a theory called spaced repetition.
%prep
git clone https://github.com/ankitects/anki .
git checkout %{version}
%patch0 -p1
cat > .cargo/config.toml << EOF
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
EOF
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=anki-qt5
%build
./tools/build
%install
for file in out/wheels/*.whl; do
python -m installer --destdir="%{buildroot}" $file
done
install -Dm644 qt/bundle/lin/anki.desktop %{buildroot}/%{_datadir}/applications/anki.desktop
install -Dm644 qt/bundle/lin/anki.png %{buildroot}/%{_datadir}/pixmaps/anki.png
sed "s*^#!/usr/bin/python\$*#!/usr/bin/python3*" %{buildroot}/%{_bindir}/anki > %{buildroot}/%{_bindir}/anki
%files
%license LICENSE*
%doc README*
%{_bindir}/anki
%{_datadir}/pixmaps/anki.png
%{_datadir}/applications/anki.desktop
/usr/lib64/python*/site-packages/aqt/
/usr/lib64/python*/site-packages/aqt-%{version}.dist-info/
/usr/lib64/python*/site-packages/_aqt/
/usr/lib64/python*/site-packages/anki/
/usr/lib64/python*/site-packages/anki-%{version}.dist-info/
%changelog
* Tue Jan 3 2023 windowsboy111 <windowsboy111@fyralabs.com>
- Initial package
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("ankitects/anki"));
+17
View File
@@ -0,0 +1,17 @@
diff -uNr anki-2.1.55.old/qt/aqt/profiles.py anki-2.1.55/qt/aqt/profiles.py
--- anki-2.1.55.old/qt/aqt/profiles.py 2023-01-02 18:35:44.574467892 +0800
+++ anki-2.1.55/qt/aqt/profiles.py 2023-01-02 18:34:00.412033736 +0800
@@ -77,11 +77,11 @@
metaConf = dict(
ver=0,
- updates=True,
+ updates=False,
created=int_time(),
id=random.randrange(0, 2**63),
lastMsg=-1,
- suppressUpdate=False,
+ suppressUpdate=True,
firstRun=True,
defaultLang=None,
)
+6
View File
@@ -0,0 +1,6 @@
project "pkg" {
rpm {
spec = "anki.spec"
update = ""
}
}
+67
View File
@@ -0,0 +1,67 @@
Name: anki
Version: 2.1.55
Release: %autorelease
Summary: Flashcard program for using space repetition learning
License: AGPLv3+ and GPLv3+ and LGPLv3 and MIT and BSD and ASL 2.0 and CC-BY-SA and CC-BY
URL: https://apps.ankiweb.net/
BuildRequires: python3-devel python3-setuptools python3-beautifulsoup4 python3-waitress python3-decorator python3-markdown python3-protobuf python3-pysocks
BuildRequires: python3-distro python3-flask-cors python3-jsonschema python3-requests python3-send2trash python3-certifi python3-pyqt6 python3-simplejson
BuildRequires: python3-installer make mold cargo git rsync ninja-build libxcrypt-compat nodejs python3.9 python-unversioned-command
Requires: hicolor-icon-theme python3-sqlalchemy python3-simplejson python3-matplotlib python3-decorator python3-markdown python3-send2trash
Requires: python3-requests python3-pygame python3-beautifulsoup4 python3-httplib2 python3-pyaudio python3-jsonschema sox libxcrypt-compat
BuildArch: noarch
ExclusiveArch: %{qt6_qtwebengine_arches} noarch
Conflicts: anki-qt5
Patch0: 0001-No-update.patch
%description
Anki is a program designed to help you remember facts (such as words
and phrases in a foreign language) as easily, quickly and efficiently
as possible. Anki is based on a theory called spaced repetition.
%prep
git clone https://github.com/ankitects/anki .
git checkout %{version}
%patch0 -p1
cat > .cargo/config.toml << EOF
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
EOF
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=anki
%build
./tools/build
%install
for file in out/wheels/*.whl; do
python -m installer --destdir="%{buildroot}" $file
done
install -Dm644 qt/bundle/lin/anki.desktop %{buildroot}/%{_datadir}/applications/anki.desktop
install -Dm644 qt/bundle/lin/anki.png %{buildroot}/%{_datadir}/pixmaps/anki.png
sed "s*^#!/usr/bin/python\$*#!/usr/bin/python3*" %{buildroot}/%{_bindir}/anki > %{buildroot}/%{_bindir}/anki
find %{buildroot} -iname __pycache__ | xargs -r rm -rf
find %{buildroot} -iname direct_url.json | xargs -r rm -rf
%files
%license LICENSE*
%doc README*
%{_bindir}/anki
%{_datadir}/applications/anki.desktop
%{_datadir}/pixmaps/anki.png
/usr/lib64/python*/site-packages/aqt/
/usr/lib64/python*/site-packages/aqt-%{version}.dist-info/
/usr/lib64/python*/site-packages/_aqt/
/usr/lib64/python*/site-packages/anki/
/usr/lib64/python*/site-packages/anki-%{version}.dist-info/
%changelog
* Tue Jan 3 2023 windowsboy111 <windowsboy111@fyralabs.com>
- Initial package
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("ankitects/anki"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "authy.spec"
sources = "."
update = ""
}
}
-38
View File
@@ -1,38 +0,0 @@
import os
import re
from requests import get
import json
NAME = "authy"
SPEC = f"{NAME}.spec"
REGEX_VER = r'Version:(\s*)([\.\d]+)\n'
REGEX_SRC = r'Source0:(\s*)([^\n]+)\n'
def run_cmds(*cmds: str):
for cmd in cmds:
print(f"{NAME}: $ {cmd}")
if rc := os.system(cmd):
exit(f"{NAME}: Stopping because {rc=}")
raw = get('https://api.snapcraft.io/v2/snaps/info/authy', headers={'Snap-Device-Series': '16'}).text
data = json.loads(raw)
ver = data['channel-map'][0]['version']
f = open(SPEC, 'r')
content = f.read()
found = re.findall(REGEX_VER, content)
try:
assert found
curver = found[0][1]
if ver == curver:
exit(f"{NAME}: Up to date!")
print(f"{NAME}: {curver} -> {ver}")
except IndexError or AssertionError:
exit(f"{NAME}: Failed to read spec!")
link = data['channel-map'][0]['download']['url']
newspec = re.sub(REGEX_VER, f'Version:{found[0][0]}{ver}\n', content)
newspec = re.sub(REGEX_SRC, f'Source0:{found[0][0]}{link}\n', newspec)
f.close()
f = open(SPEC, 'w')
f.write(newspec)
f.close()
+5
View File
@@ -0,0 +1,5 @@
let req = new_req("https://api.snapcraft.io/v2/snaps/info/authy");
req.head("Snap-Device-Series", "16");
let obj = json(req.get()) @ "channel-map" @ 0;
rpm.version(str(obj @ "version"));
rpm.source(0, str(obj @ "download" @ "url"));
+2 -1
View File
@@ -1,5 +1,6 @@
project "pkg" {
rpm {
spec = "openasar-canary.spec"
update = ""
}
}
}
-30
View File
@@ -1,30 +0,0 @@
import requests
import re
import os
NAME = "openasar-canary"
REPO = "GooseMod/OpenAsar"
REGEX_SHA = r"%define commit (.+)"
SPEC = f"{NAME}.spec"
LINK = f"https://api.github.com/repos/{REPO}/commits/HEAD"
token = os.getenv("GITHUB_TOKEN")
sha = requests.get(LINK, headers={"Authorization": f"Bearer {token}"}).json()["sha"]
f = open(SPEC, "r")
matches = re.findall(REGEX_SHA, txt := f.read())
if not len(matches):
exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if sha == cur:
exit(f"{NAME}: Up to date!")
print(f"{NAME}: {cur} -> {sha}")
newspec = re.sub(REGEX_SHA, f"%define commit {sha}", txt)
f.close()
f = open(SPEC, "w")
f.write(newspec)
f.close()
@@ -1,4 +1,4 @@
%define commit bb6165c1ad640ea7c45ecff2efbc01b48eaf2445
%define commit 0b1d4685cb2c94f42441fc616eb24e69eda04647
Name: openasar-canary
Version: nightly.%{autogitdate}
+11
View File
@@ -0,0 +1,11 @@
let req = new_req("https://api.github.com/repos/GooseMod/OpenAsar/commits/HEAD");
req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`);
let _sha = json(req.get()) @ "sha";
let sha = _sha.str();
let cur = find("%define commit (.+)", rpm.f, 1);
if sha != cur {
print(`openasar-canary: ${cur} -> ${sha}`);
rpm.f = sub("%define commit (.+)", `%define commit ${sha}`, rpm.f);
} else {
print("openasar-canary: Up to date!");
}
+1 -1
View File
@@ -2,4 +2,4 @@ project "pkg" {
rpm {
spec = "distrho.spec"
}
}
}
+1 -2
View File
@@ -1,6 +1,5 @@
project "pkg" {
rpm {
spec = "dart.spec"
sources = "."
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
Name: dart
Version: 2.18.5
Version: 2.18.6
Release: 1%{?dist}
Summary: The Dart Language
License: BSD-3-Clause
+2 -2
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "budgie-extras.spec"
sources = "."
update = ""
}
}
}
@@ -1,27 +0,0 @@
import os
import requests
import re
NAME = "budgie-extras"
REPO = "UbuntuBudgie/budgie-extras"
REGEX_VER = r"Version:\s*([\.\d]+)\n"
SPEC = f"{NAME}.spec"
LINK = f"https://api.github.com/repos/{REPO}/releases/latest"
token = os.getenv("GITHUB_TOKEN")
ver = requests.get(LINK, headers={"Authorization": f"Bearer {token}"}).json()[
"tag_name"
][1:]
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}")
@@ -0,0 +1 @@
rpm.version(gh("UbuntuBudgie/budgie-extras"));
+1 -1
View File
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "contractor.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'contractor'
REPO = "elementary/contractor"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/contractor"))
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-calculator.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-calculator'
REPO = "elementary/calculator"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -3,7 +3,7 @@
Name: elementary-calculator
Summary: Calculator app designed for elementary
Version: 2.0.0
Version: 2.0.1
Release: %autorelease
License: GPLv3+
@@ -0,0 +1 @@
rpm.version(gh("elementary/calculator"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-calendar.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-calendar'
REPO = "elementary/calendar"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/calendar"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-camera.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-camera'
REPO = "elementary/camera"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/camera"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-capnet-assist.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-capnet-assist'
REPO = "elementary/capnet-assist"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -3,7 +3,7 @@
Name: elementary-capnet-assist
Summary: Captive Portal Assistant for elementary
Version: 2.4.2
Version: 2.4.3
Release: 2%{?dist}
License: GPLv3+
@@ -24,7 +24,7 @@ BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libhandy-1) >= 1.0.0
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(webkit2gtk-4.1)
Requires: NetworkManager
Requires: hicolor-icon-theme
@@ -0,0 +1 @@
rpm.version(gh("elementary/capnet-assist"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-code.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-code'
REPO = "elementary/code"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/code"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-files.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-files'
REPO = "elementary/files"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/files"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-greeter.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-greeter'
REPO = "elementary/greeter"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/greeter"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-icon-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-icon-theme'
REPO = "elementary/icons"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/icons"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-music.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-music'
REPO = "elementary/music"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -10,7 +10,7 @@ utilizes Granite for a consistent and slick UI.}
Name: elementary-music
Summary: Music player and library from elementary
Version: 7.0.0
Version: 7.0.1
Release: 2%{?dist}
License: LGPLv2+
@@ -83,7 +83,7 @@ desktop-file-validate \
%{buildroot}/%{_datadir}/applications/%{appname}.desktop
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml
%{buildroot}/%{_datadir}/metainfo/%{appname}.metainfo.xml
%files -f %{appname}.lang
@@ -95,7 +95,7 @@ appstream-util validate-relax --nonet \
%{_datadir}/applications/%{appname}.desktop
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{appname}.svg
%{_datadir}/metainfo/%{appname}.appdata.xml
%{_datadir}/metainfo/%{appname}.metainfo.xml
%{_datadir}/locale/*/LC_MESSAGES/%{appname}.mo
%files devel
@@ -0,0 +1 @@
rpm.version(gh("elementary/music"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-notifications.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-notifications'
REPO = "elementary/notifications"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/notifications"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-onboarding.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-onboarding'
REPO = "elementary/onboarding"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/onboarding"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-photos.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-photos'
REPO = "elementary/photos"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/photos"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-print.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-print'
REPO = "elementary/print"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/print"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-screenshot-tool.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-screenshot-tool'
REPO = "elementary/screenshot"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/screenshot"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-settings-daemon.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-settings-daemon'
REPO = "elementary/settings-daemon"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/settings-daemon"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-shortcut-overlay.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-shortcut-overlay'
REPO = "elementary/shortcut-overlay"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/shortcut-overlay"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-sideload.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-sideload'
REPO = "elementary/sideload"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/sideload"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-sound-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-sound-theme'
REPO = "elementary/sound-theme"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/sound-theme"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-terminal.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-terminal'
REPO = "elementary/terminal"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/terminal"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-theme.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-theme'
REPO = "elementary/stylesheet"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -0,0 +1 @@
rpm.version(gh("elementary/stylesheet"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-videos.spec"
sources = "."
update = ""
}
}
@@ -1,19 +0,0 @@
import os
import requests
import re
NAME = 'elementary-videos'
REPO = "elementary/videos"
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, headers={'Authorization': 'Bearer ' + os.getenv('GITHUB_TOKEN')}).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}')
@@ -3,7 +3,7 @@
Name: elementary-videos
Summary: Video player and library app from elementary
Version: 2.8.4
Version: 2.9.0
Release: 2%{?dist}
License: GPLv3+
@@ -0,0 +1 @@
rpm.version(gh("elementary/videos"));
@@ -1,6 +1,6 @@
project "pkg" {
rpm {
spec = "elementary-wallpapers.spec"
sources = "."
update = ""
}
}

Some files were not shown because too many files have changed in this diff Show More