/[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.8 - (show annotations) (download)
Sun Feb 3 02:53:30 2008 UTC (16 years, 3 months ago) by fetcher
Branch: MAIN
Changes since 1.7: +13 -6 lines
fix- db source path added

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 5
6 Version: %{version}
7 Release: %{release}%{?dist}
8 License: GPL
9 Group: Applications/Internet
10 Source: %{name}-%{version}.tar.gz
11 Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.patch
12 Patch2: smeserver-oats-2.0.3-db_httpd_templates-02.patch
13 Patch3: smeserver-oats-2.0.3-db_template-typo.patch
14 Patch4: smeserver-oats-2.0.3-db_source-template.patch
15 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16 BuildArchitectures: noarch
17 Requires: smeserver-release >= 7.0
18 BuildRequires: e-smith-devtools
19 AutoReqProv: no
20 %description
21 %name is an implementation of oats (http://www.rustyparts.com/oats.php)
22 on SME Server
23
24 %changelog
25 * Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com
26 - remove '-' from sv command in spec, add source path to sql
27 - template
28 - [2.0.3-5]
29
30 * Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
31 - fix typo in db init template
32 - [2.0.3-4]
33
34 * Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
35 - fix typos and missing '""' quotes in templates.
36 - [2.0.3-3]
37
38 * Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
39 - changes to db, httpd templates and spec to bring up to package
40 - modification guidelines
41 - [2.0.3-2]
42
43 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
44 - Name change to reflect SME rpm build naming
45 - No fuinctional changes. Added gpg signature-key-> import at:
46 - http://acenet-tech.org/sme/acenettech/RPM-GPG-KEY-cjensen
47 - [2.0.3-1]
48
49 * Sun Dec 17 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
50 - Changes to provide SME 7.0 compat
51 - [2.0.3-1cdj]
52
53 * Tue Mar 09 2004 Craig D. Jensen <cjensen@acenet-tech.org>
54 - Initial release
55 - [2.0.3-cdj]
56 - Original version
57
58 %prep
59
60 %setup
61 %patch1 -p1
62 %patch2 -p1
63 %patch3 -p1
64 %patch4 -p1
65
66 %build
67 #perl createlinks
68 mkdir -p root/etc/e-smith/db/accounts/defaults/oats
69 echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type
70
71 mkdir -p root/etc/e-smith/db/configuration/defaults/oats
72 echo "service" > root/etc/e-smith/db/configuration/defaults/oats/type
73 echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name
74 echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess
75 echo "enabled" > root/etc/e-smith/db/configuration/defaults/oats/status
76 echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbName
77 echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbUser
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
82 rm -f %{name}-%{version}-filelist
83 /sbin/e-smith/genfilelist \
84 $RPM_BUILD_ROOT \
85 > %{name}-%{version}-filelist
86
87 %files -f %{name}-%{version}-filelist
88
89 %defattr(-,root,root)
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %pre
95
96 %post
97 /etc/e-smith/events/actions/initialize-default-databases
98 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql
99 /etc/rc.d/init.d/mysql.init start
100 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
101 /usr/bin/sv h /service/httpd-e-smith
102 /bin/chown -R www:www /opt/oats
103 /bin/chown www:www /opt/oats/print
104 /bin/chmod 770 /opt/oats/print
105 /bin/chown root:www /opt/oats/config/*
106 /bin/chmod 0440 /opt/oats/config/*
107
108 #echo "------"
109 #echo "acenet-tech.org/sme/smecontrib.php"
110 #echo "For install instructions"
111 #echo "------"
112 echo "Settings to install: 'config show oats'"
113 /sbin/e-smith/config show oats
114
115 %preun
116
117 %postun
118 if [ $1 = 0 ] ; then
119 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
120 /usr/bin/sv -h /service/httpd-e-smith
121 fi

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