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