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

Annotation 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.12 - (hide annotations) (download)
Sun Feb 3 19:08:30 2008 UTC (16 years, 3 months ago) by fetcher
Branch: MAIN
CVS Tags: smeserver-oats-2_0_3-7_el4_sme
Changes since 1.11: +11 -17 lines
* Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
- roll back patches for db and httpd templates
- [2.0.3-7]

1 slords 1.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 fetcher 1.12 %define release 7
6 slords 1.1 Version: %{version}
7 slords 1.3 Release: %{release}%{?dist}
8 slords 1.2 License: GPL
9 slords 1.1 Group: Applications/Internet
10     Source: %{name}-%{version}.tar.gz
11 fetcher 1.12 #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     Patch0: smeserver-oats-2.0.3-config-dates-updated.patch
16 slords 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17     BuildArchitectures: noarch
18     Requires: smeserver-release >= 7.0
19 slords 1.4 BuildRequires: e-smith-devtools
20 slords 1.1 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 fetcher 1.11 * Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
27 fetcher 1.12 - roll back patches for db and httpd templates
28     - [2.0.3-7]
29    
30     * Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
31 fetcher 1.11 - Dates brought up in config array
32     - [2.0.3-6]
33    
34     * Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
35 fetcher 1.8 - remove '-' from sv command in spec, add source path to sql
36     - template
37     - [2.0.3-5]
38    
39 fetcher 1.7 * Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
40     - fix typo in db init template
41     - [2.0.3-4]
42    
43 fetcher 1.5 * Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
44 fetcher 1.6 - fix typos and missing '""' quotes in templates.
45     - [2.0.3-3]
46    
47     * Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com>
48 fetcher 1.5 - changes to db, httpd templates and spec to bring up to package
49     - modification guidelines
50     - [2.0.3-2]
51    
52 slords 1.1 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
53     - Name change to reflect SME rpm build naming
54     - No fuinctional changes. Added gpg signature-key-> import at:
55     - http://acenet-tech.org/sme/acenettech/RPM-GPG-KEY-cjensen
56     - [2.0.3-1]
57    
58     * Sun Dec 17 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
59     - Changes to provide SME 7.0 compat
60     - [2.0.3-1cdj]
61    
62     * Tue Mar 09 2004 Craig D. Jensen <cjensen@acenet-tech.org>
63     - Initial release
64     - [2.0.3-cdj]
65     - Original version
66    
67     %prep
68    
69     %setup
70 fetcher 1.12 %patch0 -p1
71 slords 1.1
72     %build
73     #perl createlinks
74 fetcher 1.5 mkdir -p root/etc/e-smith/db/accounts/defaults/oats
75     echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type
76 slords 1.1
77 fetcher 1.5 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 slords 1.1
83     %install
84     rm -rf $RPM_BUILD_ROOT
85     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
86     rm -f %{name}-%{version}-filelist
87     /sbin/e-smith/genfilelist \
88     $RPM_BUILD_ROOT \
89     > %{name}-%{version}-filelist
90    
91     %files -f %{name}-%{version}-filelist
92    
93     %defattr(-,root,root)
94    
95     %clean
96     rm -rf $RPM_BUILD_ROOT
97    
98     %pre
99    
100     %post
101     /etc/e-smith/events/actions/initialize-default-databases
102     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql
103     /etc/rc.d/init.d/mysql.init start
104     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
105 fetcher 1.8 /usr/bin/sv h /service/httpd-e-smith
106 slords 1.1 /bin/chown -R www:www /opt/oats
107     /bin/chown www:www /opt/oats/print
108     /bin/chmod 770 /opt/oats/print
109     /bin/chown root:www /opt/oats/config/*
110     /bin/chmod 0440 /opt/oats/config/*
111    
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 fetcher 1.10 /usr/bin/sv h /service/httpd-e-smith
121 slords 1.1 fi

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