/[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.9 - (show annotations) (download)
Sun Feb 3 16:05:29 2008 UTC (16 years, 3 months ago) by fetcher
Branch: MAIN
CVS Tags: smeserver-oats-2_0_3-6_el4_sme
Changes since 1.8: +3 -1 lines
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com
- remove '-' from sv command in spec, add source path to sql
- template
- [2.0.3-5]

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

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