1 |
%define name oats |
2 |
Summary: OATS is an Online Automated Timecard System |
3 |
Name: %{name} |
4 |
%define version 2.0.3 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GNU GPL |
9 |
URL: http://www.rustyparts.com/oats.php |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildArchitectures: noarch |
13 |
BuildRequires: e-smith-devtools |
14 |
BuildRoot: /var/tmp/%{name}-%{version} |
15 |
Requires: e-smith-release >= 7.0 |
16 |
AutoReqProv: no |
17 |
|
18 |
%description |
19 |
O.A.T.S is an online automated timecard system |
20 |
A free, Open Source software package designed using sound pedagogical principles, |
21 |
to help educators create effective online learning communities. |
22 |
|
23 |
%changelog |
24 |
* Wed Feb 06 2008 Craig Jensen <craig.d.jensen@gmail.com> |
25 |
- initial release |
26 |
|
27 |
%prep |
28 |
%setup -c -n %{name} |
29 |
%build |
30 |
#drop in an unchanged .tgz, if required rename directory here, eg remove version number. |
31 |
mkdir -p root/opt |
32 |
mv %{name} root/opt |
33 |
touch root/opt/oats/.htaccess |
34 |
|
35 |
%install |
36 |
rm -rf $RPM_BUILD_ROOT |
37 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
38 |
rm -f %{name}-%{version}-filelist |
39 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
40 |
--dir '/opt/oats/print' 'attr(770,www,www)' \ |
41 |
--dir 'opt/oats/config' 'attr(0440,root,www)' \ |
42 |
> %{name}-%{version}-filelist |
43 |
|
44 |
%clean |
45 |
cd .. |
46 |
rm -rf %{name} |
47 |
|
48 |
%pre |
49 |
%preun |
50 |
%post |
51 |
/bin/chown -R www.www /opt/oats/*.php |
52 |
|
53 |
%postun |
54 |
|
55 |
%files -f %{name}-%{version}-filelist |
56 |
%defattr(-,root,root) |