/[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.4 - (show annotations) (download)
Sat Dec 22 22:18:29 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -1 lines
Remove Packager/Distribution (added by buildsys)

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

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