/[smecontribs]/rpms/smeserver-oats/contribs7/smeserver-oats-2.0.3.spec
ViewVC logotype

Contents of /rpms/smeserver-oats/contribs7/smeserver-oats-2.0.3.spec

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


Revision 1.2 - (show annotations) (download)
Tue Dec 25 00:09:55 2007 UTC (16 years, 4 months ago) by slords
Branch: MAIN
Changes since 1.1: +1 -2 lines
Fix spec

1 Summary: oats Time/Project Management System for SME Server
2 %define name smeserver-oats
3 Name: %{name}
4 %define version 2.0.3
5 %define release 1
6 Version: %{version}
7 Release: %smerelease %{release}
8 License: GPL
9 Group: Applications/Internet
10 Source: %{name}-%{version}.tar.gz
11 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
12 BuildArchitectures: noarch
13 Requires: smeserver-release >= 7.0
14 AutoReqProv: no
15 %description
16 %name is an implementation of oats (http://www.rustyparts.com/oats.php)
17 on SME Server
18
19 %changelog
20 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
21 - Name change to reflect SME rpm build naming
22 - No fuinctional changes. Added gpg signature-key-> import at:
23 - http://acenet-tech.org/sme/acenettech/RPM-GPG-KEY-cjensen
24 - [2.0.3-1]
25
26 * Sun Dec 17 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
27 - Changes to provide SME 7.0 compat
28 - [2.0.3-1cdj]
29
30 * Tue Mar 09 2004 Craig D. Jensen <cjensen@acenet-tech.org>
31 - Initial release
32 - [2.0.3-cdj]
33 - Original version
34
35 %prep
36
37 %setup
38
39 %build
40 #perl createlinks
41 mkdir -p root/etc/e-smith/db/accounts/defaults/oats
42 echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type
43
44 mkdir -p root/etc/e-smith/db/configuration/defaults/oats
45 echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name
46 echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
51 rm -f %{name}-%{version}-filelist
52 /sbin/e-smith/genfilelist \
53 $RPM_BUILD_ROOT \
54 > %{name}-%{version}-filelist
55
56 %files -f %{name}-%{version}-filelist
57
58 %defattr(-,root,root)
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %pre
64
65 %post
66 /etc/e-smith/events/actions/initialize-default-databases
67 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql
68 /etc/rc.d/init.d/mysql.init start
69 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70 /usr/local/bin/svc -h /service/httpd-e-smith
71 /bin/chown -R www:www /opt/oats
72 /bin/chown www:www /opt/oats/print
73 /bin/chmod 770 /opt/oats/print
74 /bin/chown root:www /opt/oats/config/*
75 /bin/chmod 0440 /opt/oats/config/*
76
77 echo "------"
78 echo "acenet-tech.org/sme/smecontrib.php"
79 echo "For install instructions"
80 echo "------"
81 echo "Settings to install: 'config show oats'"
82 /sbin/e-smith/config show oats
83
84 %preun
85
86 %postun
87 if [ $1 = 0 ] ; then
88 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
89 /usr/local/bin/svc -h /service/httpd-e-smith
90 fi

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