]> git.pld-linux.org Git - SPECS.git/blob - nodejs-promzard.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / nodejs-promzard.spec
1 %define         pkg     promzard
2 Summary:        prompting wizardly
3 Name:           nodejs-%{pkg}
4 Version:        0.2.0
5 Release:        1
6 License:        BSD
7 Group:          Development/Libraries
8 URL:            https://github.com/isaacs/promzard
9 Source0:        http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
10 # Source0-md5:  313e53a75fc058a2735dd3d5fc28b15f
11 BuildRequires:  rpmbuild(macros) >= 1.634
12 Requires:       nodejs
13 Requires:       nodejs-read >= 1.0.0
14 Requires:       nodejs-read < 2.0.0
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 prompting wizardly.
20
21 %prep
22 %setup -qc
23 mv package/* .
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_bindir},%{nodejs_libdir}/%{pkg}}
28 cp -a package.json promzard.js $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
29
30 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
31 cp -a example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %files
37 %defattr(644,root,root,755)
38 %doc README.md
39 %{nodejs_libdir}/%{pkg}
40 %{_examplesdir}/%{name}-%{version}
This page took 0.075214 seconds and 3 git commands to generate.