-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
project pkg { | ||
arches = ["x86_64"] | ||
rpm { | ||
spec = "choosenim.spec" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> - 0.8.4-3 | ||
- Use nim to compile instead of prebuilt binaries. | ||
|
||
* Mon Jan 9 2023 windowsboy111 <[email protected]> - 0.8.4-1 | ||
- Initial Package. | ||
%autochangelog |