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