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