Author: paszczus Date: Fri Oct 12 19:32:40 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - added Smarty patch
---- Files affected: SPECS: ZoneAdmin.spec (1.7 -> 1.8) ---- Diffs: ================================================================ Index: SPECS/ZoneAdmin.spec diff -u SPECS/ZoneAdmin.spec:1.7 SPECS/ZoneAdmin.spec:1.8 --- SPECS/ZoneAdmin.spec:1.7 Fri Oct 12 21:20:23 2007 +++ SPECS/ZoneAdmin.spec Fri Oct 12 21:32:34 2007 @@ -7,6 +7,7 @@ Group: Applications/WWW Source0: http://dl.sourceforge.net/zoneadmin/%{name}-%{version}-beta1.tar.gz # Source0-md5: a848e14d947d41734d8a23d72d0196da +Patch0: %{name}-smarty.patch URL: http://open.megabit.net/index.php?section=pro_home&project=ZoneAdmin BuildRequires: rpmbuild(macros) >= 1.268 Requires: Smarty >= 2.6.18-2 @@ -20,6 +21,7 @@ %define _webapps /etc/webapps %define _webapp %{name} +%define _smartyplugindir /usr/share/php/Smarty/plugins %define _sysconfdir %{_webapps}/%{_webapp} %define _appdir %{_datadir}/%{_webapp} @@ -35,6 +37,9 @@ %prep %setup -q -n %{name}-%{version}-beta1 +%patch0 -p1 + +mkdir smarty-plugins cat > apache.conf <<'EOF' Alias /%{name} %{_appdir} @@ -44,12 +49,13 @@ EOF rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_smartyplugindir},%{_appdir}} install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf install *.php $RPM_BUILD_ROOT%{_appdir} cp -a {contrib,img,includes,lang,templates_c,tpl} $RPM_BUILD_ROOT%{_appdir} +cp -a includes/smarty/libs/* $RPM_BUILD_ROOT%{_smartyplugindir} mv $RPM_BUILD_ROOT%{_appdir}/includes/config.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/config.php ln -s %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_appdir}/includes/config.php @@ -103,6 +109,7 @@ %{_appdir}/tpl/Boxes/img/*.jpg %{_appdir}/tpl/Boxes/img/*.gif %dir %attr(770,root,http) %{_appdir}/templates_c +%{_smartyplugindir}/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -110,6 +117,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.8 2007/10/12 19:32:34 paszczus +- added Smarty patch + Revision 1.7 2007/10/12 19:20:23 paszczus - more requires ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ZoneAdmin.spec?r1=1.7&r2=1.8&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
