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

Annotation of /rpms/scarab/contribs7/scarab.spec

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


Revision 1.5 - (hide annotations) (download)
Sun Dec 23 01:15:46 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: scarab-0_21-2_el4_sme
Changes since 1.4: +1 -0 lines
Update buildrequires

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     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14     Requires: jdk
15 slords 1.5 BuildRequires: e-smith-devtools
16 slords 1.1 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    

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