Compare commits

..

4 Commits

Author SHA1 Message Date
madonuko 9fc0de895d Merge branch 'mado/w/astra' of github.com:terrapkg/packages into mado/w/astra 2026-06-27 20:47:39 +08:00
madonuko 4afd5633e3 try this 2026-06-27 20:47:23 +08:00
madomado d69ac2eb52 Update astra.spec
Signed-off-by: madomado <madonuko@outlook.com>
2026-06-27 20:04:01 +08:00
madonuko ad12642875 add: astra
close #13296
2026-06-27 19:59:44 +08:00
10 changed files with 70 additions and 28 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "astra.spec"
}
}
+39
View File
@@ -0,0 +1,39 @@
%global appid dev.astramusic.astra
%global ver 0.6.1-beta
Name: astra
%electronmeta -D
Version: %(echo %ver | sed 's/-/~/')
Release: 1%?dist
Summary: A desktop music player for people who still have a music library
License: GPL-3.0-only AND %electron_license
URL: https://astramusic.dev
Source0: https://github.com/Boof2015/astra/archive/refs/tags/v%ver.tar.gz
BuildRequires: nodejs-npm nodejs-packaging
%description
Audiophile music player with gapless playback, parametric EQ, AutoEQ import, and real-time DSP visualizers.
%prep
%autosetup -n %name-%ver
%build
%npm_build -BV -M production
# HACK: temporary fix for %%npm_build not echoing that into the file
echo "$WEBAPP_BUILD_TOOL" > ../webapp-tool.txt
%__nodejs ./scripts/build/writeAppBuildMetadata.cjs
%install
mv ./dist/*.AppImage dist/%name.%["%_arch" == "x86_64" ? "x86_64" : "arm64"].AppImage
%electron_install -I -D
%terra_appstream
%files
%license LICENSE
%doc README.md
%_bindir/%name
%_libdir/%name
%_appsdir/%name.desktop
%_metainfodir/%appid.metainfo.xml
%_hicolordir/*/apps/%name.png
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("Boof2015/astra"));
+1 -1
View File
@@ -52,7 +52,7 @@
%global fontdescription %{expand:
Versatile typeface for code, from code.}
Version: 34.7.0
Version: 34.6.3
Release: 1%{?dist}
Packager: Cappy Ishihara <cappy@fyralabs.com>
Summary: Versatile typeface for code, from code.
+1 -1
View File
@@ -1,7 +1,7 @@
# Disabled because compiled without debug
%global goipath github.com/XTLS/Xray-core
Version: 26.6.27
Version: 26.6.22
%global golicenses LICENSE
%global godocs README.md SECURITY.md CODE_OF_CONDUCT.md
@@ -1,6 +1,6 @@
%global commit da247eb378287b435fa2963bfaee634bda96caac
%global commit 6970c40930bedd8b58d0764894e0d5f04813b7c5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20260627
%global commitdate 20240109
%global ver 1.0
%global modulename xpad-noone
%global debug_package %{nil}
@@ -10,11 +10,14 @@ This is the original upstream xpad driver from the Linux kernel with support for
Name: %{modulename}-kmod
Version: %{ver}^%{commitdate}git.%{shortcommit}
Release: 7%{?dist}
Release: 6%{?dist}
License: GPL-2.0-or-later
Summary: xpad driver with support for XBox One controllers removed
URL: https://github.com/Jan200101/xpad-noone
URL: https://github.com/medusalix/xpad-noone
Source0: %{url}/archive/%{commit}/%{modulename}-%{commit}.tar.gz#/%{modulename}-%{shortcommit}.tar.gz
# Fix kmod compilation on kernel 6.18+
Patch0: https://github.com/medusalix/xpad-noone/pull/8.patch
Patch1: https://github.com/medusalix/xpad-noone/pull/9.patch
BuildRequires: gcc
BuildRequires: kmodtool
BuildRequires: make
@@ -34,7 +37,7 @@ Packager: Gilver E. <roachy@fyralabs.com>
kmodtool --target %{_target_cpu} --repo terrapkg.com --kmodname %{modulename} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
%autosetup -c %{modulename}-%{commit}
%autosetup -n %{modulename}-%{commit} -p1
for kernel_version in %{?kernel_versions} ; do
cp -a %{modulename}-%{commit} _kmod_build_${kernel_version%%___*}
@@ -54,8 +57,5 @@ done
%{?akmod_install}
%changelog
* Sat Jun 27 2026 Jan200101 <sentrycraft123@gmail.com> - 1.0^20260627git.da247eb-7
- Update package to use updated fork
* Fri Mar 07 2025 Gilver E. <rockgrub@disroot.org>
- Initial package
@@ -1,6 +1,6 @@
%global commit da247eb378287b435fa2963bfaee634bda96caac
%global commit 6970c40930bedd8b58d0764894e0d5f04813b7c5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20260627
%global commitdate 20240109
%global ver 1.0
%global modulename xpad-noone
%global _description %{expand:
@@ -8,12 +8,15 @@ This is the original upstream xpad driver from the Linux kernel with support for
Name: dkms-%{modulename}
Version: %{ver}^%{commitdate}git.%{shortcommit}
Release: 5%{?dist}
Release: 4%{?dist}
License: GPL-2.0-or-later
Summary: xpad driver with support for XBox One controllers removed
URL: https://github.com/Jan200101/xpad-noone
URL: https://github.com/medusalix/xpad-noone
Source0: %{url}/archive/%{commit}/%{modulename}-%{commit}.tar.gz#/%{modulename}-%{shortcommit}.tar.gz
Source1: no-weak-modules.conf
# Fix kmod compilation on kernel 6.18+
Patch0: https://github.com/medusalix/xpad-noone/pull/8.patch
Patch1: https://github.com/medusalix/xpad-noone/pull/9.patch
Requires: %{modulename} = %{?epoch:%{epoch}:}%{version}
Requires: dkms
Conflicts: akmod-%{modulename}
@@ -23,7 +26,7 @@ Packager: Gilver E. <roachy@fyralabs.com>
%description %_description
%prep
%autosetup -n %{modulename}-%{commit}
%autosetup -n %{modulename}-%{commit} -p1
%build
@@ -51,8 +54,5 @@ dkms remove -m %{modulename} -v %{version} -q --all --rpm_safe_upgrade || :
%endif
%changelog
* Sat Jun 27 2026 Jan200101 <sentrycraft123@gmail.com> - 1.0^20260627git.da247eb-5
- Update package to use updated fork
* Fri Mar 07 2025 Gilver E. <rockgrub@disroot.org>
- Initial package
@@ -1,8 +1,8 @@
rpm.global("commit", gh_commit("Jan200101/xpad-noone"));
rpm.global("commit", gh_commit("medusalix/xpad-noone"));
if rpm.changed() {
rpm.release();
rpm.global("commitdate", date());
let html = get(`https://raw.githubusercontent.com/Jan200101/xpad-noone/refs/heads/master/dkms.conf`);
let html = get(`https://raw.githubusercontent.com/medusalix/xpad-noone/refs/heads/master/dkms.conf`);
let v = find("PACKAGE_VERSION=\"([\\d.]+)\"", html, 1);
rpm.global("ver", v);
}
@@ -1,16 +1,16 @@
%global commit da247eb378287b435fa2963bfaee634bda96caac
%global commit 6970c40930bedd8b58d0764894e0d5f04813b7c5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20260627
%global commitdate 20240109
%global ver 1.0
%global _description %{expand:
This is the original upstream xpad driver from the Linux kernel with support for XBox One controllers removed. If you are running the xone driver you may have to replace the xpad kernel module with this one to retain the functionality of XBox and XBox 360 controllers.}
Name: xpad-noone
Version: %{ver}^%{commitdate}git.%{shortcommit}
Release: 4%{?dist}
Release: 3%{?dist}
License: GPL-2.0-or-later
Summary: xpad driver with support for XBox One controllers removed
URL: https://github.com/Jan200101/xpad-noone
URL: https://github.com/medusalix/xpad-noone
Source0: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
BuildRequires: sed
BuildRequires: systemd-rpm-macros
@@ -48,8 +48,5 @@ install -Dm644 %{name}.conf -t %{buildroot}%{_modulesloaddir}
%{_modulesloaddir}/%{name}.conf
%changelog
* Sat Jun 27 2026 Jan200101 <sentrycraft123@gmail.com> - 1.0^20260627git.da247eb-4
- Update package to use updated fork
* Fri Mar 07 2025 Gilver E. <rockgrub@disroot.org>
- Initial package
+1 -1
View File
@@ -1,5 +1,5 @@
Name: anda-srpm-macros
Version: 0.3.12
Version: 0.3.11
Release: 1%{?dist}
Summary: SRPM macros for extra Fedora packages