diff --git a/anda/dart/dart.spec b/anda/dart/dart.spec index 23ea45e76c..3031ddb9b3 100644 --- a/anda/dart/dart.spec +++ b/anda/dart/dart.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: dart -Version: 2.19.1 +Version: 2.19.2 Release: 1%{?dist} Summary: The Dart Language License: BSD-3-Clause diff --git a/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec b/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec index 55b90a78ec..e439051bcc 100644 --- a/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec +++ b/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec @@ -1,6 +1,6 @@ %global forgeurl https://github.com/KDE/latte-dock/ -%global commit 9fbafbfbb4e85d5851bf356915f1c5a3f32ddabd +%global commit 63043c0b3442185fa1031154c7969a0488be4f8b %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_date %(date '+%Y%m%d') %global snapshot_info %{commit_date}.%{shortcommit} diff --git a/anda/games/opsu/opsu.spec b/anda/games/opsu/opsu.spec index e5c3770b0e..e5ab3480d5 100644 --- a/anda/games/opsu/opsu.spec +++ b/anda/games/opsu/opsu.spec @@ -12,10 +12,11 @@ Requires: java-latest-openjdk hicolor-icon-theme xrandr Recommends: ffmpeg BuildArch: noarch - %description opsu! is an unofficial open-source client for the rhythm game osu!, written in Java using Slick2D and LWJGL (wrappers around OpenGL and OpenAL). +%prep + %build cat < %{name}.sh #!/bin/sh diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 0d1730d309..c13b2f4a74 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 f36c3a3f6c795f1aa6b3dc9ff6f151b077531aaa +%global commit 5883c30b842cf275d4e9700551b8e762f55be287 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 @@ -136,7 +136,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check ## disabled due to inconsistent results in copr builds that are not reproducible locally -# %ctest +%dnl %ctest %if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index 99c2ead78d..61fc9cab85 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 f36c3a3f6c795f1aa6b3dc9ff6f151b077531aaa +%global commit 5883c30b842cf275d4e9700551b8e762f55be287 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 @@ -137,7 +137,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check ## disabled due to inconsistent results in copr builds that are not reproducible locally -# %ctest +%dnl %ctest %if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ diff --git a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec index 456b44e255..bb90e80d5c 100644 --- a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec +++ b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec @@ -113,7 +113,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check ## disabled due to inconsistent results in copr builds that are not reproducible locally -# %ctest +%dnl %ctest %if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ diff --git a/anda/games/prismlauncher/prismlauncher.spec b/anda/games/prismlauncher/prismlauncher.spec index 20034da410..655c647f40 100644 --- a/anda/games/prismlauncher/prismlauncher.spec +++ b/anda/games/prismlauncher/prismlauncher.spec @@ -110,7 +110,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt %check ## disabled due to inconsistent results in copr builds that are not reproducible locally -# %ctest +%dnl %ctest %if 0%{?fedora} > 35 appstream-util validate-relax --nonet \ diff --git a/anda/go/xyproto-env/golang-github-xyproto-env.spec b/anda/go/xyproto-env/golang-github-xyproto-env.spec index c2ded7cf3c..9ab0926a9c 100644 --- a/anda/go/xyproto-env/golang-github-xyproto-env.spec +++ b/anda/go/xyproto-env/golang-github-xyproto-env.spec @@ -4,7 +4,7 @@ # https://github.com/xyproto/env %global goipath github.com/xyproto/env -Version: 1.8.0 +Version: 1.9.1 # REMOVE BEFORE SUBMITTING THIS FOR REVIEW # --- @@ -25,7 +25,7 @@ Provide default values when fetching environment variables.} %global godocs README.md Name: golang-%{goname} -Release: %autorelease +Release: 1%{?dist} Summary: Provide default values when fetching environment variables License: BSD-3-Clause @@ -42,6 +42,8 @@ Source: %{gosource} %generate_buildrequires %go_generate_buildrequires +%build + %install %gopkginstall diff --git a/anda/go/xyproto-env/update.rhai b/anda/go/xyproto-env/update.rhai index d4bb0c43a3..fd71963ab8 100644 --- a/anda/go/xyproto-env/update.rhai +++ b/anda/go/xyproto-env/update.rhai @@ -1 +1 @@ -rpm.version(gh("xyproto/env")); +rpm.version(gh_tag("xyproto/env")); diff --git a/anda/go/xyproto-textoutput/update.rhai b/anda/go/xyproto-textoutput/update.rhai index 833227bdaa..7a7f25cbb7 100644 --- a/anda/go/xyproto-textoutput/update.rhai +++ b/anda/go/xyproto-textoutput/update.rhai @@ -1 +1 @@ -rpm.version(gh("xyproto/textoutput")); +rpm.version(gh_tag("xyproto/textoutput")); diff --git a/anda/go/xyproto-vt100/update.rhai b/anda/go/xyproto-vt100/update.rhai index 4b9f0ef2b6..6a78d4692e 100644 --- a/anda/go/xyproto-vt100/update.rhai +++ b/anda/go/xyproto-vt100/update.rhai @@ -1 +1 @@ -rpm.version(gh("xyproto/vt100")); +rpm.version(gh_tag("xyproto/vt100")); diff --git a/anda/go/yhat-scrape/golang-github-yhat-scrape.spec b/anda/go/yhat-scrape/golang-github-yhat-scrape.spec index 4dd8f2dd9c..4bbf91a224 100644 --- a/anda/go/yhat-scrape/golang-github-yhat-scrape.spec +++ b/anda/go/yhat-scrape/golang-github-yhat-scrape.spec @@ -43,6 +43,8 @@ Source: %{gosource} %generate_buildrequires %go_generate_buildrequires +%build + %install %gopkginstall diff --git a/anda/groovy/groovy-docs/groovy-docs.spec b/anda/groovy/groovy-docs/groovy-docs.spec index 1d696e6457..a0c29cf37d 100644 --- a/anda/groovy/groovy-docs/groovy-docs.spec +++ b/anda/groovy/groovy-docs/groovy-docs.spec @@ -1,5 +1,5 @@ Name: groovy-docs -Version: 3.0.9 +Version: 4.0.9 Release: 1%{?dist} Summary: Documentation for the Groovy programming language URL: https://groovy-lang.org/ diff --git a/anda/groovy/groovy-docs/update.rhai b/anda/groovy/groovy-docs/update.rhai new file mode 100644 index 0000000000..1b24099d2c --- /dev/null +++ b/anda/groovy/groovy-docs/update.rhai @@ -0,0 +1,4 @@ +let ver = gh_tag("apache/groovy"); +ver.replace("GROOVY_", ""); +ver.replace("_", "."); +rpm.version(ver); diff --git a/anda/groovy/groovy.spec b/anda/groovy/groovy.spec index 00ac9a4173..98def73e1e 100644 --- a/anda/groovy/groovy.spec +++ b/anda/groovy/groovy.spec @@ -1,5 +1,5 @@ Name: groovy -Version: 4.0.7 +Version: 4.0.9 Release: 1%{?dist} Summary: A multi-faceted language for the Java platform BuildArch: noarch diff --git a/anda/groovy/update.rhai b/anda/groovy/update.rhai new file mode 100644 index 0000000000..1b24099d2c --- /dev/null +++ b/anda/groovy/update.rhai @@ -0,0 +1,4 @@ +let ver = gh_tag("apache/groovy"); +ver.replace("GROOVY_", ""); +ver.replace("_", "."); +rpm.version(ver); diff --git a/anda/lib/libhelium/libhelium.spec b/anda/lib/libhelium/libhelium.spec index 9af7da7213..5411a11fd7 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.3.57 +Version: 1.3.60 Release: 1%{?dist} License: GPLv3 URL: https://github.com/tau-OS/libhelium diff --git a/anda/others/tau-helium/tau-helium.spec b/anda/others/tau-helium/tau-helium.spec index 483c0ddd1f..9c964562b0 100644 --- a/anda/others/tau-helium/tau-helium.spec +++ b/anda/others/tau-helium/tau-helium.spec @@ -1,6 +1,6 @@ Summary: tauOS GTK/GNOME Shell Themes Name: tau-helium -Version: 1.2.204 +Version: 1.2.220 Release: 1%{?dist} License: GPLv3 URL: https://github.com/tau-OS/tau-helium diff --git a/anda/python/orjson/python3-orjson.spec b/anda/python/orjson/python3-orjson.spec index f2cd95a18a..30eefeca67 100644 --- a/anda/python/orjson/python3-orjson.spec +++ b/anda/python/orjson/python3-orjson.spec @@ -1,8 +1,8 @@ %global debug_package %{nil} Name: python3-orjson -Version: 3.8.5 -Release: 2%{?dist} +Version: 3.8.6 +Release: 1%{?dist} Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy License: MIT or APACHE-2.0 URL: https://github.com/ijl/orjson diff --git a/anda/python/ruff/python3-ruff.spec b/anda/python/ruff/python3-ruff.spec index 9b58b9a1fd..daf76a0255 100644 --- a/anda/python/ruff/python3-ruff.spec +++ b/anda/python/ruff/python3-ruff.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: python3-ruff -Version: 0.0.243 +Version: 0.0.244 Release: 1%{?dist} Summary: An extremely fast Python linter, written in Rust License: MIT diff --git a/anda/rust/gitoxide/anda.hcl b/anda/rust/gitoxide/anda.hcl new file mode 100644 index 0000000000..1b3582f702 --- /dev/null +++ b/anda/rust/gitoxide/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-gitoxide.spec" + } +} diff --git a/anda/rust/gitoxide/rust-gitoxide.spec b/anda/rust/gitoxide/rust-gitoxide.spec new file mode 100644 index 0000000000..74483e2e12 --- /dev/null +++ b/anda/rust/gitoxide/rust-gitoxide.spec @@ -0,0 +1,51 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate gitoxide + +Name: rust-gitoxide +Version: 0.21.0 +Release: 1%{?dist} +Summary: Command-line application for interacting with git repositories + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gitoxide +Source: %{crates_source} + +BuildRequires: openssl-devel cmake anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Command-line application for interacting with git repositories.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE +%license LICENSE-MIT +%doc CHANGELOG.md +%doc README.md +%{_bindir}/ein +%{_bindir}/gix + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/gitoxide/update.rhai b/anda/rust/gitoxide/update.rhai new file mode 100644 index 0000000000..4d5f8eec24 --- /dev/null +++ b/anda/rust/gitoxide/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("gitoxide")); diff --git a/anda/rust/gping/anda.hcl b/anda/rust/gping/anda.hcl new file mode 100644 index 0000000000..dd6694d15b --- /dev/null +++ b/anda/rust/gping/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-gping.spec" + } +} diff --git a/anda/rust/gping/rust-gping.spec b/anda/rust/gping/rust-gping.spec new file mode 100644 index 0000000000..8d729f692c --- /dev/null +++ b/anda/rust/gping/rust-gping.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate gping + +Name: rust-gping +Version: 1.8.0 +Release: %autorelease +Summary: Ping, but with a graph + +License: MIT +URL: https://crates.io/crates/gping +Source: %{crates_source} + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Ping, but with a graph.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +# FIXME: no license files detected +%doc readme.md +%{_bindir}/gping + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +# FIXME: no license files detected +%doc %{crate_instdir}/readme.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/gping/update.rhai b/anda/rust/gping/update.rhai new file mode 100644 index 0000000000..75984a758e --- /dev/null +++ b/anda/rust/gping/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("gping")); diff --git a/anda/rust/hyperfine/anda.hcl b/anda/rust/hyperfine/anda.hcl new file mode 100644 index 0000000000..8ebddb2ab8 --- /dev/null +++ b/anda/rust/hyperfine/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-hyperfine.spec" + } +} diff --git a/anda/rust/hyperfine/hyperfine-fix-metadata-auto.diff b/anda/rust/hyperfine/hyperfine-fix-metadata-auto.diff new file mode 100644 index 0000000000..7f96e53798 --- /dev/null +++ b/anda/rust/hyperfine/hyperfine-fix-metadata-auto.diff @@ -0,0 +1,25 @@ +--- hyperfine-1.15.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ hyperfine-1.15.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -96,9 +96,6 @@ + [features] + windows_process_extensions_main_thread_handle = [] + +-[target."cfg(all(windows, not(windows_process_extensions_main_thread_handle)))".dependencies.once_cell] +-version = "1.14" +- + [target."cfg(not(windows))".dependencies.libc] + version = "0.2" + +@@ -106,12 +103,3 @@ + version = "0.25.0" + features = ["zerocopy"] + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = [ +- "processthreadsapi", +- "minwindef", +- "winnt", +- "jobapi2", +- "tlhelp32", +-] diff --git a/anda/rust/hyperfine/rust-hyperfine.spec b/anda/rust/hyperfine/rust-hyperfine.spec new file mode 100644 index 0000000000..5098115277 --- /dev/null +++ b/anda/rust/hyperfine/rust-hyperfine.spec @@ -0,0 +1,53 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate hyperfine + +Name: rust-hyperfine +Version: 1.15.0 +Release: %autorelease +Summary: Command-line benchmarking tool + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/hyperfine +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: hyperfine-fix-metadata-auto.diff + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Command-line benchmarking tool.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE +%license LICENSE-MIT +%doc CHANGELOG.md +%doc README.md +%{_bindir}/hyperfine + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/hyperfine/update.rhai b/anda/rust/hyperfine/update.rhai new file mode 100644 index 0000000000..5942d0c4db --- /dev/null +++ b/anda/rust/hyperfine/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("hyperfine")); diff --git a/anda/rust/ouch/anda.hcl b/anda/rust/ouch/anda.hcl new file mode 100644 index 0000000000..002c75e303 --- /dev/null +++ b/anda/rust/ouch/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-ouch.spec" + } +} diff --git a/anda/rust/ouch/ouch-fix-metadata-auto.diff b/anda/rust/ouch/ouch-fix-metadata-auto.diff new file mode 100644 index 0000000000..020d0442d4 --- /dev/null +++ b/anda/rust/ouch/ouch-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -155,9 +155,6 @@ + "zstd/thin", + ] + +-[target."cfg(not(unix))".dependencies.is_executable] +-version = "1.0.1" +- + [target."cfg(unix)".dependencies.time] + version = "0.3.17" + default-features = false diff --git a/anda/rust/ouch/rust-ouch.spec b/anda/rust/ouch/rust-ouch.spec new file mode 100644 index 0000000000..7819c6a8b2 --- /dev/null +++ b/anda/rust/ouch/rust-ouch.spec @@ -0,0 +1,53 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate ouch + +Name: rust-ouch +Version: 0.4.1 +Release: %autorelease +Summary: Command-line utility for easily compressing and decompressing files and directories + +License: MIT +URL: https://crates.io/crates/ouch +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: ouch-fix-metadata-auto.diff + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Command-line utility for easily compressing and decompressing files and +directories.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc CHANGELOG.md +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/ouch + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/ouch/update.rhai b/anda/rust/ouch/update.rhai new file mode 100644 index 0000000000..f247e06460 --- /dev/null +++ b/anda/rust/ouch/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("ouch")); diff --git a/anda/rust/typeracer/anda.hcl b/anda/rust/typeracer/anda.hcl new file mode 100644 index 0000000000..d836b764a4 --- /dev/null +++ b/anda/rust/typeracer/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-typeracer.spec" + } +} diff --git a/anda/rust/typeracer/rust-typeracer.spec b/anda/rust/typeracer/rust-typeracer.spec new file mode 100644 index 0000000000..8091e78195 --- /dev/null +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -0,0 +1,50 @@ +%global debug_package %{nil} + +# Generated by rust2rpm 23 +%bcond_without check + +%global crate typeracer + +Name: rust-typeracer +Version: 2.1.2 +Release: %autorelease +Summary: Terminal typing game + +License: GPL-3.0 +URL: https://crates.io/crates/typeracer +Source: %{crates_source} + +BuildRequires: perl openssl-devel anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Terminal typing game. Race to see the fastest time you can get!.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +# FIXME: no license files detected +%doc README.md +%{_bindir}/typeracer + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/typeracer/update.rhai b/anda/rust/typeracer/update.rhai new file mode 100644 index 0000000000..1302013208 --- /dev/null +++ b/anda/rust/typeracer/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("typeracer")); diff --git a/anda/tools/graalvm/anda.hcl b/anda/tools/graalvm/anda.hcl new file mode 100644 index 0000000000..fda374c565 --- /dev/null +++ b/anda/tools/graalvm/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "graalvm.spec" + } +} diff --git a/anda/tools/graalvm/graalvm.spec b/anda/tools/graalvm/graalvm.spec new file mode 100644 index 0000000000..3b1dc8316b --- /dev/null +++ b/anda/tools/graalvm/graalvm.spec @@ -0,0 +1,72 @@ +%global gsummary Universal virtual machine for running applications written in a variety of languages +%ifarch x86_64 +%global garch amd64 +%elifarch aarch64 +%global garch aarch64 +%endif +%global desc GraalVM is a high-performance JDK distribution designed to accelerate the execution of applications written in Java and other JVM languages along with support for JavaScript, Ruby, Python, and a number of other popular languages. + +Name: graalvm +Version: 22.3.1 +Release: 1%{?dist} +URL: https://www.graalvm.org/ +Summary: %{gsummary} +License: GPLv2 + +%description +%{desc} + +%define _p(v) %{expand: +%package jdk%1 +Source%1: https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-%{version}/graalvm-ce-java%1-linux-%{garch}-%{version}.tar.gz +Summary: %{gsummary} (JDK %1) +%description jdk%1 +%{desc} +JDK Version: %1 +} + +%_p 11 +%_p 17 +%_p 19 + +%prep +tar -xzf %{SOURCE11} +tar -xzf %{SOURCE17} +tar -xzf %{SOURCE19} +ls + +mv graalvm-ce-java11-%{version}/GRAALVM-README.md . + + +%build + +%install +%define _i(v) %{expand: + cd graalvm-ce-java%1-%{version} + mkdir -p %{buildroot}/usr/lib/jvm/java-%1-graalvm/ %{buildroot}/usr/share/licenses/%{name}-jdk%1 + cp -a -t %{buildroot}/usr/lib/jvm/java-%1-graalvm/ * + install -DTm644 LICENSE.txt %{buildroot}/usr/share/licenses/%{name}-jdk%1/LICENSE + cd .. +} +%_i 11 +%_i 17 +%_i 19 + +%files jdk11 +%doc GRAALVM-README.md +%license LICENSE +/usr/lib/jvm/java-11-graalvm/ + +%files jdk17 +%doc GRAALVM-README.md +%license LICENSE +/usr/lib/jvm/java-17-graalvm/ + +%files jdk19 +%doc GRAALVM-README.md +%license LICENSE +/usr/lib/jvm/java-19-graalvm/ + +%changelog +* Thu Feb 9 2023 windowsboy111 +- Initial package diff --git a/anda/tools/graalvm/update.rhai b/anda/tools/graalvm/update.rhai new file mode 100644 index 0000000000..631927fa8f --- /dev/null +++ b/anda/tools/graalvm/update.rhai @@ -0,0 +1,3 @@ +let ver = gh("graalvm/graalvm-ce-builds"); +ver.crop(2); +rpm.version(ver); diff --git a/anda/tools/gradle/gradle.spec b/anda/tools/gradle/gradle.spec index e7ebe5ac40..ab2e32d015 100644 --- a/anda/tools/gradle/gradle.spec +++ b/anda/tools/gradle/gradle.spec @@ -3,12 +3,11 @@ Version: 7.6.0 Release: 1%{?dist} Summary: Powerful build system for the JVM URL: https://gradle.org/ -Source0: https://github.com/gradle/gradle/archive/refs/tags/v%{version}.tar.gz -Source2: https://raw.githubusercontent.com/gradle/gradle/v%{version}/LICENSE -Source3: https://raw.githubusercontent.com/gradle/gradle/v%{version}/README.md +Source0: https://services.gradle.org/distributions/%{name}-%{version}-src.zip +Source1: https://services.gradle.org/distributions/%{name}-%{version}-all.zip License: Apache-2.0 Requires: java-latest-openjdk coreutils findutils sed which bash -BuildRequires: java-11-openjdk asciidoc xmlto groovy +BuildRequires: java-11-openjdk-devel asciidoc xmlto groovy unzip git BuildArch: noarch Recommends: gradle-doc gradle-src @@ -30,9 +29,14 @@ Sources for gradle, a powerful build system for the JVM. # See PKGBUILD on Arch Linux %prep -%autosetup +unzip %{SOURCE1} %{name}-%{version}/{README,LICENSE} +mv %{name}-%{version}/README . +mv %{name}-%{version}/LICENSE . +rmdir %{name}-%{version} +unzip %{SOURCE0} +cd %{name}-%{version} -cat < gradle.sh +cat < dist/gradle.sh #!/bin/sh export GRADLE_HOME=/usr/share/java/gradle EOF @@ -44,11 +48,12 @@ sed -i '/JvmVendorSpec.ADOPTIUM/d' \ subprojects/docs/src/snippets/java/toolchain-filters/kotlin/build.gradle.kts \ build-logic-commons/gradle-plugin/src/main/kotlin/common.kt # inhibit automatic download of binary gradle -sed -i "s#distributionUrl=.*#distributionUrl=file\:${srcdir}/${pkgbase}-${pkgver}-all.zip#" \ +sed -i "s#distributionUrl=.*#distributionUrl=file\:%{SOURCE1}#" \ gradle/wrapper/gradle-wrapper.properties %build +cd %{name}-%{version} export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}" ./gradlew installAll \ -Porg.gradle.java.installations.auto-download=false \ @@ -58,7 +63,7 @@ export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}" %install -cd dist +cd %{name}-%{version}/dist # install profile.d script install -Dm755 gradle.sh %{buildroot}/etc/profile.d/ @@ -98,19 +103,19 @@ install -Dm644 %{SOURCE3} %{buildroot}/%{_datadir}/doc/%{name}-src/ %files -%doc README.md +%doc README %license LICENSE /etc/profile.d/gradle.sh /usr/share/java/%{name}/ /usr/bin/%{name} %files doc -%doc README.md +%doc README %license LICENSE /usr/share/java/gradle/docs %files src -%doc README.md +%doc README %license LICENSE /usr/share/java/gradle/src