diff --git a/anda/langs/nim/choosenim/anda.hcl b/anda/langs/nim/choosenim/anda.hcl index be890ad9a7..cb2ab6dcaa 100644 --- a/anda/langs/nim/choosenim/anda.hcl +++ b/anda/langs/nim/choosenim/anda.hcl @@ -1,4 +1,5 @@ project pkg { + arches = ["x86_64"] rpm { spec = "choosenim.spec" } diff --git a/anda/langs/nim/choosenim/choosenim.spec b/anda/langs/nim/choosenim/choosenim.spec index add2066214..0ca619214d 100644 --- a/anda/langs/nim/choosenim/choosenim.spec +++ b/anda/langs/nim/choosenim/choosenim.spec @@ -5,29 +5,27 @@ Summary: Easily install and manage multiple versions of the Nim programming lan License: BSD-3-Clause URL: https://github.com/dom96/choosenim Source0: %url/archive/refs/tags/v%version.tar.gz -BuildRequires: nim mold +BuildRequires: nim git %description choosenim installs the Nim programming language from official downloads and sources, enabling you to easily switch between stable and development compilers. %prep -%autosetup -n choosenim-%version +%autosetup %build +nimble setup -y +nim c -t:-fPIE -l:-pie -d:release -t:"$CFLAGS" -l:"$LDFLAGS" src/choosenim %install -mold -run nimble build -t:-fPIE -l:-pie +install -Dm755 src/choosenim %buildroot%_bindir/choosenim %files %doc readme.md %license LICENSE -%{_bindir}/choosenim +%_bindir/choosenim %changelog -* Sat Jun 17 2023 windowsboy111 - 0.8.4-3 -- Use nim to compile instead of prebuilt binaries. - -* Mon Jan 9 2023 windowsboy111 - 0.8.4-1 -- Initial Package. +%autochangelog