Release: 0.7
License: GPL
Group: Development
+#Source0: %{name}-%{version}.tar.gz
+# Source0-md5: -
+#URL: -
BuildRequires: rpmbuild(macros) >= 1.264
Requires: webapps
%if %{with trigger}
cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
fi
+ rm -f /etc/%{name}/apache.conf.rpmsave
fi
+
# same but without separate %{_sysconfdir} for package
if [ -f /etc/apache-%{name}.conf.rpmsave ]; then
if [ -d /etc/apache/webapps.d ]; then
cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
cp -f /etc/apache-%{name}.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
fi
+ rm -f /etc/apache-%{name}.conf.rpmsave
fi
# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/%{name}.conf.rpmsave ]; then
cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
- cp -f /etc/httpd/%{name}.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
+ mv -f /etc/httpd/%{name}.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
httpd_reload=1
fi