diff --git a/anda/apps/discord-canary-openasar/discord-canary-openasar.spec b/anda/apps/discord-canary-openasar/discord-canary-openasar.spec index 34c5a7f654..ae1d80d668 100644 --- a/anda/apps/discord-canary-openasar/discord-canary-openasar.spec +++ b/anda/apps/discord-canary-openasar/discord-canary-openasar.spec @@ -6,8 +6,8 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord-canary-openasar -Version: 0.0.276 -Release: 1%{?dist} +Version: 0.0.282 +Release: 1%?dist Summary: A snappier Discord rewrite with features like further customization and theming License: MIT AND https://discord.com/terms URL: https://github.com/GooseMod/OpenAsar diff --git a/anda/apps/discord-canary/discord-canary.spec b/anda/apps/discord-canary/discord-canary.spec index 81a2a941bf..6dd56975a1 100644 --- a/anda/apps/discord-canary/discord-canary.spec +++ b/anda/apps/discord-canary/discord-canary.spec @@ -6,8 +6,8 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord-canary -Version: 0.0.276 -Release: 1%{?dist} +Version: 0.0.282 +Release: 1%?dist Summary: Free Voice and Text Chat for Gamers URL: discord.com Source0: https://dl-canary.discordapp.net/apps/linux/%{version}/discord-canary-%{version}.tar.gz diff --git a/anda/apps/discord-openasar/discord-openasar.spec b/anda/apps/discord-openasar/discord-openasar.spec index 2fff24accc..a646dd9b68 100644 --- a/anda/apps/discord-openasar/discord-openasar.spec +++ b/anda/apps/discord-openasar/discord-openasar.spec @@ -6,7 +6,7 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord-openasar -Version: 0.0.42 +Version: 0.0.43 Release: 1%{?dist} Summary: A snappier Discord rewrite with features like further customization and theming License: MIT AND https://discord.com/terms diff --git a/anda/apps/discord-ptb-openasar/discord-ptb-openasar.spec b/anda/apps/discord-ptb-openasar/discord-ptb-openasar.spec index 057b839e5a..937a21c882 100644 --- a/anda/apps/discord-ptb-openasar/discord-ptb-openasar.spec +++ b/anda/apps/discord-ptb-openasar/discord-ptb-openasar.spec @@ -6,8 +6,8 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord-ptb-openasar -Version: 0.0.67 -Release: 1%{?dist} +Version: 0.0.69 +Release: 1%?dist Summary: A snappier Discord rewrite with features like further customization and theming License: MIT AND https://discord.com/terms URL: https://github.com/GooseMod/OpenAsar diff --git a/anda/apps/discord-ptb/discord-ptb.spec b/anda/apps/discord-ptb/discord-ptb.spec index 699c7dbcae..d3b9acc7df 100644 --- a/anda/apps/discord-ptb/discord-ptb.spec +++ b/anda/apps/discord-ptb/discord-ptb.spec @@ -6,8 +6,8 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord-ptb -Version: 0.0.67 -Release: 1%{?dist} +Version: 0.0.69 +Release: 1%?dist Summary: Free Voice and Text Chat for Gamers. URL: https://discord.com Source0: https://dl-ptb.discordapp.net/apps/linux/%{version}/discord-ptb-%{version}.tar.gz diff --git a/anda/apps/discord/discord.spec b/anda/apps/discord/discord.spec index 9d194447ac..d38a71a512 100644 --- a/anda/apps/discord/discord.spec +++ b/anda/apps/discord/discord.spec @@ -6,7 +6,7 @@ %global __provides_exclude_from %{_datadir}/%{name}/.*\\.so Name: discord -Version: 0.0.42 +Version: 0.0.43 Release: 1%{?dist} Summary: Free Voice and Text Chat for Gamers URL: https://discord.com diff --git a/anda/apps/feishin/anda.hcl b/anda/apps/feishin/anda.hcl new file mode 100644 index 0000000000..9c70539c65 --- /dev/null +++ b/anda/apps/feishin/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "feishin.spec" + } +} diff --git a/anda/apps/feishin/feishin.spec b/anda/apps/feishin/feishin.spec new file mode 100644 index 0000000000..c03809b30e --- /dev/null +++ b/anda/apps/feishin/feishin.spec @@ -0,0 +1,70 @@ +%define debug_package %nil +%global _build_id_links none + +# Exclude private libraries +%global __requires_exclude libffmpeg.so +%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so + +Name: feishin +Version: 0.5.3 +Release: 1%?dist +Summary: A modern self-hosted music player +License: GPL-3.0 +URL: https://github.com/jeffvli/feishin +Source0: %url/archive/refs/tags/v%version.tar.gz +Requires: fuse mpv +BuildRequires: nodejs-npm jq libxcrypt-compat + +%description +%summary. + +%prep +%autosetup + +cat package.json | jq '.author += { "email": "jeffvictorli@gmail.com" }' | jq '.build.linux += { "maintainer": "mado@fyralabs.com", "vendor": "Fyra Labs Terra" }' > a +mv a package.json +cat package.json + +cat< feishin.desktop +[Desktop Entry] +Type=Application +Name=Feishin +Comment=Rewrite of Sonixd +Exec=/usr/bin/feishin +Icon=feishin +Terminal=false +Categories=Network;Audio;Music +Keywords=Music;Jellyfin;Audio;Stream;Sonixd +EOF + +%build +npm i --legacy-peer-deps update-browserslist-db@latest +npm audit fix --force +npx update-browserslist-db@latest +npm run build +%ifarch x86_64 + +%define a linux +%elifarch aarch64 +%define a arm64 +%endif + +npx electron-builder --linux dir --%a + +%install +mkdir -p %buildroot%_datadir/{pixmaps,applications} %buildroot%_bindir +mv release/build/*-unpacked %buildroot%_datadir/feishin +install -Dm644 assets/icons/icon.png %buildroot%_datadir/pixmaps/feishin.png +ln -s %_datadir/feishin/feishin %buildroot%_bindir/feishin +install -Dm644 feishin.desktop %buildroot%_datadir/applications/ + +%files +%doc README.md CHANGELOG.md +%license LICENSE +%_bindir/feishin +%_datadir/feishin/ +%_datadir/applications/feishin.desktop +%_datadir/pixmaps/feishin.png + +%changelog +%autochangelog diff --git a/anda/apps/feishin/update.rhai b/anda/apps/feishin/update.rhai new file mode 100644 index 0000000000..8bf94dd5f5 --- /dev/null +++ b/anda/apps/feishin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("jeffvli/feishin")); diff --git a/anda/apps/mpv/anda.hcl b/anda/apps/mpv/anda.hcl new file mode 100644 index 0000000000..80317ce6af --- /dev/null +++ b/anda/apps/mpv/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "mpv-nightly.spec" + } + labels { + nightly = "1" + } +} diff --git a/anda/apps/mpv/mpv-nightly.spec b/anda/apps/mpv/mpv-nightly.spec new file mode 100644 index 0000000000..95efcb6d6d --- /dev/null +++ b/anda/apps/mpv/mpv-nightly.spec @@ -0,0 +1,230 @@ +%global commit 443c2487d7dd1039e297abad6398135b3c463018 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 240218 +%global ver 0.37.0 + +Name: mpv-nightly +Version: %ver^%commit_date.%shortcommit +Release: 1%{?dist} + +License: GPL-2.0-or-later AND LGPL-2.1-or-later +Summary: Movie player playing most video formats and DVDs +URL: https://mpv.io/ +Source0: https://github.com/mpv-player/mpv/archive/%commit/mpv-%commit.tar.gz +Conflicts: mpv + +BuildRequires: desktop-file-utils +BuildRequires: gcc +BuildRequires: libappstream-glib +BuildRequires: libatomic +BuildRequires: meson +BuildRequires: python3-docutils + +BuildRequires: perl(Encode) +BuildRequires: perl(Math::BigInt) +BuildRequires: perl(Math::BigRat) +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(caca) +BuildRequires: pkgconfig(dvdnav) +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(ffnvcodec) +BuildRequires: pkgconfig(gbm) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(jack) +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(libarchive) >= 3.4.0 +BuildRequires: pkgconfig(libass) +BuildRequires: pkgconfig(libavcodec) >= 59.27.100 +BuildRequires: pkgconfig(libavdevice) >= 58.13.100 +BuildRequires: pkgconfig(libavfilter) >= 7.110.100 +BuildRequires: pkgconfig(libavformat) >= 59.24.100 +BuildRequires: pkgconfig(libavutil) >= 57.24.100 +BuildRequires: pkgconfig(libbluray) +BuildRequires: pkgconfig(libcdio) +BuildRequires: pkgconfig(libcdio_paranoia) +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.19 +BuildRequires: pkgconfig(libplacebo) >= 6.338.0 +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(libswresample) >= 3.9.100 +BuildRequires: pkgconfig(libswscale) >= 5.9.100 +BuildRequires: pkgconfig(libva) +BuildRequires: pkgconfig(lua-5.1) +BuildRequires: pkgconfig(mujs) +BuildRequires: pkgconfig(openal) +BuildRequires: pkgconfig(rubberband) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(shaderc) +BuildRequires: pkgconfig(uchardet) >= 0.0.5 +BuildRequires: pkgconfig(vapoursynth) +BuildRequires: pkgconfig(vdpau) +BuildRequires: pkgconfig(vulkan) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xdamage) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xinerama) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xpresent) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xscrnsaver) +BuildRequires: pkgconfig(xv) +BuildRequires: pkgconfig(zimg) >= 2.9 +BuildRequires: pkgconfig(zlib) + +Requires: hicolor-icon-theme +Provides: mplayer-backend +Recommends: (yt-dlp or youtube-dl) +Suggests: yt-dlp + +%description +Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety +of video file formats, audio and video codecs, and subtitle types. Special +input URL types are available to read input from a variety of sources other +than disk files. Depending on platform, a variety of different video and audio +output methods are supported. + +Mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many +features loved by videophiles, such as video scaling with popular high quality +algorithms, color management, frame timing, interpolation, HDR, and more. + +While mpv strives for minimalism and provides no real GUI, it has a small +controller on top of the video for basic control. + +Mpv can leverage most hardware decoding APIs on all platforms. Hardware +decoding can be enabled at runtime on demand. + +Powerful scripting capabilities can make the player do almost anything. There +is a large selection of user scripts on the wiki. + +A straightforward C API was designed from the ground up to make mpv usable as +a library and facilitate easy integration into other applications. + +%package libs +Summary: Dynamic library for Mpv frontends + +%description libs +This package contains the dynamic library libmpv, which provides access to Mpv. + +%package devel +Summary: Development package for libmpv +Provides: mpv-libs-devel = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: mpv-nightly-libs-devel = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: mpv-libs-devel < %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: mpv-nightly-libs-devel < %{?epoch:%{epoch}:}%{version}-%{release} +Requires: mpv-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: mpv-nightly-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description devel +This package contains development header files and libraries for Mpv. + +%prep +%autosetup -p1 -n mpv-%commit +sed -e "s|/usr/local/etc|%{_sysconfdir}/mpv|" -i etc/mpv.conf + +%build +%meson --auto-features=auto \ + -Dalsa=enabled \ + -Dbuild-date=false \ + -Dcaca=enabled \ + -Dcdda=enabled \ + -Dcplayer=true \ + -Dcplugins=enabled \ + -Dcuda-hwaccel=enabled \ + -Dcuda-interop=enabled \ + -Ddmabuf-wayland=enabled \ + -Ddrm=enabled \ + -Ddvbin=enabled \ + -Ddvdnav=enabled \ + -Degl-drm=enabled \ + -Degl-wayland=enabled \ + -Degl-x11=enabled \ + -Degl=enabled \ + -Dgbm=enabled \ + -Dgl-x11=enabled \ + -Dgl=enabled \ + -Dhtml-build=enabled \ + -Diconv=enabled \ + -Djack=enabled \ + -Djavascript=enabled \ + -Djpeg=enabled \ + -Dlcms2=enabled \ + -Dlibarchive=enabled \ + -Dlibavdevice=enabled \ + -Dlibbluray=enabled \ + -Dlibmpv=true \ + -Dlua=enabled \ + -Dmanpage-build=enabled \ + -Dopenal=enabled \ + -Dopensles=disabled \ + -Doss-audio=disabled \ + -Dpipewire=enabled \ + -Dplain-gl=enabled \ + -Dpulse=enabled \ + -Drubberband=enabled \ + -Dsdl2-audio=enabled \ + -Dsdl2-gamepad=enabled \ + -Dsdl2-video=enabled \ + -Dsdl2=enabled \ + -Dsndio=disabled \ + -Dspirv-cross=disabled \ + -Duchardet=enabled \ + -Dvaapi-drm=enabled \ + -Dvaapi-wayland=enabled \ + -Dvaapi-x11=enabled \ + -Dvaapi=enabled \ + -Dvapoursynth=enabled \ + -Dvdpau-gl-x11=enabled \ + -Dvdpau=enabled \ + -Dvector=enabled \ + -Dvulkan-interop=disabled \ + -Dvulkan=enabled \ + -Dwayland=enabled \ + -Dwerror=false \ + -Dx11=enabled \ + -Dxv=enabled \ + -Dzimg=enabled \ + -Dzlib=enabled +%meson_build + +%install +%meson_install + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/mpv.metainfo.xml +desktop-file-validate %{buildroot}%{_datadir}/applications/mpv.desktop + +%files +%docdir %{_docdir}/mpv/ +%license LICENSE.GPL LICENSE.LGPL Copyright +%{_docdir}/mpv/ +%{_bindir}/mpv +%{_datadir}/applications/mpv.desktop +%dir %{_datadir}/bash-completion/ +%dir %{_datadir}/bash-completion/completions/ +%{_datadir}/bash-completion/completions/mpv +%{_datadir}/icons/hicolor/*/apps/mpv*.* +%dir %{_datadir}/zsh/ +%dir %{_datadir}/zsh/site-functions/ +%{_datadir}/zsh/site-functions/_mpv +%{_mandir}/man1/mpv.* +%{_metainfodir}/mpv.metainfo.xml +%dir %{_sysconfdir}/mpv/ +%config(noreplace) %{_sysconfdir}/mpv/encoding-profiles.conf + +%files libs +%license LICENSE.GPL LICENSE.LGPL Copyright +%{_libdir}/libmpv.so.2{,.*} + +%files devel +%{_includedir}/mpv/ +%{_libdir}/libmpv.so +%{_libdir}/pkgconfig/mpv.pc + +%changelog +%autochangelog diff --git a/anda/apps/mpv/update.rhai b/anda/apps/mpv/update.rhai new file mode 100644 index 0000000000..09c2703292 --- /dev/null +++ b/anda/apps/mpv/update.rhai @@ -0,0 +1,8 @@ +if filters.contains("nightly") { + rpm.global("commit", gh_commit("mpv-player/mpv")); + if rpm.changed() { + rpm.global("ver", gh("mpv-player/mpv")); + rpm.global("commit_date", date()); + rpm.release(); + } +} diff --git a/anda/devs/flutter/flutter.spec b/anda/devs/flutter/flutter.spec index d4e8ef115c..d9131a2f6f 100644 --- a/anda/devs/flutter/flutter.spec +++ b/anda/devs/flutter/flutter.spec @@ -1,6 +1,6 @@ Name: flutter -Version: 3.19.0.0.4.pre -Release: 1%{?dist} +Version: 3.19.0 +Release: 1%?dist Summary: SDK for crafting beautiful, fast user experiences from a single codebase License: BSD-3-Clause URL: https://flutter.dev diff --git a/anda/devs/flutter/update.rhai b/anda/devs/flutter/update.rhai index 103ad474f3..11fa3eaddd 100644 --- a/anda/devs/flutter/update.rhai +++ b/anda/devs/flutter/update.rhai @@ -1,2 +1,7 @@ let obj = get("https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json").json(); -rpm.version(obj.releases[0].version); +for release in obj.releases { + if release.channel == "stable" { + rpm.version(release.version); + break; + } +} diff --git a/anda/docker/moby-compose/moby-compose.spec b/anda/docker/moby-compose/moby-compose.spec index ee65209d45..708ae3022b 100644 --- a/anda/docker/moby-compose/moby-compose.spec +++ b/anda/docker/moby-compose/moby-compose.spec @@ -1,8 +1,8 @@ %define debug_package %{nil} Name: moby-compose -Version: 2.24.5 -Release: 1%{?dist} +Version: 2.24.6 +Release: 1%?dist Summary: Define and run multi-container applications with Docker License: Apache-2.0 diff --git a/anda/langs/dart/dart.spec b/anda/langs/dart/dart.spec index 1125c73eeb..3f645090a5 100644 --- a/anda/langs/dart/dart.spec +++ b/anda/langs/dart/dart.spec @@ -1,8 +1,8 @@ %define debug_package %{nil} Name: dart -Version: 3.2.6 -Release: 1%{?dist} +Version: 3.3.0 +Release: 1%?dist Summary: The Dart Language License: BSD-3-Clause URL: https://dart.dev/ diff --git a/anda/langs/nim/nim-nightly/nim-nightly.spec b/anda/langs/nim/nim-nightly/nim-nightly.spec index 434429841a..e782fb9cda 100644 --- a/anda/langs/nim/nim-nightly/nim-nightly.spec +++ b/anda/langs/nim/nim-nightly/nim-nightly.spec @@ -1,10 +1,11 @@ %global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10 -%global commit ae2cdcebc2d7fbf6e7eac26181baf9a88aa64cf5 +%global commit 92c8c6d5f4e5a96b71bf4eca5f6a136410f97d6e %global ver 2.1.1 +%global commit_date 240219 %global debug_package %nil Name: nim-nighlty -Version: %ver^%commit +Version: %ver^%commit_date.%commit Release: 1%{?dist} Summary: Imperative, multi-paradigm, compiled programming language License: MIT and BSD diff --git a/anda/langs/nim/nim-nightly/update.rhai b/anda/langs/nim/nim-nightly/update.rhai index 874d47a96c..f39a7756c7 100644 --- a/anda/langs/nim/nim-nightly/update.rhai +++ b/anda/langs/nim/nim-nightly/update.rhai @@ -1,12 +1,13 @@ if filters.contains("nightly") { - let comp = get("https://raw.githubusercontent.com/nim-lang/Nim/devel/lib/system/compilation.nim"); - let maj = find("\\n\\s*NimMajor.+=\\s*(\\d+)\\n", comp, 1); - let min = find("\\n\\s*NimMinor.+=\\s*(\\d+)\\n", comp, 1); - let pat = find("\\n\\s*NimPatch.+=\\s*(\\d+)\\n", comp, 1); - let v = `${maj}.${min}.${pat}`; - rpm.global("ver", v); - let req = new_req("https://api.github.com/repos/nim-lang/Nim/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", req.get().json().sha); - rpm.release(); + rpm.global("commit", gh_commit("nim-lang/Nim")); + if rpm.changed() { + let comp = get("https://raw.githubusercontent.com/nim-lang/Nim/devel/lib/system/compilation.nim"); + let maj = find("\\n\\s*NimMajor.+=\\s*(\\d+)\\n", comp, 1); + let min = find("\\n\\s*NimMinor.+=\\s*(\\d+)\\n", comp, 1); + let pat = find("\\n\\s*NimPatch.+=\\s*(\\d+)\\n", comp, 1); + let v = `${maj}.${min}.${pat}`; + rpm.global("ver", v); + rpm.release(); + rpm.global("commit_date", date()); + } } diff --git a/anda/langs/nim/nim/nim.spec b/anda/langs/nim/nim/nim.spec index 4240576b43..8a2ce0873e 100644 --- a/anda/langs/nim/nim/nim.spec +++ b/anda/langs/nim/nim/nim.spec @@ -3,7 +3,7 @@ Name: nim Version: 2.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Imperative, multi-paradigm, compiled programming language License: MIT and BSD URL: https://nim-lang.org @@ -56,30 +56,54 @@ export FCFLAGS="${FCFLAGS} -Ofast" export PATH="$(pwd):$(pwd)/bin:${PATH}" mold -run nim c -d:danger koch.nim -mold -run koch boot -d:useLinenoise -t:-fPIE -l:-pie +mold -run koch boot -d:useLinenoise -t:-fPIE -l:-pie -d:release -d:nativeStacktrace -d:useGnuReadline mold -run koch docs & -(cd lib; mold -run nim c --app:lib -d:danger -d:createNimRtl -t:-fPIE -l:-pie nimrtl.nim) & +(cd lib && nim c --app:lib -d:createNimRtl -d:release nimrtl.nim) & mold -run koch tools -t:-fPIE -l:-pie & -mold -run nim c -t:-fPIE -l:-pie -d:danger nimsuggest/nimsuggest.nim & +mold -run nim c -t:-fPIE -l:-pie -d:release nimsuggest/nimsuggest.nim & wait sed -i '/ - 0.8.4 -- Initial Package. +%autochangelog diff --git a/anda/langs/python/protobuf/python3-protobuf.spec b/anda/langs/python/protobuf/python3-protobuf.spec index 0753d31cee..12077e87b4 100644 --- a/anda/langs/python/protobuf/python3-protobuf.spec +++ b/anda/langs/python/protobuf/python3-protobuf.spec @@ -2,8 +2,8 @@ %global pypi_name protobuf Name: python-%{pypi_name} -Version: 4.25.2 -Release: 1%{?dist} +Version: 4.25.3 +Release: 1%?dist Summary: Protocol Buffers License: BSD-3-Clause diff --git a/anda/langs/python/ruff/python3-ruff.spec b/anda/langs/python/ruff/python3-ruff.spec index 8d8210e03d..afb2756b43 100644 --- a/anda/langs/python/ruff/python3-ruff.spec +++ b/anda/langs/python/ruff/python3-ruff.spec @@ -1,8 +1,8 @@ %define debug_package %{nil} Name: python3-ruff -Version: 0.2.1 -Release: 1%{?dist} +Version: 0.2.2 +Release: 1%?dist Summary: An extremely fast Python linter, written in Rust License: MIT URL: https://beta.ruff.rs/ diff --git a/anda/langs/rust/bat-extras/bat-extras.spec b/anda/langs/rust/bat-extras/bat-extras.spec index 6b4477d243..fcd6089128 100644 --- a/anda/langs/rust/bat-extras/bat-extras.spec +++ b/anda/langs/rust/bat-extras/bat-extras.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: bat-extras -Version: 2023.09.19 +Version: 2024.02.12 Release: 1%{?dist} Summary: Bash scripts that integrate bat with various command line tools diff --git a/anda/langs/rust/gping/rust-gping.spec b/anda/langs/rust/gping/rust-gping.spec index 0420d1c4fa..eeab701fe7 100644 --- a/anda/langs/rust/gping/rust-gping.spec +++ b/anda/langs/rust/gping/rust-gping.spec @@ -4,8 +4,8 @@ %global crate gping Name: rust-gping -Version: 1.16.0 -Release: 1%{?dist} +Version: 1.16.1 +Release: 1%?dist Summary: Ping, but with a graph License: MIT diff --git a/anda/langs/vala/vala-language-server-nightly/update.rhai b/anda/langs/vala/vala-language-server-nightly/update.rhai index 3f185f0a3b..74251aaf98 100644 --- a/anda/langs/vala/vala-language-server-nightly/update.rhai +++ b/anda/langs/vala/vala-language-server-nightly/update.rhai @@ -1,7 +1,8 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/vala-lang/vala-language-server/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", json(req.get()).sha); - rpm.global("verrel", gh("vala-lang/vala-language-server")); - rpm.release(); + rpm.global("commit", gh_commit("vala-lang/vala-language-server")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.global("verrel", gh("vala-lang/vala-language-server")); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec b/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec index bc91da7d5e..f7b354feb6 100644 --- a/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec +++ b/anda/langs/vala/vala-language-server-nightly/vala-language-server-nightly.spec @@ -3,14 +3,14 @@ %global commit 3b5fe941bea6ecd5c8fcb84930c40b8582eea165 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} %global verrel 0.48.7 Name: vala-language-server-nightly Summary: Language server for the Vala programming language Version: 0.48.7^%{snapshot_info} -Release: 1%{?dist} +Release: 1%?dist # The entire source is LGPLv2+, except plugins/gnome-builder/vala_langserv.py, which is GPLv3+. # It is not installed when the "plugins" meson option is set to false. # Since GNOME Builder 41, the VLS the plugin has been included. diff --git a/anda/langs/vala/vala-lint-nightly/update.rhai b/anda/langs/vala/vala-lint-nightly/update.rhai index b964fdd1e5..dc9c066adc 100644 --- a/anda/langs/vala/vala-lint-nightly/update.rhai +++ b/anda/langs/vala/vala-lint-nightly/update.rhai @@ -1,7 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/vala-lang/vala-lint/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - let sha = json(req.get()).sha; - rpm.global("commit", sha); - rpm.release(); + rpm.global("commit", gh_commit("vala-lang/vala-lint")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec b/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec index 7c9ed5b917..62c942888a 100644 --- a/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec +++ b/anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec @@ -3,13 +3,13 @@ %global commit 8ae2bb65fe66458263d94711ae4ddd978faece00 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} Name: vala-lint-nightly Summary: Check Vala code files for code-style errors Version: 0.1.0^%{snapshot_info} -Release: 1%{?dist} +Release: 1%?dist License: GPL-2.0-or-later URL: https://github.com/vala-lang/vala-lint diff --git a/anda/langs/vala/vala-nightly/update.rhai b/anda/langs/vala/vala-nightly/update.rhai index 9476b1ef67..4df0afe8bc 100644 --- a/anda/langs/vala/vala-nightly/update.rhai +++ b/anda/langs/vala/vala-nightly/update.rhai @@ -1,6 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://gitlab.gnome.org/api/v4/projects/1551/repository/branches/main"); - let sha = json(req.get()).commit.id; - rpm.global("commit", sha); - rpm.release(); + rpm.global("commit", gitlab_commit("gitlab.gnome.org", "1551", "main")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/langs/vala/vala-nightly/vala-nightly.spec b/anda/langs/vala/vala-nightly/vala-nightly.spec index 836545448b..06798e44c3 100644 --- a/anda/langs/vala/vala-nightly/vala-nightly.spec +++ b/anda/langs/vala/vala-nightly/vala-nightly.spec @@ -3,16 +3,16 @@ %global priority 90 %global real_name vala -%global commit eba39daa0c342965c0417195a44dd8f4c5944e76 +%global commit 933eb2d0e41bb7fdc4fe5fc01a03254965990f3e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global repo https://gitlab.gnome.org/GNOME/%{real_name}.git -%global commit_date %(date '+%Y%m%d') +%global commit_date 240218 %global snapshot_info %{commit_date}.%{shortcommit} Name: vala-nightly Version: 0.58.0^%{snapshot_info} -Release: 1%{?dist} +Release: 1%?dist Summary: A modern programming language for GNOME # Most files are LGPLv2.1+, curses.vapi is 2-clause BSD diff --git a/anda/misc/arrpc/anda.hcl b/anda/misc/arrpc/anda.hcl new file mode 100644 index 0000000000..00da3d6b50 --- /dev/null +++ b/anda/misc/arrpc/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "arrpc.spec" + } +} diff --git a/anda/misc/arrpc/arrpc.service b/anda/misc/arrpc/arrpc.service new file mode 100644 index 0000000000..5081e0fd29 --- /dev/null +++ b/anda/misc/arrpc/arrpc.service @@ -0,0 +1,11 @@ +[Unit] +Description=arRPC Discord RPC daemon +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/arrpc +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/anda/misc/arrpc/arrpc.spec b/anda/misc/arrpc/arrpc.spec new file mode 100644 index 0000000000..643d739797 --- /dev/null +++ b/anda/misc/arrpc/arrpc.spec @@ -0,0 +1,53 @@ +%define debug_package %nil +%global commit c6e23e7eb733ad396d3eebc328404cc656fed581 + +Name: arrpc +Version: 3.3.1 +Release: 1%?dist +Summary: Open Discord RPC server for atypical setups +License: MIT +URL: https://arrpc.openasar.dev +Source0: https://github.com/OpenAsar/arrpc/archive/%commit.tar.gz +Source1: arrpc.service +Requires: glibc +BuildRequires: nodejs-npm systemd-rpm-macros + +%description +arRPC is an open source implementation of Discord's half-documented local RPC servers for their desktop client. +This open source implementation purely in NodeJS allows it to be used in many places where it is otherwise +impossible to do: Discord web and alternative clients like ArmCord/etc. It opens a simple bridge WebSocket +server which messages the JSON of exactly what to dispatch with in the client with no extra processing needed, +allowing small and simple mods or plugins. arRPC is experimental and a work in progress, so expect bugs, etc. + +%prep +%autosetup -n arrpc-%commit +# patch for using esbuild +sed -i -E 's@const server[^\n]+;@async function main() {\0@' src/index.js +sed -i -E 's@server\.on[^\n]+;@\0}\nmain();@' src/index.js + +%build +npm i esbuild pkg +npx esbuild --bundle --platform=node --target=node18 --outdir=dist ./src/index.js +npx pkg -t node18-linux-x64 -o arrpc ./dist/index.js + +%install +install -D -m755 arrpc %buildroot%_bindir/arrpc +install -D -m644 %SOURCE1 %buildroot%_userunitdir/arrpc.service + +%post +%systemd_user_post arrpc.service + +%preun +%systemd_user_preun arrpc.service + +%postun +%systemd_user_postun_with_restart arrpc.service + +%files +%doc README.md +%license LICENSE +%_bindir/arrpc +%_userunitdir/arrpc.service + +%changelog +%autochangelog diff --git a/anda/misc/arrpc/update.rhai b/anda/misc/arrpc/update.rhai new file mode 100644 index 0000000000..e69f95c76d --- /dev/null +++ b/anda/misc/arrpc/update.rhai @@ -0,0 +1,5 @@ +let md = get("https://raw.githubusercontent.com/OpenAsar/arrpc/main/changelog.md"); +rpm.version(find("(?m)^## v([\\d.]+)", md, 1)); +if rpm.changed() { + rpm.global("commit", gh_commit("OpenAsar/arrpc")); +} diff --git a/anda/misc/click/update.rhai b/anda/misc/click/update.rhai index 8afb40a9b2..f9f3b32b64 100644 --- a/anda/misc/click/update.rhai +++ b/anda/misc/click/update.rhai @@ -1,7 +1,5 @@ let o = get("https://gitlab.com/api/v4/projects/25034025/repository/tags").json_arr()[0]; -let f = rpm.f; rpm.version(o.name); -// check if changed -if rpm.f != f { +if rpm.changed() { rpm.global("commit", o.commit.id); } diff --git a/anda/misc/kwin-system76-scheduler-integration/kwin-system76-scheduler-integration.spec b/anda/misc/kwin-system76-scheduler-integration/kwin-system76-scheduler-integration.spec index 9cdd7beae2..c88f435a20 100644 --- a/anda/misc/kwin-system76-scheduler-integration/kwin-system76-scheduler-integration.spec +++ b/anda/misc/kwin-system76-scheduler-integration/kwin-system76-scheduler-integration.spec @@ -2,7 +2,7 @@ Name: kwin-system76-scheduler-integration Version: 0.1 -Release: 3%?dist +Release: 4%?dist Summary: Notify the System76 Scheduler which app has focus so it can be prioritized License: MIT URL: https://github.com/maxiberta/kwin-system76-scheduler-integration @@ -38,6 +38,8 @@ install -Dm644 metadata.desktop %buildroot%_datadir/kservices5/kwin-system76-sch %preun %systemd_user_preun com.system76.Scheduler.dbusproxy.service +%postun +%systemd_user_postun_with_restart com.system76.Scheduler.dbusproxy.service %files %config %_userunitdir/com.system76.Scheduler.dbusproxy.service diff --git a/anda/misc/sass/sass.spec b/anda/misc/sass/sass.spec index 98404aa9ff..e9d87f88c9 100644 --- a/anda/misc/sass/sass.spec +++ b/anda/misc/sass/sass.spec @@ -4,8 +4,8 @@ %define _build_id_links none Name: sass -Version: 1.70.0 -Release: 1%{?dist} +Version: 1.71.0 +Release: 1%?dist Summary: The reference implementation of Sass, written in Dart License: MIT URL: https://sass-lang.com/dart-sass diff --git a/anda/system/avstplg/avstplg.spec b/anda/system/avstplg/avstplg.spec index edac087251..79e4cbb141 100644 --- a/anda/system/avstplg/avstplg.spec +++ b/anda/system/avstplg/avstplg.spec @@ -1,11 +1,12 @@ %global commit 7cb289b6466b662fdf9f7d7ccc9f3c08a7dc0cac +%global commit_date 240219 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} %define __os_install_post %{nil} Name: avstplg -Version: %shortcommit -Release: 1%{?dist} +Version: %commit_date.%shortcommit +Release: 1%?dist License: Apache-2.0 Summary: Set of tools designed to help develop and debug software and firmware on Intel platforms with AudioDSP onboard. @@ -41,4 +42,4 @@ install -Dm755 avstplg/build/bin/Release/net6.0/avstplg.dll %{buildroot}/%{_libd %changelog * Tue Jan 2 2024 infinitebash -- Initial package. \ No newline at end of file +- Initial package. diff --git a/anda/system/avstplg/update.rhai b/anda/system/avstplg/update.rhai index 958c0dfba0..55b5546bb0 100644 --- a/anda/system/avstplg/update.rhai +++ b/anda/system/avstplg/update.rhai @@ -1,6 +1,7 @@ if filters.contains("nightly") { - let req = new_req("https://api.github.com/repos/thesofproject/avsdk/commits/HEAD"); - req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); - rpm.global("commit", json(req.get()).sha); - rpm.release(); -} \ No newline at end of file + rpm.global("commit", gh_commit("thesofproject/avsdk")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } +} diff --git a/anda/system/limine/limine.spec b/anda/system/limine/limine.spec index 00d1693e2e..3d76c38e15 100644 --- a/anda/system/limine/limine.spec +++ b/anda/system/limine/limine.spec @@ -1,6 +1,6 @@ Name: limine -Version: 7.0.3 -Release: 1%{?dist} +Version: 7.0.5 +Release: 1%?dist Summary: Modern, advanced, portable, multiprotocol bootloader License: BSD-2-Clause URL: https://limine-bootloader.org diff --git a/anda/system/nvidia-patch/nvidia-patch.spec b/anda/system/nvidia-patch/nvidia-patch.spec index 985f4062f1..639577ceec 100644 --- a/anda/system/nvidia-patch/nvidia-patch.spec +++ b/anda/system/nvidia-patch/nvidia-patch.spec @@ -1,11 +1,12 @@ %global debug_package %{nil} %global commit 564c0661a942f7163cb2cfa6cb1b14b4bcff3a30 %global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 240218 %global patches %{_datadir}/src/nvidia-patch Name: nvidia-patch -Version: 0^%{shortcommit} +Version: 0^%commit_date.%{shortcommit} Release: 1%{?dist} Summary: NVENC and NvFBC patches for NVIDIA drivers diff --git a/anda/system/nvidia-patch/update.rhai b/anda/system/nvidia-patch/update.rhai index 5b4e723b15..3783aaf80a 100644 --- a/anda/system/nvidia-patch/update.rhai +++ b/anda/system/nvidia-patch/update.rhai @@ -1,4 +1,7 @@ if filters.contains("nightly") { - rpm.global("commit", get("https://api.github.com/repos/keylase/nvidia-patch/commits/HEAD").json().sha); - rpm.release(); + rpm.global("commit", gh_commit("keylase/nvidia-patch")); + if rpm.changed() { + rpm.global("commit_date", date()); + rpm.release(); + } } diff --git a/anda/system/xpadneo/xpadneo.spec b/anda/system/xpadneo/xpadneo.spec index 5026dc22ec..7ce203671f 100644 --- a/anda/system/xpadneo/xpadneo.spec +++ b/anda/system/xpadneo/xpadneo.spec @@ -4,7 +4,7 @@ %endif Name: xpadneo -Version: 0.9.5 +Version: 0.9.6 Release: 1%{?dist} Summary: Advanced Linux Driver for Xbox One Wireless Gamepad Group: System Environment/Kernel diff --git a/anda/tools/chromium-ectool/chromium-ectool.spec b/anda/tools/chromium-ectool/chromium-ectool.spec index d9388298e0..49bb056500 100644 --- a/anda/tools/chromium-ectool/chromium-ectool.spec +++ b/anda/tools/chromium-ectool/chromium-ectool.spec @@ -32,4 +32,4 @@ install -Dm755 build/host/util/ectool %{buildroot}%{_bindir}/ectool %changelog * Tue Jan 2 2024 infinitebash -- Initial package. \ No newline at end of file +- Initial package. diff --git a/anda/tools/electron/electron.spec b/anda/tools/electron/electron.spec index 48b299f5cf..e1e5c5103b 100644 --- a/anda/tools/electron/electron.spec +++ b/anda/tools/electron/electron.spec @@ -12,8 +12,8 @@ %global __provides_exclude_from %{_libdir}/%{name}/.*\\.so Name: electron -Version: 28.2.2 -Release: 1%{?dist} +Version: 28.2.3 +Release: 1%?dist Summary: Build cross platform desktop apps with web technologies License: MIT URL: https://electronjs.org/