forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeteor.spec
42 lines (35 loc) · 914 Bytes
/
meteor.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Meteor RPM spec file
#
Summary: Meteor platform and JavaScript application server
Vendor: Meteor
Name: meteor
Version: 0.5.1
Release: 1
License: MIT
Group: Networking/WWW
Packager: Meteor Packaging Team <[email protected]>
URL: http://meteor.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A platform and app server for building websites in JavaScript.
%prep
%build
%install
[ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
if [ ! -f "%{TARBALL}" ] ; then
echo "Can't find TARBALL: %{TARBALL}"
exit 1
fi
install -d %{buildroot}%{_libdir}
# XXX XXX
tar -x -C %{buildroot}%{_libdir} -f %{TARBALL}
install -d %{buildroot}%{_bindir}
ln -s /%{_libdir}/meteor/bin/meteor %{buildroot}%{_bindir}/meteor
echo -n 'rpm' > %{buildroot}%{_libdir}/meteor/.package_stamp
%clean
[ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/meteor
%{_libdir}/meteor