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