File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ %global debug_package %{nil }
2
+ %global github_org Schniz
3
+
4
+ Name: fnm
5
+ Version: 1.37.2
6
+ Release: 1%{?dist }
7
+ Summary: Fast and simple Node.js version manager, built in Rust
8
+
9
+ License: GPL v3
10
+ URL: https://github.com/%{github_org }/%{name }
11
+ Source0: %{url }/archive/refs/tags/v%{version }.tar.gz
12
+
13
+ %if 0%{?el8 }
14
+ %else
15
+ BuildRequires: cargo >= 1.39
16
+ BuildRequires: rust >= 1.39
17
+ %endif
18
+ BuildRequires: gcc
19
+ BuildRequires: python3-devel
20
+ BuildRequires: cmake
21
+ BuildRequires: openssl-devel
22
+ BuildRequires: perl-devel
23
+ BuildRequires: openssl-perl
24
+ BuildRequires: perl-FindBin
25
+ BuildRequires: perl-IPC-Cmd
26
+
27
+ %description
28
+ %{summary }
29
+
30
+ %prep
31
+ %autosetup -p1
32
+ %if 0%{?el8 }
33
+ curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
34
+ %endif
35
+
36
+
37
+ %install
38
+ export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3
39
+ %if 0%{?el8 }
40
+ $HOME /.cargo/bin/cargo install --root=%{buildroot }%{_prefix } --path=.
41
+ %else
42
+ cargo install --root=%{buildroot }%{_prefix } --path=.
43
+ %endif
44
+
45
+ rm -f %{buildroot }%{_prefix }/.crates.toml \
46
+ %{buildroot }%{_prefix }/.crates2.json
47
+ strip --strip-all %{buildroot }%{_bindir }/*
48
+
49
+
50
+ %files
51
+ #%license LICENSE.md
52
+ #%doc README.md
53
+ %{_bindir }/%{name }
You can’t perform that action at this time.
0 commit comments