/[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.11 - (show annotations) (download)
Sun Feb 3 17:15:57 2008 UTC (16 years, 3 months ago) by fetcher
Branch: MAIN
Changes since 1.10: +5 -1 lines
* Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
- Dates brought up in config array
- [2.0.3-6]

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

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