source: raptor-distribution/RPMs/raptor-all/tags/v1-r10-1/raptor-all-1.0.0-10.spec @ 1697

Revision 1697, 3.6 KB checked in by rhyssmith, 5 years ago (diff)

Tagging v1-r10-1 release of Raptor All RPM

Line 
1Name:          raptor-all
2Version:       1.0.0
3Release:       10
4Summary:       All components of Raptor Software Suite
5Group:         Productivity/Other
6License:       Apache 2.0
7URL:           http://iam.cf.ac.uk/Raptor
8Source:        %{name}-%{version}.zip
9BuildArch:     noarch
10BuildRoot:     %{_tmppath}/%{name}-%{version}-build
11
12BuildRequires: unzip
13Requires:      java >= 1.6.0
14Requires:      raptor-ica = 1.1.2
15Requires:      raptor-mua = 1.1.2
16Requires:      raptor-web = 1.1.0
17Conflicts:     raptor-server
18
19
20
21%description
22Raptor is a software tool designed to report upon authentication
23information for access management systems such as the Shibboleth IdP
24and EZproxy. This is a metapackage that installs the ICA, MUA, and Web
25components of Raptor.
26
27
28
29%prep
30
31# Remove anything that already exists, unzip source, and cd into it
32%{__rm} -rf %{name}-%{version}
33%{__unzip} -q %{_sourcedir}/%{name}-%{version}.zip
34cd %{name}-%{version}
35
36 
37%build
38# Nothing to do
39
40
41 
42%install
43
44# Create fixed-location directories in /opt
45install -d %{buildroot}/opt/raptor/all
46
47# Install fixed-location files to correct locations
48cp %{_builddir}/%{name}-%{version}/version.txt %{buildroot}/opt/raptor/all/version.txt
49
50
51 
52%clean
53
54# Remove everything in the buildroot
55[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
56
57 
58 
59%post
60
61# Once the RPMs are installed, key exchange between each component should take place
62# But only if installing, not ugprading!
63if [ $1 == 1 ] ; then
64
65    # Only run these commands if keytool exists
66    if command -v keytool > /dev/null; then
67   
68        # First swap keys between ICA and MUA
69        keytool -import -noprompt -keystore /opt/raptor/ica/keys/authorised-keys.jks -storepass changeit -alias raptormua -file /opt/raptor/mua/keys/raptor-mua-public.crt
70        keytool -import -noprompt -keystore /opt/raptor/mua/keys/authorised-keys.jks -storepass changeit -alias raptorica -file /opt/raptor/ica/keys/raptor-ica-public.crt
71
72        # Then between MUA and Web
73        keytool -import -noprompt -keystore /opt/raptor/web/keys/authorised-keys.jks -storepass changeit -alias raptormua -file /opt/raptor/mua/keys/raptor-mua-public.crt
74        keytool -import -noprompt -keystore /opt/raptor/mua/keys/authorised-keys.jks -storepass changeit -alias raptorweb -file /opt/raptor/web/keys/raptor-web-public.crt
75    else
76        echo ERROR: keytool command not found - automatic certificate exchange has not taken place and must be performed manually!
77    fi
78fi
79
80 
81 
82%preun
83
84
85 
86%postun
87
88 
89%files
90
91%defattr(-,root,root,-)
92%dir /opt/raptor
93%dir /opt/raptor/all
94/opt/raptor/all/version.txt
95
96
97%changelog
98* Fri Aug 24 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-10
99- Bumped raptor-ica and raptor-mua to v1.1.2.
100
101* Sun Aug 19 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-9
102- Rerelease of v1.1 (containing v1.1.0, v1.1.1, v1.1.0)
103
104* Fri Aug 10 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-8
105- Bumped raptor-mua to v1.1.0
106
107* Fri Jul 6 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-7
108- Bumped raptor-ica, raptor-mua, and raptor-web to v1.1.0
109
110* Mon Dec 19 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-6
111- Bumped raptor-ica, raptor-mua, and raptor-web to v1.0.1
112
113* Mon Dec 05 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-5
114- Bumped raptor-ica, raptor-mua, and raptor-web to v1.0.0
115
116* Wed Sep 28 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-4
117- Bumped raptor-mua to v0.2.1
118
119* Sat Sep 17 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-3
120- Bumped raptor-ica, raptor-mua, and raptor-web to v0.2.0
121
122* Fri Jun 3 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-2
123- Bumped raptor-mua and raptor-web to v0.1.1
124
125* Mon May 16 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-1
126- First version.
Note: See TracBrowser for help on using the repository browser.