summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpawelz2010-02-24 18:34:48 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit59ec8784a0671b870fef0194b2f30e513e36ca3b (patch)
tree4ef75da6d3424353fc47023b5ae93a7c01eab392
parentcdb1209576096f0842121e916cda90a41b7340e3 (diff)
downloadcas-59ec8784a0671b870fef0194b2f30e513e36ca3b.zip
cas-59ec8784a0671b870fef0194b2f30e513e36ca3b.tar.gz
- unified tomcat config filename
- clear tomcat cache after uninstall/reinstall/upgrade - BR: rpmbuild(macros) >= 1.546 - rel 0.4 Changed files: cas.spec -> 1.27
-rw-r--r--cas.spec11
1 files changed, 7 insertions, 4 deletions
diff --git a/cas.spec b/cas.spec
index 439cba1..b39ad21 100644
--- a/cas.spec
+++ b/cas.spec
@@ -2,7 +2,7 @@
Summary: JA-SIG Central Authentication Service
Name: cas
Version: 3.3.5
-Release: 0.3
+Release: 0.4
License: MIT License
Group: Networking/Daemons/Java/Servlets
Source0: http://www.ja-sig.org/downloads/cas/%{name}-server-%{version}-release.tar.gz
@@ -10,7 +10,7 @@ Source0: http://www.ja-sig.org/downloads/cas/%{name}-server-%{version}-release.t
Source1: %{name}-context.xml
URL: http://www.ja-sig.org/products/cas/
BuildRequires: rpm-javaprov
-BuildRequires: rpmbuild(macros) >= 1.540
+BuildRequires: rpmbuild(macros) >= 1.546
Requires: jpackage-utils
Requires: tomcat >= 6
BuildArch: noarch
@@ -196,8 +196,11 @@ for i in $CONFIGFILES; do
ln -s %{_sysconfdir}/%{name}/$(basename $i) $RPM_BUILD_ROOT%{webappdir}/WEB-INF/$i
done
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/context.xml
-ln -s %{_sysconfdir}/%{name}/context.xml $RPM_BUILD_ROOT%{_tomcatconfdir}/%{name}.xml
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tomcat-context.xml
+ln -sf %{_sysconfdir}/%{name}/tomcat-context.xml $RPM_BUILD_ROOT%{_tomcatconfdir}/%{name}.xml
+
+%postun
+%tomcat_clear_cache %{name}
%clean
rm -rf $RPM_BUILD_ROOT