Node.jsの公式配布バイナリからrpm/debパッケージを作成するための設定ファイル
Revision | 2c52a67af8c669d61bc2f319e56faf206dc49444 (tree) |
---|---|
Time | 2013-03-30 02:17:50 |
Author | hylom <hylom@hylo...> |
Commiter | hylom |
add spec file for node 0.10.x
@@ -0,0 +1,43 @@ | ||
1 | +Name: nodejs | |
2 | +Version: 0.10.2 | |
3 | +Release: private1 | |
4 | +Group: Development | |
5 | +Vendor: hylom | |
6 | +URL: http://nodejs.org/ | |
7 | +Packager: hylom <hylom@hylom.net> | |
8 | +License: BSD and MIT and ASL 2.0 and GPLv3 | |
9 | +Summary: Evented I/O for V8 JavaScript | |
10 | +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
11 | +Source: node-v%{version}-linux-x64.tar.gz | |
12 | + | |
13 | +%description | |
14 | +Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. Node's goal is to provide an easy way to build scalable network programs. | |
15 | + | |
16 | +%prep | |
17 | +%setup -q -n node-v%{version}-linux-x64 | |
18 | + | |
19 | +%build | |
20 | + | |
21 | +%install | |
22 | +rm -rf $RPM_BUILD_ROOT | |
23 | +mkdir -p $RPM_BUILD_ROOT/usr/ | |
24 | +for i in {bin,lib,share} | |
25 | +do | |
26 | + cp -pr $i $RPM_BUILD_ROOT/usr/$i | |
27 | +done | |
28 | + | |
29 | +%clean | |
30 | +rm -rf $RPM_BUILD_ROOT | |
31 | + | |
32 | +%files | |
33 | +/usr/bin | |
34 | +/usr/lib | |
35 | +/usr/share | |
36 | + | |
37 | +%defattr(-,root,root,-) | |
38 | + | |
39 | +%doc ChangeLog LICENSE README.md | |
40 | + | |
41 | +%changelog | |
42 | +* Wed Oct 1 2012 hylom <hylom@hylom.net> | |
43 | +- Initial build. |