mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* add: nimble
Sequel to #1245
* Update nimble.spec
* Update nim-nightly.spec
---------
(cherry picked from commit 5de302be3b)
Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "nimble.spec"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("nim-lang/nimble"));
|
||||
Reference in New Issue
Block a user