forked from mdaniel/svn-caucho-com-resin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resin.spec.in
54 lines (42 loc) · 1009 Bytes
/
resin.spec.in
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
43
44
45
46
47
48
49
50
51
52
53
Summary: Resin application server
Name: resin
Version: @VERSION@
Release: 1
License: Caucho
Group: Application/Web
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Provides: resin-pro
Requires: java-1.6.0-openjdk-devel, openssl, libssl.so.6, libpthread.so.0, shadow-utils
AutoReqProv: no
%description
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir m4
DESTDIR="$RPM_BUILD_ROOT" ./configure
DESTDIR="$RPM_BUILD_ROOT" make rpm-dist
DESTDIR="$RPM_BUILD_ROOT" make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config /etc/resin
%config /etc/init.d/resin
%attr(-,resin,resin) %config /var/resin
/usr/local/share
/var/log/resin
/usr/bin
%pre
/usr/bin/getent group resin || /usr/sbin/groupadd -r resin
/usr/bin/getent passwd resin || /usr/sbin/useradd -r -s /bin/false -g resin resin
%post
/sbin/chkconfig resin reset
/usr/bin/resinctl start
exit
%doc
%changelog
* Thu Oct 27 2011 <caucho@centos6-64> -
- Initial build.