add: nimble (#3960)

* add: nimble

Sequel to #1245

* Update nimble.spec

Signed-off-by: madomado <madonuko@outlook.com>

* Update nim-nightly.spec

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2025-06-15 21:56:57 +08:00
committed by GitHub
parent c6fc58f4d6
commit 5de302be3b
5 changed files with 43 additions and 3 deletions
+2 -3
View File
@@ -14,7 +14,6 @@ URL: https://nim-lang.org
Source0: https://github.com/nim-lang/Nim/archive/%commit.tar.gz
Source1: nim.1
Source2: nimgrep.1
Source3: nimble.1
Source4: nimsuggest.1
BuildRequires: gcc mold git gcc-c++ nodejs openssl-devel pkgconfig(bash-completion) gc-devel pcre pcre-devel
Requires: redhat-rpm-config gcc
@@ -104,7 +103,7 @@ mkdir -p %buildroot/%_bindir %buildroot/%_datadir/bash-completion/completions %b
install -Dpm755 bin/nim{grep,suggest,pretty} %buildroot/%_bindir
install -Dpm644 tools/nim.bash-completion %buildroot/%_datadir/bash-completion/completions/nim
install -Dpm644 dist/nimble/nimble.bash-completion %buildroot/%_datadir/bash-completion/completions/nimble
install -Dpm644 -t%buildroot/%_mandir/man1 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4
install -Dpm644 -t%buildroot/%_mandir/man1 %SOURCE1 %SOURCE2 %SOURCE4
mv %buildroot%_bindir/nim %buildroot%_datadir/
ln -s %_datadir/nim/bin/nim %buildroot%_bindir/nim
@@ -133,7 +132,7 @@ cp -r %buildroot%_prefix/lib/nim/dist %buildroot%_datadir/nim/
%license copying.txt dist/nimble/license.txt
%doc doc/readme.txt
%_bindir/nim{,ble}
%_mandir/man1/nim{,ble}.1*
%_mandir/man1/nim.1.*
%_datadir/bash-completion/completions/nim{,ble}
%_datadir/nim/
%_prefix/lib/nim/
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nimble.spec"
}
}
+35
View File
@@ -0,0 +1,35 @@
Name: nimble
Version: 0.14.2
Release: 1%?dist
Summary: Package manager for the Nim programming language
License: BSD
URL: https://github.com/nim-lang/nimble
Source0: %url/archive/refs/tags/v%version.tar.gz
Source1: nimble.1
# We use `nim` to get `nimble`… to build `nimble`
BuildRequires: nim anda-srpm-macros git-core rpm_macro(bash_completions_dir)
Conflicts: nim
%description
%summary.
%prep
%autosetup
%nim_prep
%build
%nim_build src/nimble
%install
install -Dpm755 src/nimble %buildroot%_bindir/nimble
install -Dpm644 -t%buildroot%_mandir/man1 %SOURCE1
install -Dpm644 nimble.bash-completion %buildroot%bash_completions_dir/nimble
install -Dpm644 nimble.zsh-completion %buildroot%zsh_completions_dir/_nimble.zsh
%files
%doc readme.markdown
%license license.txt
%_bindir/nimble
%_mandir/man1/nimble.1.gz
%bash_completions_dir/nimble
%zsh_completions_dir/_nimble.zsh
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("nim-lang/nimble"));