blob: 863af6cd02fddb21b695886029a42266270d7a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
Name: pki-util
Version: 2.0.0
Release: 1%{?dist}
Summary: Dogtag Certificate System - PKI Utility Framework
URL: http://pki.fedoraproject.org/
License: GPLv2
Group: System Environment/Base
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ant
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: jss >= 4.2.6
BuildRequires: ldapjdk
BuildRequires: osutil
BuildRequires: xerces-j2
Requires: java >= 1:1.6.0
Requires: jpackage-utils
Requires: jss >= 4.2.6
Requires: ldapjdk
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
%if 0%{?rhel}
# For EPEL, override the '_sharedstatedir' macro on RHEL
%define _sharedstatedir /var/lib
%endif
%description
Dogtag Certificate System is an enterprise software system designed
to manage enterprise Public Key Infrastructure (PKI) deployments.
The Dogtag PKI Utility Framework is required by the following four
Dogtag PKI subsystems:
the Dogtag Certificate Authority,
the Dogtag Data Recovery Manager,
the Dogtag Online Certificate Status Protocol Manager, and
the Dogtag Token Key Service.
%package javadoc
Summary: Dogtag Certificate System - PKI Utility Framework Javadocs
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description javadoc
Dogtag Certificate System - PKI Utility Framework Javadocs
This documentation pertains exclusively to version %{version} of
the Dogtag PKI Utility Framework.
%prep
%setup -q
%build
ant \
-Dproduct.ui.flavor.prefix="" \
-Dproduct.prefix="pki" \
-Dproduct="util" \
-Dversion="%{version}"
%install
rm -rf %{buildroot}
cd dist/binary
unzip %{name}-%{version}.zip -d %{buildroot}
cd %{buildroot}%{_javadir}/pki
mv cmsutil.jar cmsutil-%{version}.jar
ln -s cmsutil-%{version}.jar cmsutil.jar
mv nsutil.jar nsutil-%{version}.jar
ln -s nsutil-%{version}.jar nsutil.jar
mkdir -p %{buildroot}%{_sharedstatedir}/tomcat5/common/lib
cd %{buildroot}%{_sharedstatedir}/tomcat5/common/lib
ln -s %{_javadir}/pki/cmsutil.jar cmsutil.jar
ln -s %{_javadir}/pki/nsutil.jar nsutil.jar
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/pki/
%{_sharedstatedir}/tomcat5/common/lib/*
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}/
%changelog
* Tue Aug 10 2010 Matthew Harmsen <mharmsen@redhat.com> 2.0.0-1
- Updated Dogtag 1.3.x --> Dogtag 2.0.0.
|