summaryrefslogtreecommitdiffstats
path: root/specs
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2013-04-25 16:35:22 -0400
committerAde Lee <alee@redhat.com>2013-04-26 01:24:49 -0400
commitb659d0a2f989cafc978653505cee51feac3a31dc (patch)
tree5ba9ce0f027ac3f9ae8dd2cca5d29d883421175a /specs
parente81f0c638f4860623a04613f6735ed0374ed354d (diff)
downloadpki-b659d0a2f989cafc978653505cee51feac3a31dc.tar.gz
pki-b659d0a2f989cafc978653505cee51feac3a31dc.tar.xz
pki-b659d0a2f989cafc978653505cee51feac3a31dc.zip
Added pretrans and java-atk-wrapper dependency
The pretrans is needed to ensure that users with dogtag 9 style instances not upgrade to fedora 19, where tomcat 6 is not available. They would be redirected to a page on how to migrate their instances.
Diffstat (limited to 'specs')
-rw-r--r--specs/pki-core.spec33
1 files changed, 32 insertions, 1 deletions
diff --git a/specs/pki-core.spec b/specs/pki-core.spec
index 29ac95a27..e0c3465af 100644
--- a/specs/pki-core.spec
+++ b/specs/pki-core.spec
@@ -5,7 +5,7 @@ distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: pki-core
Version: 10.0.2
-Release: 0.7%{?dist}
+Release: 0.8%{?dist}
Summary: Certificate System - PKI Core Components
URL: http://pki.fedoraproject.org/
License: GPLv2
@@ -259,6 +259,7 @@ Obsoletes: pki-setup < %{version}-%{release}
Obsoletes: pki-silent < %{version}-%{release}
Requires: java >= 1:1.6.0
+Requires: java-atk-wrapper
Requires: net-tools
Requires: perl(File::Slurp)
Requires: perl(XML::LibXML)
@@ -585,6 +586,32 @@ fi \
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/pki
%{__mkdir_p} %{buildroot}%{_sharedstatedir}/pki
+%if ! 0%{?rhel} && 0%{?fedora} >= 19
+%pretrans -n pki-base -p <lua>
+function test(a)
+ if posix.stat(a) then
+ for f in posix.files(a) do
+ if f~=".." and f~="." then
+ return true
+ end
+ end
+ end
+ return false
+end
+
+if (test("/etc/sysconfig/pki/ca") or
+ test("/etc/sysconfig/pki/kra") or
+ test("/etc/sysconfig/pki/ocsp") or
+ test("/etc/sysconfig/pki/tks")) then
+ msg = "Unable to upgrade to Fedora 19. There are Dogtag 9 instances\n" ..
+ "that will no longer work since they require Tomcat 6, and \n" ..
+ "Tomcat 6 is no longer available in Fedora 19.\n\n" ..
+ "Please follow these instructions to migrate the instances to \n" ..
+ "Dogtag 10:\n\n" ..
+ "http://pki.fedoraproject.org/wiki/Migrating_Dogtag_9_Instances_to_Dogtag_10"
+ error(msg)
+end
+%endif
%post -n pki-base
@@ -1028,6 +1055,10 @@ fi
%changelog
+* Thu Apr 25 2013 Ade Lee <alee@redhat.com> 10.0.2-0.8
+- Added %pretrans script for f19
+- Added java-atk-wrapper dependency
+
* Tue Apr 24 2013 Endi S. Dewata <edewata@redhat.com> 10.0.2-0.7
- Added pki-server-upgrade script and pki.server module.
- Call upgrade scripts in %post for pki-base and pki-server.