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

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

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

Revision 1.3 by slords, Tue Dec 25 00:12:13 2007 UTC Revision 1.10 by fetcher, Sun Feb 3 16:42:24 2008 UTC
# Line 2  Summary: oats Time/Project Management Sy Line 2  Summary: oats Time/Project Management Sy
2  %define name smeserver-oats  %define name smeserver-oats
3  Name: %{name}  Name: %{name}
4  %define version 2.0.3  %define version 2.0.3
5  %define release 1  %define release 6
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
8  License: GPL  License: GPL
9  Group: Applications/Internet  Group: Applications/Internet
10  Source: %{name}-%{version}.tar.gz  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  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
17  BuildArchitectures: noarch  BuildArchitectures: noarch
18  Requires: smeserver-release >= 7.0  Requires: smeserver-release >= 7.0
19    BuildRequires: e-smith-devtools
20  AutoReqProv: no  AutoReqProv: no
21  %description  %description
22  %name is an implementation of oats (http://www.rustyparts.com/oats.php)  %name is an implementation of oats (http://www.rustyparts.com/oats.php)
23  on SME Server  on SME Server
24    
25  %changelog  %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>  * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
45  - Name change to reflect SME rpm build naming  - Name change to reflect SME rpm build naming
46  - No fuinctional changes. Added gpg signature-key-> import at:  - No fuinctional changes. Added gpg signature-key-> import at:
# Line 35  on SME Server Line 59  on SME Server
59  %prep  %prep
60    
61  %setup  %setup
62    %patch1 -p1
63    %patch2 -p1
64    %patch3 -p1
65    %patch4 -p1
66    %patch5 -p1
67    
68  %build  %build
69  #perl createlinks  #perl createlinks
70  mkdir -p        root/etc/e-smith/db/accounts/defaults/oats  mkdir -p                          root/etc/e-smith/db/accounts/defaults/oats
71  echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type  echo "reserved"                 > root/etc/e-smith/db/accounts/defaults/oats/type
72    
73  mkdir -p                root/etc/e-smith/db/configuration/defaults/oats  mkdir -p                          root/etc/e-smith/db/configuration/defaults/oats
74  echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name  echo "service"                  > root/etc/e-smith/db/configuration/defaults/oats/type
75  echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess  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  %install
82  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 67  rm -rf $RPM_BUILD_ROOT Line 100  rm -rf $RPM_BUILD_ROOT
100  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql
101  /etc/rc.d/init.d/mysql.init start  /etc/rc.d/init.d/mysql.init start
102  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
103  /usr/local/bin/svc -h /service/httpd-e-smith  /usr/bin/sv h /service/httpd-e-smith
104  /bin/chown -R www:www /opt/oats  /bin/chown -R www:www /opt/oats
105  /bin/chown www:www /opt/oats/print  /bin/chown www:www /opt/oats/print
106  /bin/chmod 770 /opt/oats/print  /bin/chmod 770 /opt/oats/print
107  /bin/chown root:www /opt/oats/config/*  /bin/chown root:www /opt/oats/config/*
108  /bin/chmod 0440 /opt/oats/config/*  /bin/chmod 0440 /opt/oats/config/*
109    
110  echo "------"  #echo "------"
111  echo "acenet-tech.org/sme/smecontrib.php"  #echo "acenet-tech.org/sme/smecontrib.php"
112  echo "For install instructions"  #echo "For install instructions"
113  echo "------"  #echo "------"
114  echo "Settings to install: 'config show oats'"  echo "Settings to install: 'config show oats'"
115  /sbin/e-smith/config show oats  /sbin/e-smith/config show oats
116    
# Line 86  echo "Settings to install: 'config show Line 119  echo "Settings to install: 'config show
119  %postun  %postun
120  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
121      /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf      /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
122      /usr/local/bin/svc -h /service/httpd-e-smith      /usr/bin/sv h /service/httpd-e-smith
123  fi  fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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