1 |
slords |
1.1 |
%define name scarab |
2 |
|
|
%define version 0.21 |
3 |
slords |
1.3 |
%define release 2 |
4 |
slords |
1.1 |
%define usertom tomcat |
5 |
|
|
|
6 |
|
|
Summary: Scarab Issue Tracker packaged for sme server |
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
slords |
1.2 |
Release: %{release}%{?dist} |
10 |
slords |
1.1 |
License: GPL |
11 |
|
|
Group: Networking/Other |
12 |
|
|
Source: %{name}-%{version}.tar.gz |
13 |
|
|
Packager: Normando Hall <nhall@unixlan.com.ar> |
14 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
|
|
Requires: jdk |
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
|
18 |
|
|
%description |
19 |
|
|
Artifact tracking system |
20 |
|
|
|
21 |
|
|
%changelog |
22 |
|
|
* Wed Dec 8 2007 Normando Hall <nhall@unixlan.com.ar> |
23 |
|
|
- first release |
24 |
|
|
|
25 |
|
|
%pre |
26 |
|
|
/etc/init.d/tomcat stop |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
|
30 |
|
|
%setup |
31 |
|
|
|
32 |
|
|
%build |
33 |
|
|
|
34 |
|
|
|
35 |
|
|
%install |
36 |
|
|
rm -rf $RPM_BUILD_ROOT |
37 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
38 |
|
|
rm -f %{name}-%{version}-filelist |
39 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
%clean |
44 |
|
|
rm -rf $RPM_BUILD_ROOT |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
%post |
49 |
|
|
mysql < /opt/scarab/db/mysql/install_db_plain.sql |
50 |
|
|
/etc/init.d/tomcat start |
51 |
|
|
chown -R tomcat:tomcat /opt/tomcat/ |
52 |
|
|
chmod 770 /opt/tomcat/ |
53 |
|
|
|
54 |
|
|
%preun |
55 |
|
|
/etc/init.d/tomcat stop |
56 |
|
|
mysql < /opt/scarab/db/mysql/remove_db.sql |
57 |
|
|
|
58 |
|
|
%postun |
59 |
|
|
rm -rf /opt/tomcat/webapps/scarab |
60 |
|
|
chown -R tomcat:tomcat /opt/tomcat/ |
61 |
|
|
chmod 770 /opt/tomcat/ |
62 |
|
|
/etc/init.d/tomcat start |
63 |
|
|
|
64 |
|
|
%files -f %{name}-%{version}-filelist |
65 |
|
|
%defattr(-,root,root) |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|