From f849ad253625f94f09a2b0552fd510e7ead8b091 Mon Sep 17 00:00:00 2001 From: lleyton Date: Sun, 4 Dec 2022 15:51:22 -0800 Subject: [PATCH 01/13] gpg.signingkey -> user.signingkey --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 8aba06fb08..23bf17bd9d 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -41,7 +41,7 @@ jobs: git config user.name "Raboneko" git config user.email "raboneko@fyralabs.com" git config gpg.format "ssh" - git config gpg.signingKey "${{ secrets.SSH_PUBLIC_SIGNING_KEY }}" + git config user.signingkey "${{ secrets.SSH_PUBLIC_SIGNING_KEY }}" git commit -S -a -m "Automatic Update: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')" git push -u origin main fi From 8230e70ec6bfc109af8545b3f161b05b7516800f Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 5 Dec 2022 08:35:19 +0000 Subject: [PATCH 02/13] adopt new policies for prismlauncher (#54) * [prismlauncher] revise files to better follow fedora guidelines * add prismlauncher packages to CODEOWNERS --- CODEOWNERS | 5 + .../prismlauncher-nightly.spec | 167 ++++++------- .../prismlauncher-qt5-nightly.spec | 168 ++++++------- .../prismlauncher-qt5/prismlauncher-qt5.spec | 222 ++++++----------- anda/games/prismlauncher/prismlauncher.spec | 228 ++++++------------ 5 files changed, 316 insertions(+), 474 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 42edd91f1c..b666655219 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -20,3 +20,8 @@ /anda/tools/melody @lleyton /anda/go/curlie @lleyton + +/anda/games/prismlauncher @getchoo +/anda/games/prismlauncher-nightly @getchoo +/anda/games/prismlauncher-qt5-nightly @getchoo +/anda/games/prismlauncher-qt5 @getchoo diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 34fee58dc3..8c6fe5500c 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,16 +1,13 @@ -%global fancy_name PrismLauncher %global real_name prismlauncher -%global repo https://github.com/%{fancy_name}/%{fancy_name} %global commit 79d5beff8d45d9a66cfa91393167fc79d3a155a9 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global filesystem_commit cd6805e94dd5d6346be1b75a54cdc27787319dd2 %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 %global tomlplusplus_commit 0a90913abf9390b9e08ab6d3b40ac11634553f38 %global commit_date %(date '+%Y%m%d') -%global git_rel .%{commit_date}.%{shortcommit} +%global snapshot_info %{commit_date}.%{shortcommit} %bcond_without qt6 @@ -29,10 +26,6 @@ %global build_platform unknown -%if 0%{?suse_version} -%global build_platform openSUSE -%endif - %if 0%{?fedora} %global build_platform Fedora %endif @@ -45,85 +38,56 @@ %global build_platform CentOS %endif -%if %{with qt6} -Name: prismlauncher-nightly -%else -Name: prismlauncher-qt5-nightly -%endif -Version: 6.0 -Release: 0.1%{?git_rel}%{?dist} -Summary: Minecraft launcher with ability to manage multiple instances -License: GPL-3.0-only -%if 0%{?suse_version} -Group: Amusements/Games/Action/Other -%else -Group: Amusements/Games -%endif -URL: https://prismlauncher.org/ -Source0: %{repo}/archive/%{commit}/%{fancy_name}-%{shortcommit}.tar.gz -Source1: https://github.com/PrismLauncher/libnbtplusplus/archive/%{libnbtplusplus_commit}/libnbtplusplus-%{libnbtplusplus_commit}.tar.gz -Source2: https://github.com/stachenov/quazip/archive/%{quazip_commit}/quazip-%{quazip_commit}.tar.gz -Source3: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -Source4: https://github.com/gulrak/filesystem/archive/%{filesystem_commit}/filesystem-%{filesystem_commit}.tar.gz +Name: prismlauncher-nightly +Version: 6.0^%{snapshot_info} +Release: 1%{?dist} +Summary: Minecraft launcher with ability to manage multiple instances +License: GPL-3.0-only +Group: Amusements/Games +URL: https://prismlauncher.org/ +Source0: https://github.com/PrismLauncher/PrismLauncher/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz +Source1: https://github.com/PrismLauncher/libnbtplusplus/archive/%{libnbtplusplus_commit}/libnbtplusplus-%{libnbtplusplus_commit}.tar.gz +Source2: https://github.com/stachenov/quazip/archive/%{quazip_commit}/quazip-%{quazip_commit}.tar.gz +Source3: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -BuildRequires: cmake >= 3.15 -BuildRequires: extra-cmake-modules -BuildRequires: gcc-c++ -BuildRequires: java-devel - -%if 0%{?suse_version} -BuildRequires: appstream-glib -%else -BuildRequires: libappstream-glib -%endif - -BuildRequires: desktop-file-utils -BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} +BuildRequires: cmake >= 3.15 +BuildRequires: extra-cmake-modules +BuildRequires: gcc-c++ +BuildRequires: java-devel >= 17 +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: cmake(ghc_filesystem) +BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} %if %{with qt6} -BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6Core5Compat) %endif -BuildRequires: pkgconfig(scdoc) -BuildRequires: zlib-devel +BuildRequires: pkgconfig(scdoc) +BuildRequires: pkgconfig(zlib) -# Prism Launcher requires QuaZip >= 1.3 -%if 0%{?suse_version} >= 1550 -BuildRequires: cmake(QuaZip-Qt%{qt_version}) -%endif +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils -%if 0%{?suse_version} -Requires: %{!?with_qt6:lib}qt%{qt_version}-%{!?with_qt6:qt}imageformats -Requires: libQt%{qt_version}Svg%{qt_version} -%else -Requires: qt%{qt_version}-qtimageformats -Requires: qt%{qt_version}-qtsvg -%endif +Requires: qt%{qt_version}-qtimageformats +Requires: qt%{qt_version}-qtsvg +Requires: javapackages-filesystem +Requires: java-headless >= 17 +Requires: java-1.8.0-openjdk-headless -Recommends: java-openjdk-headless # xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 -Recommends: xrandr - +Recommends: xrandr # Prism supports enabling gamemode -%if 0%{?suse_version} -Recommends: gamemoded -%else -Recommends: gamemode -%endif +Suggests: gamemode -Conflicts: %{real_name} -Conflicts: %{real_name}-qt5 -%if %{with qt6} -Conflicts: %{real_name}-qt5-nightly -%else -Conflicts: %{real_name}-nightly -%endif +Conflicts: prismlauncher +Conflicts: prismlauncher-qt5 %description @@ -132,21 +96,21 @@ multiple installations of Minecraft at once (Fork of MultiMC) %prep -%autosetup -n %{fancy_name}-%{commit} +%autosetup -n PrismLauncher-%{commit} -tar -xvf %{SOURCE1} -C libraries +tar -xzf %{SOURCE1} -C libraries tar -xvf %{SOURCE2} -C libraries tar -xvf %{SOURCE3} -C libraries -tar -xvf %{SOURCE4} -C libraries -rmdir libraries/{quazip/,libnbtplusplus} -mv -f libraries/quazip-%{quazip_commit} libraries/quazip + +rmdir libraries/{libnbtplusplus,quazip,tomlplusplus}/ mv -f libraries/libnbtplusplus-%{libnbtplusplus_commit} libraries/libnbtplusplus -mv -f libraries/tomlplusplus-%{tomlplusplus_commit}/* libraries/tomlplusplus -mv -f libraries/filesystem-%{filesystem_commit}/* libraries/filesystem +mv -f libraries/quazip-%{quazip_commit} libraries/quazip +mv -f libraries/tomlplusplus-%{tomlplusplus_commit} libraries/tomlplusplus # Do not set RPATH sed -i "s|\$ORIGIN/||" CMakeLists.txt + %build %cmake \ -DLauncher_QT_VERSION_MAJOR="%{qt_version}" \ @@ -160,18 +124,41 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %cmake_build + %install %cmake_install -%if 0%{?suse_version} > 1500 || 0%{?fedora} > 35 -appstream-util validate-relax --nonet \ - %{buildroot}%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml -%endif %check %ctest + +appstream-util validate-relax --nonet \ + %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml + desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop + +%post +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || : + + +%postun +/usr/bin/update-desktop-database &> /dev/null || : + +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : + + %files %doc README.md %license LICENSE COPYING.md @@ -180,13 +167,17 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.Pri %{_datadir}/%{real_name}/NewLaunch.jar %{_datadir}/%{real_name}/JavaCheck.jar %{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop -%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml +%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg %{_datadir}/mime/packages/modrinth-mrpack-mime.xml %{_mandir}/man?/prismlauncher.* %changelog +* Mon Dec 05 2022 seth - 6.0^20221204.79d5bef-1 +- revise file to better follow fedora packaging guidelines and add java 8 as a + dependency + * Thu Nov 10 2022 seth - 5.1-0.1.20221110.e6d057f - add package to Amusements/Games diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index f56850105d..925d643e73 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -1,16 +1,13 @@ -%global fancy_name PrismLauncher %global real_name prismlauncher -%global repo https://github.com/%{fancy_name}/%{fancy_name} %global commit 79d5beff8d45d9a66cfa91393167fc79d3a155a9 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global filesystem_commit cd6805e94dd5d6346be1b75a54cdc27787319dd2 %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 %global tomlplusplus_commit 0a90913abf9390b9e08ab6d3b40ac11634553f38 %global commit_date %(date '+%Y%m%d') -%global git_rel .%{commit_date}.%{shortcommit} +%global snapshot_info %{commit_date}.%{shortcommit} %bcond_with qt6 @@ -29,10 +26,6 @@ %global build_platform unknown -%if 0%{?suse_version} -%global build_platform openSUSE -%endif - %if 0%{?fedora} %global build_platform Fedora %endif @@ -45,85 +38,57 @@ %global build_platform CentOS %endif -%if %{with qt6} -Name: prismlauncher-nightly -%else -Name: prismlauncher-qt5-nightly -%endif -Version: 6.0 -Release: 0.1%{?git_rel}%{?dist} -Summary: Minecraft launcher with ability to manage multiple instances -License: GPL-3.0-only -%if 0%{?suse_version} -Group: Amusements/Games/Action/Other -%else -Group: Amusements/Games -%endif -URL: https://prismlauncher.org/ -Source0: %{repo}/archive/%{commit}/%{fancy_name}-%{shortcommit}.tar.gz -Source1: https://github.com/PrismLauncher/libnbtplusplus/archive/%{libnbtplusplus_commit}/libnbtplusplus-%{libnbtplusplus_commit}.tar.gz -Source2: https://github.com/stachenov/quazip/archive/%{quazip_commit}/quazip-%{quazip_commit}.tar.gz -Source3: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -Source4: https://github.com/gulrak/filesystem/archive/%{filesystem_commit}/filesystem-%{filesystem_commit}.tar.gz +Name: prismlauncher-qt5-nightly +Version: 6.0^%{snapshot_info} +Release: 1%{?dist} +Summary: Minecraft launcher with ability to manage multiple instances +License: GPL-3.0-only +Group: Amusements/Games +URL: https://prismlauncher.org/ +Source0: https://github.com/PrismLauncher/PrismLauncher/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz +Source1: https://github.com/PrismLauncher/libnbtplusplus/archive/%{libnbtplusplus_commit}/libnbtplusplus-%{libnbtplusplus_commit}.tar.gz +Source2: https://github.com/stachenov/quazip/archive/%{quazip_commit}/quazip-%{quazip_commit}.tar.gz +Source3: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -BuildRequires: cmake >= 3.15 -BuildRequires: extra-cmake-modules -BuildRequires: gcc-c++ -BuildRequires: java-devel - -%if 0%{?suse_version} -BuildRequires: appstream-glib -%else -BuildRequires: libappstream-glib -%endif - -BuildRequires: desktop-file-utils -BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} +BuildRequires: cmake >= 3.15 +BuildRequires: extra-cmake-modules +BuildRequires: gcc-c++ +BuildRequires: java-devel >= 17 +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: cmake(ghc_filesystem) +BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} %if %{with qt6} -BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6Core5Compat) %endif -BuildRequires: pkgconfig(scdoc) -BuildRequires: zlib-devel +BuildRequires: pkgconfig(scdoc) +BuildRequires: pkgconfig(zlib) -# Prism Launcher requires QuaZip >= 1.3 -%if 0%{?suse_version} >= 1550 -BuildRequires: cmake(QuaZip-Qt%{qt_version}) -%endif +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils -%if 0%{?suse_version} -Requires: %{!?with_qt6:lib}qt%{qt_version}-%{!?with_qt6:qt}imageformats -Requires: libQt%{qt_version}Svg%{qt_version} -%else -Requires: qt%{qt_version}-qtimageformats -Requires: qt%{qt_version}-qtsvg -%endif +Requires: qt%{qt_version}-qtimageformats +Requires: qt%{qt_version}-qtsvg +Requires: javapackages-filesystem +Requires: java-headless >= 17 +Requires: java-1.8.0-openjdk-headless -Recommends: java-openjdk-headless # xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 -Recommends: xrandr - +Recommends: xrandr # Prism supports enabling gamemode -%if 0%{?suse_version} -Recommends: gamemoded -%else -Recommends: gamemode -%endif +Suggests: gamemode -Conflicts: %{real_name} -Conflicts: %{real_name}-qt5 -%if %{with qt6} -Conflicts: %{real_name}-qt5-nightly -%else -Conflicts: %{real_name}-nightly -%endif +Conflicts: prismlauncher +Conflicts: prismlauncher-qt5 +Conflicts: primslauncher-nightly %description @@ -132,21 +97,21 @@ multiple installations of Minecraft at once (Fork of MultiMC) %prep -%autosetup -n %{fancy_name}-%{commit} +%autosetup -n PrismLauncher-%{commit} -tar -xvf %{SOURCE1} -C libraries +tar -xzf %{SOURCE1} -C libraries tar -xvf %{SOURCE2} -C libraries tar -xvf %{SOURCE3} -C libraries -tar -xvf %{SOURCE4} -C libraries -rmdir libraries/{quazip/,libnbtplusplus} -mv -f libraries/quazip-%{quazip_commit} libraries/quazip + +rmdir libraries/{libnbtplusplus,quazip,tomlplusplus}/ mv -f libraries/libnbtplusplus-%{libnbtplusplus_commit} libraries/libnbtplusplus -mv -f libraries/tomlplusplus-%{tomlplusplus_commit}/* libraries/tomlplusplus -mv -f libraries/filesystem-%{filesystem_commit}/* libraries/filesystem +mv -f libraries/quazip-%{quazip_commit} libraries/quazip +mv -f libraries/tomlplusplus-%{tomlplusplus_commit} libraries/tomlplusplus # Do not set RPATH sed -i "s|\$ORIGIN/||" CMakeLists.txt + %build %cmake \ -DLauncher_QT_VERSION_MAJOR="%{qt_version}" \ @@ -160,18 +125,41 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %cmake_build + %install %cmake_install -%if 0%{?suse_version} > 1500 || 0%{?fedora} > 35 -appstream-util validate-relax --nonet \ - %{buildroot}%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml -%endif %check %ctest + +appstream-util validate-relax --nonet \ + %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml + desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop + +%post +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || : + + +%postun +/usr/bin/update-desktop-database &> /dev/null || : + +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : + + %files %doc README.md %license LICENSE COPYING.md @@ -180,13 +168,17 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.Pri %{_datadir}/%{real_name}/NewLaunch.jar %{_datadir}/%{real_name}/JavaCheck.jar %{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop -%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml +%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg %{_datadir}/mime/packages/modrinth-mrpack-mime.xml %{_mandir}/man?/prismlauncher.* %changelog +* Mon Dec 05 2022 seth - 6.0^20221204.79d5bef-1 +- revise file to better follow fedora packaging guidelines and add java 8 as a + dependency + * Thu Nov 10 2022 seth - 5.1-0.1.20221110.e6d057f - add package to Amusements/Games diff --git a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec index 61b4a3e887..e3824bba0e 100644 --- a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec +++ b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec @@ -1,6 +1,4 @@ -%global fancy_name PrismLauncher -%global real_name prismlauncher -%global repo https://github.com/%{fancy_name}/%{fancy_name} +%define real_name prismlauncher %global tomlplusplus_commit 0a90913abf9390b9e08ab6d3b40ac11634553f38 %bcond_with qt6 @@ -19,10 +17,6 @@ %global build_platform unknown -%if 0%{?suse_version} -%global build_platform openSUSE -%endif - %if 0%{?fedora} %global build_platform Fedora %endif @@ -35,81 +29,54 @@ %global build_platform CentOS %endif -%if %{with qt6} -Name: prismlauncher -%else -Name: prismlauncher-qt5 -%endif -Version: 5.2 -Release: 2%{?dist} -Summary: Minecraft launcher with ability to manage multiple instances -License: GPL-3.0-only -%if 0%{?suse_version} -Group: Amusements/Games/Action/Other -%else -Group: Amusements/Games -%endif -URL: https://prismlauncher.org/ -Source0: %{repo}/releases/download/%{version}/%{fancy_name}-%{version}.tar.gz -Source1: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -Patch0: fix-disable-FLOAT16-in-toml.patch +Name: prismlauncher-qt5 +Version: 5.2 +Release: 3%{?dist} +Summary: Minecraft launcher with ability to manage multiple instances +License: GPL-3.0-only +Group: Amusements/Games +URL: https://prismlauncher.org/ +Source0: https://github.com/PrismLauncher/PrismLauncher/releases/download/%{version}/%{real_name}-%{version}.tar.gz +Source1: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz +Patch0: fix-disable-FLOAT16-in-toml.patch -BuildRequires: cmake >= 3.15 -BuildRequires: extra-cmake-modules -BuildRequires: gcc-c++ -BuildRequires: java-devel - -%if 0%{?suse_version} -BuildRequires: appstream-glib -%else -BuildRequires: libappstream-glib -%endif - -BuildRequires: desktop-file-utils -BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} +BuildRequires: cmake >= 3.15 +BuildRequires: extra-cmake-modules +BuildRequires: gcc-c++ +BuildRequires: java-devel >= 17 +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: cmake(ghc_filesystem) +BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} %if %{with qt6} -BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6Core5Compat) %endif -BuildRequires: pkgconfig(scdoc) -BuildRequires: zlib-devel +BuildRequires: pkgconfig(scdoc) +BuildRequires: pkgconfig(zlib) -# Prism Launcher requires QuaZip >= 1.3 -%if 0%{?suse_version} >= 1550 -BuildRequires: cmake(QuaZip-Qt%{qt_version}) -%endif +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils -%if 0%{?suse_version} -Requires: %{!?with_qt6:lib}qt%{qt_version}-%{!?with_qt6:qt}imageformats -Requires: libQt%{qt_version}Svg%{qt_version} -%else -Requires: qt%{qt_version}-qtimageformats -Requires: qt%{qt_version}-qtsvg -%endif +Requires: qt%{qt_version}-qtimageformats +Requires: qt%{qt_version}-qtsvg +Requires: javapackages-filesystem +Requires: java-headless >= 17 +Requires: java-1.8.0-openjdk-headless -Recommends: java-openjdk-headless # xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 -Recommends: xrandr - +Recommends: xrandr # Prism supports enabling gamemode -%if 0%{?suse_version} -Recommends: gamemoded -%else -Recommends: gamemode -%endif +Suggests: gamemode -%if %{with qt6} -Conflicts: %{real_name}-qt5 -%else -Conflicts: %{real_name} -%endif +Conflicts: prismlauncher %description @@ -118,7 +85,7 @@ multiple installations of Minecraft at once (Fork of MultiMC) %prep -%autosetup -n %{fancy_name}-%{version} +%autosetup -n PrismLauncher-%{version} tar -xzf %{SOURCE1} -C libraries rm -rf libraries/tomlplusplus/* @@ -127,6 +94,7 @@ mv -f libraries/tomlplusplus-%{tomlplusplus_commit}/* libraries/tomlplusplus # Do not set RPATH sed -i "s|\$ORIGIN/||" CMakeLists.txt + %build %cmake \ -DLauncher_QT_VERSION_MAJOR="%{qt_version}" \ @@ -140,18 +108,37 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %cmake_build + %install %cmake_install -%if 0%{?suse_version} > 1500 || 0%{?fedora} > 35 -appstream-util validate-relax --nonet \ - %{buildroot}%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml -%endif %check %ctest + +appstream-util validate-relax --nonet \ + %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml + desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop + +%post +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + + +%postun +/usr/bin/update-desktop-database &> /dev/null || : +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + %files %doc README.md %license LICENSE COPYING.md @@ -160,32 +147,33 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.Pri %{_datadir}/%{real_name}/NewLaunch.jar %{_datadir}/%{real_name}/JavaCheck.jar %{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop -%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml +%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg %{_mandir}/man?/prismlauncher.* %changelog -* Tue Nov 15 2022 seth - 5.2-2 -- use newer version of toml++ +* Mon Dec 05 2022 seth - 5.2-3 +- revise file to better follow fedora packaging guidelines and add java 8 as a + dependency -* Tue Nov 15 2022 root - 5.2-1 -- new version +* Tue Nov 15 2022 seth - 5.2-2 +- use newer version of toml++ to fix issues on aarch64 + +* Tue Nov 15 2022 seth - 5.2-1 +- update to 5.2 * Thu Nov 10 2022 seth - 5.1-2 - add package to Amusements/Games -* Tue Nov 01 2022 root - 5.1-1 -- new version - -* Wed Oct 19 2022 seth - 5.0-4 -- fix opensuse deps +* Tue Nov 01 2022 seth - 5.1-1 +- update to 5.1 * Wed Oct 19 2022 seth - 5.0-3 - add missing deps and build with qt6 by default * Wed Oct 19 2022 seth - 5.0-2 -- add change-jars-path.patch and allow for building on opensuse +- add change-jars-path.patch to allow for package-specific jar path * Wed Oct 19 2022 seth - 5.0-1 - update to version 5.0 @@ -198,63 +186,3 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.Pri * Tue Oct 18 2022 Cappy Ishihara - 1.4.2-1 - Repackaged as Prism Launcher - -* Thu Sep 08 2022 Jan Drögehoff - 1.4.2-1 -- Update to 1.4.2 - -* Fri Jul 29 2022 Jan Drögehoff - 1.4.1-1 -- Update to 1.4.1 - -* Sat Jul 23 2022 Jan Drögehoff - 1.4.0-2 -- Recommend gamemode - -* Sat Jul 23 2022 Jan Drögehoff - 1.4.0-1 -- Update to 1.4.0 - -* Wed Jun 15 2022 Jan Drögehoff - 1.3.2-2 -- Fixing OpenSuse Tumbleweed compilation - -* Sun Jun 12 2022 Jan Drögehoff - 1.3.2-1 -- Update to 1.3.2 - -* Mon May 30 2022 Jan Drögehoff - 1.3.1-1 -- Update to 1.3.1 - -* Mon May 23 2022 Jan Drögehoff - 1.3.0-1 -- Update to 1.3.0 - -* Sat May 14 2022 Jan Drögehoff - 1.2.2-1 -- Update to 1.2.2 - -* Mon Apr 25 2022 Jan Drögehoff - 1.2.1-2 -- Correct dependencies for openSUSE - -* Wed Apr 20 2022 Jan Drögehoff - 1.2.1-1 -- Update to 1.2.1 - -* Tue Apr 19 2022 Jan Drögehoff - 1.2.0-1 -- Update to 1.2.0 - -* Tue Apr 19 2022 Jan Drögehoff - 1.1.1-3 -- Correct dependencies for openSuse - -* Wed Apr 06 2022 Jan Drögehoff - 1.1.1-2 -- Add missing dependencies - -* Mon Mar 28 2022 Jan Drögehoff - 1.1.1-1 -- Update to 1.1.1 - -* Wed Mar 16 2022 Jan Drögehoff - 1.1.0-1 -- Update to 1.1.0 - -* Mon Jan 24 2022 Jan Drögehoff - 1.0.5-2 -- remove explicit dependencies, correct dependencies to work on OpenSuse - -* Sun Jan 09 2022 Jan Drögehoff - 1.0.5-1 -- Update to 1.0.5 - -* Sun Jan 09 2022 Jan Drögehoff - 1.0.4-2 -- rework spec - -* Fri Jan 7 2022 getchoo - 1.0.4-1 -- Initial polymc spec diff --git a/anda/games/prismlauncher/prismlauncher.spec b/anda/games/prismlauncher/prismlauncher.spec index fcaaa79365..3f5c43dfde 100644 --- a/anda/games/prismlauncher/prismlauncher.spec +++ b/anda/games/prismlauncher/prismlauncher.spec @@ -1,6 +1,3 @@ -%global fancy_name PrismLauncher -%global real_name prismlauncher -%global repo https://github.com/%{fancy_name}/%{fancy_name} %global tomlplusplus_commit 0a90913abf9390b9e08ab6d3b40ac11634553f38 %bcond_without qt6 @@ -19,10 +16,6 @@ %global build_platform unknown -%if 0%{?suse_version} -%global build_platform openSUSE -%endif - %if 0%{?fedora} %global build_platform Fedora %endif @@ -35,81 +28,52 @@ %global build_platform CentOS %endif -%if %{with qt6} -Name: prismlauncher -%else -Name: prismlauncher-qt5 -%endif -Version: 5.2 -Release: 2%{?dist} -Summary: Minecraft launcher with ability to manage multiple instances -License: GPL-3.0-only -%if 0%{?suse_version} -Group: Amusements/Games/Action/Other -%else -Group: Amusements/Games -%endif -URL: https://prismlauncher.org/ -Source0: %{repo}/releases/download/%{version}/%{fancy_name}-%{version}.tar.gz -Source1: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz -Patch0: fix-disable-FLOAT16-in-toml.patch +Name: prismlauncher +Version: 5.2 +Release: 3%{?dist} +Summary: Minecraft launcher with ability to manage multiple instances +License: GPL-3.0-only +Group: Amusements/Games +URL: https://prismlauncher.org/ +Source0: https://github.com/PrismLauncher/PrismLauncher/releases/download/%{version}/%{name}-%{version}.tar.gz +Source1: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz +Patch0: fix-disable-FLOAT16-in-toml.patch -BuildRequires: cmake >= 3.15 -BuildRequires: extra-cmake-modules -BuildRequires: gcc-c++ -BuildRequires: java-devel - -%if 0%{?suse_version} -BuildRequires: appstream-glib -%else -BuildRequires: libappstream-glib -%endif - -BuildRequires: desktop-file-utils -BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} -BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} +BuildRequires: cmake >= 3.15 +BuildRequires: extra-cmake-modules +BuildRequires: gcc-c++ +BuildRequires: java-devel >= 17 +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: cmake(ghc_filesystem) +BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Network) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Test) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version} +BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version} %if %{with qt6} -BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6Core5Compat) %endif -BuildRequires: pkgconfig(scdoc) -BuildRequires: zlib-devel +BuildRequires: pkgconfig(scdoc) +BuildRequires: pkgconfig(zlib) -# Prism Launcher requires QuaZip >= 1.3 -%if 0%{?suse_version} >= 1550 -BuildRequires: cmake(QuaZip-Qt%{qt_version}) -%endif +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils -%if 0%{?suse_version} -Requires: %{!?with_qt6:lib}qt%{qt_version}-%{!?with_qt6:qt}imageformats -Requires: libQt%{qt_version}Svg%{qt_version} -%else -Requires: qt%{qt_version}-qtimageformats -Requires: qt%{qt_version}-qtsvg -%endif +Requires: qt%{qt_version}-qtimageformats +Requires: qt%{qt_version}-qtsvg +Requires: javapackages-filesystem +Requires: java-headless >= 17 +Requires: java-1.8.0-openjdk-headless -Recommends: java-openjdk-headless # xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 -Recommends: xrandr - +Recommends: xrandr # Prism supports enabling gamemode -%if 0%{?suse_version} -Recommends: gamemoded -%else -Recommends: gamemode -%endif - -%if %{with qt6} -Conflicts: %{real_name}-qt5 -%else -Conflicts: %{real_name} -%endif +Suggests: gamemode %description @@ -118,7 +82,7 @@ multiple installations of Minecraft at once (Fork of MultiMC) %prep -%autosetup -n %{fancy_name}-%{version} +%autosetup -n PrismLauncher-%{version} tar -xzf %{SOURCE1} -C libraries rm -rf libraries/tomlplusplus/* @@ -127,6 +91,7 @@ mv -f libraries/tomlplusplus-%{tomlplusplus_commit}/* libraries/tomlplusplus # Do not set RPATH sed -i "s|\$ORIGIN/||" CMakeLists.txt + %build %cmake \ -DLauncher_QT_VERSION_MAJOR="%{qt_version}" \ @@ -140,52 +105,73 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %cmake_build + %install %cmake_install -%if 0%{?suse_version} > 1500 || 0%{?fedora} > 35 -appstream-util validate-relax --nonet \ - %{buildroot}%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml -%endif %check %ctest + +appstream-util validate-relax --nonet \ + %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml + desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop + +%post +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + + +%postun +/usr/bin/update-desktop-database &> /dev/null || : +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + %files %doc README.md %license LICENSE COPYING.md -%dir %{_datadir}/%{real_name} +%dir %{_datadir}/%{name} %{_bindir}/prismlauncher -%{_datadir}/%{real_name}/NewLaunch.jar -%{_datadir}/%{real_name}/JavaCheck.jar +%{_datadir}/%{name}/NewLaunch.jar +%{_datadir}/%{name}/JavaCheck.jar %{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop -%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml +%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg %{_mandir}/man?/prismlauncher.* %changelog -* Tue Nov 15 2022 seth - 5.2-2 -- use newer version of toml++ +* Mon Dec 05 2022 seth - 5.2-3 +- revise file to better follow fedora packaging guidelines and add java 8 as a + dependency -* Tue Nov 15 2022 root - 5.2-1 -- new version + +* Tue Nov 15 2022 seth - 5.2-2 +- use newer version of toml++ to fix issues on aarch64 + +* Tue Nov 15 2022 seth - 5.2-1 +- update to 5.2 * Thu Nov 10 2022 seth - 5.1-2 - add package to Amusements/Games -* Tue Nov 01 2022 root - 5.1-1 -- new version - -* Wed Oct 19 2022 seth - 5.0-4 -- fix opensuse deps +* Tue Nov 01 2022 seth - 5.1-1 +- update to 5.1 * Wed Oct 19 2022 seth - 5.0-3 - add missing deps and build with qt6 by default * Wed Oct 19 2022 seth - 5.0-2 -- add change-jars-path.patch and allow for building on opensuse +- add change-jars-path.patch to allow for package-specific jar path * Wed Oct 19 2022 seth - 5.0-1 - update to version 5.0 @@ -198,63 +184,3 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.Pri * Tue Oct 18 2022 Cappy Ishihara - 1.4.2-1 - Repackaged as Prism Launcher - -* Thu Sep 08 2022 Jan Drögehoff - 1.4.2-1 -- Update to 1.4.2 - -* Fri Jul 29 2022 Jan Drögehoff - 1.4.1-1 -- Update to 1.4.1 - -* Sat Jul 23 2022 Jan Drögehoff - 1.4.0-2 -- Recommend gamemode - -* Sat Jul 23 2022 Jan Drögehoff - 1.4.0-1 -- Update to 1.4.0 - -* Wed Jun 15 2022 Jan Drögehoff - 1.3.2-2 -- Fixing OpenSuse Tumbleweed compilation - -* Sun Jun 12 2022 Jan Drögehoff - 1.3.2-1 -- Update to 1.3.2 - -* Mon May 30 2022 Jan Drögehoff - 1.3.1-1 -- Update to 1.3.1 - -* Mon May 23 2022 Jan Drögehoff - 1.3.0-1 -- Update to 1.3.0 - -* Sat May 14 2022 Jan Drögehoff - 1.2.2-1 -- Update to 1.2.2 - -* Mon Apr 25 2022 Jan Drögehoff - 1.2.1-2 -- Correct dependencies for openSUSE - -* Wed Apr 20 2022 Jan Drögehoff - 1.2.1-1 -- Update to 1.2.1 - -* Tue Apr 19 2022 Jan Drögehoff - 1.2.0-1 -- Update to 1.2.0 - -* Tue Apr 19 2022 Jan Drögehoff - 1.1.1-3 -- Correct dependencies for openSuse - -* Wed Apr 06 2022 Jan Drögehoff - 1.1.1-2 -- Add missing dependencies - -* Mon Mar 28 2022 Jan Drögehoff - 1.1.1-1 -- Update to 1.1.1 - -* Wed Mar 16 2022 Jan Drögehoff - 1.1.0-1 -- Update to 1.1.0 - -* Mon Jan 24 2022 Jan Drögehoff - 1.0.5-2 -- remove explicit dependencies, correct dependencies to work on OpenSuse - -* Sun Jan 09 2022 Jan Drögehoff - 1.0.5-1 -- Update to 1.0.5 - -* Sun Jan 09 2022 Jan Drögehoff - 1.0.4-2 -- rework spec - -* Fri Jan 7 2022 getchoo - 1.0.4-1 -- Initial polymc spec From c2004c65d8265ad85fca75953ba65234d7a78ab3 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 5 Dec 2022 02:25:07 -0500 Subject: [PATCH 03/13] support auto updating more packages --- anda/adwaita++-icons/chkupdate.py | 27 +++++++++++++++++++ anda/apps/openasar-canary/chkupdate.py | 23 ++++++++++++++++ .../apps/openasar-canary/openasar-canary.spec | 2 ++ .../budgie/budgie-extras/chkupdate.py | 27 +++++++++++++++++++ anda/moby-extras/moby-buildx/chkupdate.py | 27 +++++++++++++++++++ anda/moby-extras/moby-compose/chkupdate.py | 27 +++++++++++++++++++ anda/rust/bat-extras/chkupdate.py | 27 +++++++++++++++++++ anda/rust/pop-launcher/chkupdate.py | 27 +++++++++++++++++++ anda/rust/sccache/chkupdate.py | 27 +++++++++++++++++++ anda/rust/youki/chkupdate.py | 27 +++++++++++++++++++ anda/rust/zellij/chkupdate.py | 27 +++++++++++++++++++ anda/tools/appimagelauncher/chkupdate.py | 27 +++++++++++++++++++ anda/tools/gcm-core/chkupdate.py | 27 +++++++++++++++++++ 13 files changed, 322 insertions(+) create mode 100644 anda/adwaita++-icons/chkupdate.py create mode 100644 anda/apps/openasar-canary/chkupdate.py create mode 100644 anda/desktops/budgie/budgie-extras/chkupdate.py create mode 100644 anda/moby-extras/moby-buildx/chkupdate.py create mode 100644 anda/moby-extras/moby-compose/chkupdate.py create mode 100644 anda/rust/bat-extras/chkupdate.py create mode 100644 anda/rust/pop-launcher/chkupdate.py create mode 100644 anda/rust/sccache/chkupdate.py create mode 100644 anda/rust/youki/chkupdate.py create mode 100644 anda/rust/zellij/chkupdate.py create mode 100644 anda/tools/appimagelauncher/chkupdate.py create mode 100644 anda/tools/gcm-core/chkupdate.py diff --git a/anda/adwaita++-icons/chkupdate.py b/anda/adwaita++-icons/chkupdate.py new file mode 100644 index 0000000000..36fecb566c --- /dev/null +++ b/anda/adwaita++-icons/chkupdate.py @@ -0,0 +1,27 @@ +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}") diff --git a/anda/apps/openasar-canary/chkupdate.py b/anda/apps/openasar-canary/chkupdate.py new file mode 100644 index 0000000000..02e3e48131 --- /dev/null +++ b/anda/apps/openasar-canary/chkupdate.py @@ -0,0 +1,23 @@ +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}") diff --git a/anda/apps/openasar-canary/openasar-canary.spec b/anda/apps/openasar-canary/openasar-canary.spec index c8596ae954..8b60d95c08 100644 --- a/anda/apps/openasar-canary/openasar-canary.spec +++ b/anda/apps/openasar-canary/openasar-canary.spec @@ -1,3 +1,5 @@ +%define commit ad9b161744b27acc5e333ee70df11afca09301ef + Name: openasar-canary Version: nightly.%{autogitdate} Release: 1%{?dist} diff --git a/anda/desktops/budgie/budgie-extras/chkupdate.py b/anda/desktops/budgie/budgie-extras/chkupdate.py new file mode 100644 index 0000000000..76360ad614 --- /dev/null +++ b/anda/desktops/budgie/budgie-extras/chkupdate.py @@ -0,0 +1,27 @@ +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}") diff --git a/anda/moby-extras/moby-buildx/chkupdate.py b/anda/moby-extras/moby-buildx/chkupdate.py new file mode 100644 index 0000000000..b61367dc4b --- /dev/null +++ b/anda/moby-extras/moby-buildx/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "moby-buildx" +REPO = "docker/buildx" +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}") diff --git a/anda/moby-extras/moby-compose/chkupdate.py b/anda/moby-extras/moby-compose/chkupdate.py new file mode 100644 index 0000000000..dd79458b2e --- /dev/null +++ b/anda/moby-extras/moby-compose/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "moby-compose" +REPO = "docker/compose" +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}") diff --git a/anda/rust/bat-extras/chkupdate.py b/anda/rust/bat-extras/chkupdate.py new file mode 100644 index 0000000000..5eaa9bfedc --- /dev/null +++ b/anda/rust/bat-extras/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "bat-extras" +REPO = "eth-p/bat-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}") diff --git a/anda/rust/pop-launcher/chkupdate.py b/anda/rust/pop-launcher/chkupdate.py new file mode 100644 index 0000000000..6b742ea67d --- /dev/null +++ b/anda/rust/pop-launcher/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "pop-launcher" +REPO = "pop-os/launcher" +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" +] + +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}") diff --git a/anda/rust/sccache/chkupdate.py b/anda/rust/sccache/chkupdate.py new file mode 100644 index 0000000000..2f328d6ad9 --- /dev/null +++ b/anda/rust/sccache/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "rust-sccache" +REPO = "mozilla/sccache" +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}") diff --git a/anda/rust/youki/chkupdate.py b/anda/rust/youki/chkupdate.py new file mode 100644 index 0000000000..16b2d6beda --- /dev/null +++ b/anda/rust/youki/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "youki" +REPO = "containers/youki" +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}") diff --git a/anda/rust/zellij/chkupdate.py b/anda/rust/zellij/chkupdate.py new file mode 100644 index 0000000000..078f063ce3 --- /dev/null +++ b/anda/rust/zellij/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "rust-zellij" +REPO = "zellij-org/zellij" +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}") diff --git a/anda/tools/appimagelauncher/chkupdate.py b/anda/tools/appimagelauncher/chkupdate.py new file mode 100644 index 0000000000..76a5b44328 --- /dev/null +++ b/anda/tools/appimagelauncher/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "appimagelauncher" +REPO = "TheAssassin/AppImageLauncher" +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}") diff --git a/anda/tools/gcm-core/chkupdate.py b/anda/tools/gcm-core/chkupdate.py new file mode 100644 index 0000000000..ce4b7159c4 --- /dev/null +++ b/anda/tools/gcm-core/chkupdate.py @@ -0,0 +1,27 @@ +import os +import requests +import re + +NAME = "gcm-core" +REPO = "GitCredentialManager/git-credential-manager" +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}") From 7653e48da9dfd9982d4337a19b7dfbed6af97658 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 5 Dec 2022 03:50:24 -0500 Subject: [PATCH 04/13] [openasar-canary] save commit on auto update this was an L and i probably need sleep --- anda/apps/openasar-canary/chkupdate.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/anda/apps/openasar-canary/chkupdate.py b/anda/apps/openasar-canary/chkupdate.py index 02e3e48131..83da865ca4 100644 --- a/anda/apps/openasar-canary/chkupdate.py +++ b/anda/apps/openasar-canary/chkupdate.py @@ -21,3 +21,10 @@ 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() From 10b0060bc675de1f0436eff16cf92903dab859a7 Mon Sep 17 00:00:00 2001 From: lleyton Date: Mon, 5 Dec 2022 02:06:58 -0800 Subject: [PATCH 05/13] I regret not using a GPG key (#56) --- .github/workflows/update.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 23bf17bd9d..8d3df34430 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,11 +23,8 @@ jobs: fetch-depth: 2 ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_SIGNING_KEY }} - known_hosts: unnecessary + - name: Install SSH signing key + run: echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key - name: Run Update run: bash ./update.sh @@ -41,7 +38,7 @@ jobs: git config user.name "Raboneko" git config user.email "raboneko@fyralabs.com" git config gpg.format "ssh" - git config user.signingkey "${{ secrets.SSH_PUBLIC_SIGNING_KEY }}" + git config user.signingkey "${{ runner.temp }}/signing_key" git commit -S -a -m "Automatic Update: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')" git push -u origin main fi From d799f8ab6112b1248a99c8b6e99185a5af75193d Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Mon, 5 Dec 2022 18:07:46 +0800 Subject: [PATCH 06/13] Fix build (#53) Signed-off-by: windowsboy111 Signed-off-by: windowsboy111 --- .../elementary-screenshot-tool/elementary-screenshot-tool.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/desktops/elementary/elementary-screenshot-tool/elementary-screenshot-tool.spec b/anda/desktops/elementary/elementary-screenshot-tool/elementary-screenshot-tool.spec index e9cec28499..2051c1a3c3 100644 --- a/anda/desktops/elementary/elementary-screenshot-tool/elementary-screenshot-tool.spec +++ b/anda/desktops/elementary/elementary-screenshot-tool/elementary-screenshot-tool.spec @@ -11,7 +11,7 @@ URL: https://github.com/elementary/screenshot Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz # meson: remove deprecated positional arguments from i18n.merge_file calls -Patch1: 0001-meson-remove-deprecated-positional-arguments-from-i1.patch +#Patch1: 0001-meson-remove-deprecated-positional-arguments-from-i1.patch BuildRequires: desktop-file-utils BuildRequires: gettext From 6b2f4d455f366bb8ad8645eda1e0fcf62d61a1c7 Mon Sep 17 00:00:00 2001 From: lleyton Date: Mon, 5 Dec 2022 15:19:36 -0800 Subject: [PATCH 07/13] runner.temp should exist... why doesn't it? (#57) --- .github/workflows/update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 8d3df34430..4184fda302 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -24,7 +24,9 @@ jobs: ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} - name: Install SSH signing key - run: echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key + run: | + mkdir -p ${{ runner.temp }} + echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key - name: Run Update run: bash ./update.sh From 5d76a6599233e9b1a68eb8f80c15e928865fc32f Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 5 Dec 2022 23:43:41 +0000 Subject: [PATCH 08/13] set strict permissions for signing key Signed-off-by: seth --- .github/workflows/update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 4184fda302..e096a8fd1a 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -27,6 +27,7 @@ jobs: run: | 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 From 6271809f57d21230f3dc3b5d33b1d2b4dda06594 Mon Sep 17 00:00:00 2001 From: Raboneko Date: Tue, 6 Dec 2022 00:54:50 +0000 Subject: [PATCH 09/13] Automatic Update: prismlauncher-nightly prismlauncher-qt5-nightly moby-compose gcm-core --- anda/games/prismlauncher-nightly/prismlauncher-nightly.spec | 2 +- .../prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec | 2 +- anda/moby-extras/moby-compose/moby-compose.spec | 5 ++++- anda/tools/gcm-core/gcm-core.spec | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 8c6fe5500c..005e62e50a 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 79d5beff8d45d9a66cfa91393167fc79d3a155a9 +%global commit b29c99656e43a11cfb4397230b6ec7192d15215f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index 925d643e73..cc5f608e61 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 79d5beff8d45d9a66cfa91393167fc79d3a155a9 +%global commit b29c99656e43a11cfb4397230b6ec7192d15215f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/moby-extras/moby-compose/moby-compose.spec b/anda/moby-extras/moby-compose/moby-compose.spec index 8658883ca1..62fe0c20db 100644 --- a/anda/moby-extras/moby-compose/moby-compose.spec +++ b/anda/moby-extras/moby-compose/moby-compose.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: moby-compose -Version: 2.11.2 +Version: 2.14.0 Release: 1%{?dist} Summary: Define and run multi-container applications with Docker @@ -39,5 +39,8 @@ install -m 0755 bin/build/docker-compose %{buildroot}%{_libexecdir}/docker/cli-p %{_libexecdir}/docker/cli-plugins/docker-compose %changelog +* Tue Dec 06 2022 root - 2.14.0-1 +- new version + * Tue Oct 04 2022 Cappy Ishihara - Initial Release diff --git a/anda/tools/gcm-core/gcm-core.spec b/anda/tools/gcm-core/gcm-core.spec index 269c1a2826..469396b6b3 100644 --- a/anda/tools/gcm-core/gcm-core.spec +++ b/anda/tools/gcm-core/gcm-core.spec @@ -5,7 +5,7 @@ %global forgeurl https://github.com/GitCredentialManager/git-credential-manager Name: gcm-core -Version: 2.0.785 +Version: 2.0.877 %forgemeta -i Release: 1%{?dist} Summary: Secure, cross-platform Git credential storage @@ -45,5 +45,8 @@ install -D -m 755 out/linux/Packaging.Linux/payload/Release/%{long_name}-core %{ %changelog +* Tue Dec 06 2022 root - Packaging variables read or set by %forgemeta +- new version + * Sat Oct 22 2022 Cappy Ishihara - From 0b3175176ac5807a41faab6839d1d84c8e63243d Mon Sep 17 00:00:00 2001 From: Raboneko Date: Tue, 6 Dec 2022 02:16:18 +0000 Subject: [PATCH 10/13] Automatic Update: elementary-camera --- .../elementary/elementary-camera/elementary-camera.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/anda/desktops/elementary/elementary-camera/elementary-camera.spec b/anda/desktops/elementary/elementary-camera/elementary-camera.spec index b97803dd25..2ef39495d9 100644 --- a/anda/desktops/elementary/elementary-camera/elementary-camera.spec +++ b/anda/desktops/elementary/elementary-camera/elementary-camera.spec @@ -3,8 +3,8 @@ Name: elementary-camera Summary: Camera app designed for elementary -Version: 6.2.0 -Release: 2%{?dist} +Version: 6.2.1 +Release: 1%{?dist} License: GPLv3 URL: https://github.com/elementary/camera @@ -68,5 +68,8 @@ appstream-util validate-relax --nonet \ %changelog +* Tue Dec 06 2022 root - 6.2.1-1 +- new version + * Sat Oct 15 2022 windowsboy111 - Repackaged for Terra From e9fcd6e2fee38766a370e60d2169a35ea57948fa Mon Sep 17 00:00:00 2001 From: Raboneko Date: Tue, 6 Dec 2022 03:05:47 +0000 Subject: [PATCH 11/13] Automatic Update: libhelium --- anda/lib/libhelium/libhelium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anda/lib/libhelium/libhelium.spec b/anda/lib/libhelium/libhelium.spec index 9ac2453f7d..633ea3ae19 100644 --- a/anda/lib/libhelium/libhelium.spec +++ b/anda/lib/libhelium/libhelium.spec @@ -1,6 +1,6 @@ Summary: The Application Framework for tauOS apps Name: libhelium -Version: 1.1.6 +Version: 1.1.7 Release: 1%{?dist} License: GPLv3 URL: https://github.com/tau-OS/libhelium @@ -66,6 +66,9 @@ rm -rf %{buildroot}%{_datadir}/themes/* %{_datadir}/vala/* %changelog +* Tue Dec 06 2022 root - 1.1.7-1 +- new version + * Sat Nov 19 2022 root - 1.1.6-1 - new version From 61bce94753a93f41dee1a874bb2a83877771274a Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 5 Dec 2022 22:11:42 -0500 Subject: [PATCH 12/13] [prismlauncher] support EPEL and F35 (again) --- anda/games/prismlauncher-nightly/prismlauncher-nightly.spec | 6 ++++-- .../prismlauncher-qt5-nightly.spec | 6 ++++-- anda/games/prismlauncher-qt5/prismlauncher-qt5.spec | 6 ++++-- anda/games/prismlauncher/prismlauncher.spec | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 005e62e50a..122096b991 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -30,11 +30,11 @@ %global build_platform Fedora %endif -%if 0%{?rhel_version} +%if 0%{?rhel} %global build_platform RedHat %endif -%if 0%{?centos_version} +%if 0%{?centos} %global build_platform CentOS %endif @@ -132,8 +132,10 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check %ctest +%if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml +%endif desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index cc5f608e61..47c5801355 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -30,11 +30,11 @@ %global build_platform Fedora %endif -%if 0%{?rhel_version} +%if 0%{?rhel} %global build_platform RedHat %endif -%if 0%{?centos_version} +%if 0%{?centos} %global build_platform CentOS %endif @@ -133,8 +133,10 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check %ctest +%if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml +%endif desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop diff --git a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec index e3824bba0e..eed0727ec7 100644 --- a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec +++ b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec @@ -21,11 +21,11 @@ %global build_platform Fedora %endif -%if 0%{?rhel_version} +%if 0%{?rhel} %global build_platform RedHat %endif -%if 0%{?centos_version} +%if 0%{?centos} %global build_platform CentOS %endif @@ -116,8 +116,10 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check %ctest +%if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml +%endif desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop diff --git a/anda/games/prismlauncher/prismlauncher.spec b/anda/games/prismlauncher/prismlauncher.spec index 3f5c43dfde..6b6204c4e8 100644 --- a/anda/games/prismlauncher/prismlauncher.spec +++ b/anda/games/prismlauncher/prismlauncher.spec @@ -20,11 +20,11 @@ %global build_platform Fedora %endif -%if 0%{?rhel_version} +%if 0%{?rhel} %global build_platform RedHat %endif -%if 0%{?centos_version} +%if 0%{?centos} %global build_platform CentOS %endif @@ -113,8 +113,10 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check %ctest +%if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml +%endif desktop-file-validate %{buildroot}%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop From 43145fe224136528c6c0f2a4e93b4e87b13fef65 Mon Sep 17 00:00:00 2001 From: Raboneko Date: Tue, 6 Dec 2022 04:13:53 +0000 Subject: [PATCH 13/13] Automatic Update: libhelium --- anda/lib/libhelium/libhelium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anda/lib/libhelium/libhelium.spec b/anda/lib/libhelium/libhelium.spec index 633ea3ae19..ad0c24590c 100644 --- a/anda/lib/libhelium/libhelium.spec +++ b/anda/lib/libhelium/libhelium.spec @@ -1,6 +1,6 @@ Summary: The Application Framework for tauOS apps Name: libhelium -Version: 1.1.7 +Version: 1.2.0 Release: 1%{?dist} License: GPLv3 URL: https://github.com/tau-OS/libhelium @@ -66,6 +66,9 @@ rm -rf %{buildroot}%{_datadir}/themes/* %{_datadir}/vala/* %changelog +* Tue Dec 06 2022 root - 1.2.0-1 +- new version + * Tue Dec 06 2022 root - 1.1.7-1 - new version