1 |
# $Id$ |
2 |
# Authority: ???? |
3 |
# Name: David Harper |
4 |
|
5 |
%define name smeserver-sitex |
6 |
%define version 1.0 |
7 |
%define release 3 |
8 |
Summary: SME Server integration RPM for SiteX, a content management system |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
Distribution: SME Server |
13 |
License: GNU GPL version 2 |
14 |
URL: http://www.david-harper.com/ |
15 |
Group: SMEserver/addon |
16 |
Source: %{name}-%{version}.tar.gz |
17 |
Packager: David Harper <davidiwharper@hotmail.com> |
18 |
BuildArchitectures: noarch |
19 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
20 |
BuildRoot: /var/tmp/%{name}-%{version} |
21 |
Requires: e-smith-release >= 7.0 |
22 |
Requires: sitex |
23 |
AutoReqProv: no |
24 |
|
25 |
%description |
26 |
SME Server integration RPM for SiteX, a content management system |
27 |
|
28 |
%changelog |
29 |
* Tue Mar 3 2009 David Harper <davidiwharper@hotmail.com> 1.0-3 |
30 |
- Fix security issues with globals.php.inc [SME: 5043] |
31 |
* Sun Dec 28 2008 David Harper<davidiwharper@hotmail.com> 1.0-2 |
32 |
- better SME integration |
33 |
* Sat Dec 27 2008 David Harper<davidiwharper@hotmail.com> 1.0-1 |
34 |
- initial release |
35 |
|
36 |
%prep |
37 |
%setup -c -n %{name}-%{version} |
38 |
mv %{name}-%{version} root/ |
39 |
|
40 |
%build |
41 |
%install |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
44 |
rm -f %{name}-%{version}-filelist |
45 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
46 |
# echo "%doc COPYING" >> %{name}-%{version}-filelist |
47 |
|
48 |
%clean |
49 |
cd .. |
50 |
rm -rf %{name}-%{version} |
51 |
|
52 |
%pre |
53 |
%preun |
54 |
%post |
55 |
echo "" |
56 |
echo "see http://wiki.contribs.org/SiteX for more information" |
57 |
|
58 |
%postun |
59 |
#uninstall |
60 |
if [ $1 = 0 ] ; then |
61 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
62 |
/usr/bin/sv h /service/httpd-e-smith |
63 |
fi |
64 |
|
65 |
%files -f %{name}-%{version}-filelist |
66 |
%defattr(-,root,root) |
67 |
|