1 |
# $Id$ |
2 |
# Authority: ???? |
3 |
# Name: David Harper |
4 |
|
5 |
%define name sitex |
6 |
%define version 0.7.4 |
7 |
%define release 418 |
8 |
Summary: SiteX is a flexible, easy to use content management system for small websites |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://sitex.bjsintay.com |
14 |
Group: SMEserver/addon |
15 |
#wget http://downloads.sourceforge.net/sitex/SiteX_074_build_418.zip |
16 |
Source: SiteX_074_build_418.zip |
17 |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
Requires: e-smith-release >= 7.0 |
20 |
AutoReqProv: no |
21 |
|
22 |
%description |
23 |
http://sitex.bjsintay.com/ |
24 |
SiteX is a flexible, easy to use content management system for small websites |
25 |
|
26 |
%changelog |
27 |
* Sat Dec 27 2008 David Harper <davidiwharper@hotmail.com> 0.7.4-418 |
28 |
- initial release |
29 |
- builds from unchanged .zip |
30 |
|
31 |
%prep |
32 |
%setup -c -n %{name} |
33 |
%build |
34 |
#drop in an unchanged .tgz, if required rename directory here, eg remove version number. |
35 |
mkdir -p root/opt/ |
36 |
mv %{name} root/opt/sitex |
37 |
|
38 |
%install |
39 |
rm -rf $RPM_BUILD_ROOT |
40 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
41 |
rm -f %{name}-%{version}-filelist |
42 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
43 |
--dir 'opt/sitex/content/' 'attr(775,www,www)' \ |
44 |
--dir 'opt/sitex/content/title_pictures/' 'attr(775,www,www)' \ |
45 |
> %{name}-%{version}-filelist |
46 |
|
47 |
%clean |
48 |
cd .. |
49 |
rm -rf %{name} |
50 |
|
51 |
%pre |
52 |
%preun |
53 |
%post |
54 |
chown -R www.www /opt/sitex/content |
55 |
chmod -R 775 /opt/sitex/content |
56 |
|
57 |
%postun |
58 |
|
59 |
%files -f %{name}-%{version}-filelist |
60 |
%defattr(-,root,root) |
61 |
|