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

Annotation of /rpms/sitex/contribs7/sitex.spec

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


Revision 1.1 - (hide annotations) (download)
Wed Mar 4 14:53:32 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
Initial import of sitex

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

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