/[smecontribs]/rpms/sitex/contribs7/sitex.spec
ViewVC logotype

Contents of /rpms/sitex/contribs7/sitex.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Wed Mar 4 15:11:11 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: sitex-0_7_4-418_el4_sme
Changes since 1.3: +1 -0 lines
Add buildrequires

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 BuildRequires: e-smith-devtools >= 1.13.1-03
19 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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed