/[smecontribs]/rpms/scarab/contribs7/scarab.spec
ViewVC logotype

Contents of /rpms/scarab/contribs7/scarab.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Tue Nov 25 16:20:16 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +0 -0 lines
Restore

1 # $Id: scarab.spec,v 1.6 2008/04/02 15:03:56 slords Exp $
2 # Authority: picsone
3 # Name: Normando Hall
4
5 %define name scarab
6 %define version 0.21
7 %define release 2
8 %define usertom tomcat
9
10 Summary: Scarab Issue Tracker packaged for sme server
11 Name: %{name}
12 Version: %{version}
13 Release: %{release}%{?dist}
14 License: GPL
15 Group: Networking/Other
16 Source: %{name}-%{version}.tar.gz
17 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
18 Requires: jdk
19 BuildRequires: e-smith-devtools
20 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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed