]>
Commit | Line | Data |
---|---|---|
93557097 SP |
1 | # |
2 | # TODO: | |
830c0d28 | 3 | # - package all $MODULES |
93557097 SP |
4 | # - subpackages for modules |
5 | # - fix tomcat path | |
d2c1e630 SP |
6 | %include /usr/lib/rpm/macros.java |
7 | Summary: JA-SIG Central Authentication Service | |
8 | Name: cas-server | |
b6643417 | 9 | Version: 3.3.5 |
d2c1e630 SP |
10 | Release: 0.1 |
11 | License: MIT License | |
891b8000 | 12 | Group: Networking/Daemons/Java/Servlets |
d2c1e630 | 13 | Source0: http://www.ja-sig.org/downloads/cas/%{name}-%{version}-release.tar.gz |
b6643417 | 14 | # Source0-md5: c12594a2af98ee2dd11a8c97895d91af |
b8de829f | 15 | Source1: %{name}-context.xml |
d2c1e630 SP |
16 | URL: http://www.ja-sig.org/products/cas/ |
17 | BuildRequires: jpackage-utils | |
d2c1e630 SP |
18 | BuildRequires: rpm-javaprov |
19 | BuildRequires: rpmbuild(macros) >= 1.300 | |
d2c1e630 | 20 | Requires: jpackage-utils |
891b8000 | 21 | Requires: tomcat >= 6 |
d2c1e630 SP |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
891b8000 | 25 | %define webappdir %{_datadir}/%{name} |
26 | %define libdir %{_datadir}/%{name}/WEB-INF/lib | |
27 | ||
d2c1e630 SP |
28 | %description |
29 | CAS is an authentication system originally created by Yale University | |
30 | to provide a trusted way for an application to authenticate a user. | |
31 | CAS became a JA-SIG project in December 2004. | |
32 | ||
33 | CAS provides enterprise single sign on service: CAS Downloads | |
34 | ||
35 | - An open and well-documented protocol | |
36 | - An open-source Java server component | |
37 | - A library of clients for Java, .Net, PHP, Perl, Apache, uPortal, and | |
38 | others | |
39 | - Integrates with uPortal, BlueSocket, TikiWiki, Mule, Liferay, Moodle | |
40 | and others | |
41 | - Community documentation and implementation support | |
42 | - An extensive community of adopters | |
8edb2437 | 43 | |
891b8000 | 44 | %package authenticator-spnego |
45 | Summary: Spnego authenticator for CAS server | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Group: Libraries/Java | |
48 | ||
49 | %description authenticator-spnego | |
50 | ||
51 | %package authenticator-x509 | |
52 | Summary: x509 authenticator for CAS server | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | Group: Libraries/Java | |
55 | ||
56 | %description authenticator-x509 | |
57 | ||
58 | %package authenticator-openid | |
59 | Summary: OpenID authenticator for CAS server | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | Group: Libraries/Java | |
62 | ||
63 | %description authenticator-openid | |
64 | ||
65 | %package authenticator-legacy | |
66 | Summary: Legacy authenticator for CAS server | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Group: Libraries/Java | |
69 | ||
70 | %description authenticator-legacy | |
71 | ||
72 | %package authenticator-radius | |
73 | Summary: Radius authenticator for CAS server | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Group: Libraries/Java | |
76 | ||
77 | %description authenticator-radius | |
78 | ||
79 | %package authenticator-ldap | |
80 | Summary: LDAP authenticator for CAS server | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Group: Libraries/Java | |
83 | ||
84 | %description authenticator-ldap | |
85 | ||
86 | %package authenticator-generic | |
87 | Summary: Generic authenticator for CAS server | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | Group: Libraries/Java | |
90 | ||
91 | %description authenticator-generic | |
92 | ||
93 | %package authenticator-trusted | |
94 | Summary: Trusted authenticator for CAS server | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | Group: Libraries/Java | |
97 | ||
98 | %description authenticator-trusted | |
99 | ||
100 | %package authenticator-jdbc | |
101 | Summary: JDBC authenticator for CAS server | |
102 | Requires: %{name} = %{version}-%{release} | |
103 | Group: Libraries/Java | |
104 | ||
105 | %description authenticator-jdbc | |
106 | ||
107 | %package integration-berkeleydb | |
108 | Summary: Berkeleydb ticket registry for CAS server | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Group: Libraries/Java | |
111 | ||
112 | %description integration-berkeleydb | |
113 | ||
114 | %package integration-jboss | |
115 | Summary: Jboss ticket registry for CAS server | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | Group: Libraries/Java | |
118 | ||
119 | %description integration-jboss | |
120 | ||
121 | %package integration-memcached | |
122 | Summary: Memory ticket registry for CAS server | |
123 | Requires: %{name} = %{version}-%{release} | |
124 | Group: Libraries/Java | |
125 | ||
126 | %description integration-memcached | |
127 | ||
128 | %package integration-restlet | |
129 | Summary: I have no idea WTF is that, but it is for CAS server | |
130 | Requires: %{name} = %{version}-%{release} | |
131 | Group: Libraries/Java | |
132 | ||
133 | %description integration-restlet | |
134 | ||
d2c1e630 SP |
135 | %prep |
136 | %setup -q | |
b8de829f | 137 | unzip modules/%{name}-webapp-%{version}.war -d webapp |
d2c1e630 SP |
138 | |
139 | %build | |
d2c1e630 SP |
140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
b8de829f | 143 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/cas-server,%{_datadir},%{_sharedstatedir}/{cas-server,tomcat/conf/Catalina/localhost}} |
830c0d28 | 144 | |
891b8000 | 145 | cp -a webapp $RPM_BUILD_ROOT%{webappdir} |
830c0d28 | 146 | |
fddcb93d | 147 | MODULES="integration-berkeleydb |
148 | integration-jboss | |
149 | integration-memcached | |
150 | integration-restlet | |
151 | support-generic | |
152 | support-jdbc | |
153 | support-ldap | |
154 | support-legacy | |
155 | support-openid | |
156 | support-radius | |
157 | support-spnego | |
158 | support-trusted | |
159 | support-x509" | |
830c0d28 | 160 | |
ce7a3fad | 161 | for i in $MODULES; do |
891b8000 | 162 | install modules/%{name}-$i-%{version}.jar $RPM_BUILD_ROOT%{libdir}/%{name}-$i-%{version}.jar |
830c0d28 SP |
163 | done |
164 | ||
fddcb93d | 165 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sharedstatedir}/tomcat/conf/Catalina/localhost/cas-server.xml |
166 | ||
d2c1e630 SP |
167 | %clean |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
170 | %files | |
171 | %defattr(644,root,root,755) | |
b8de829f | 172 | %config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/cas-server.xml |
891b8000 | 173 | %{_datadir}/cas-server |
174 | %exclude %{libdir}/cas-server-support-spnego-3.3.5.jar | |
175 | %exclude %{libdir}/cas-server-integration-berkeleydb-3.3.5.jar | |
176 | %exclude %{libdir}/cas-server-support-x509-3.3.5.jar | |
177 | %exclude %{libdir}/cas-server-integration-jboss-3.3.5.jar | |
178 | %exclude %{libdir}/cas-server-support-openid-3.3.5.jar | |
179 | %exclude %{libdir}/cas-server-support-legacy-3.3.5.jar | |
180 | %exclude %{libdir}/cas-server-support-radius-3.3.5.jar | |
181 | %exclude %{libdir}/cas-server-integration-memcached-3.3.5.jar | |
182 | %exclude %{libdir}/cas-server-integration-restlet-3.3.5.jar | |
183 | %exclude %{libdir}/cas-server-support-ldap-3.3.5.jar | |
184 | %exclude %{libdir}/cas-server-support-generic-3.3.5.jar | |
185 | %exclude %{libdir}/cas-server-support-trusted-3.3.5.jar | |
186 | %exclude %{libdir}/cas-server-support-jdbc-3.3.5.jar | |
ac968d81 | 187 | %attr(2755,root,servlet) %dir %{_sharedstatedir}/cas-server |
891b8000 | 188 | |
189 | %files authenticator-spnego | |
190 | %defattr(644,root,root,755) | |
191 | %{libdir}/cas-server-support-spnego-3.3.5.jar | |
192 | ||
193 | %files authenticator-x509 | |
194 | %defattr(644,root,root,755) | |
195 | %{libdir}/cas-server-support-x509-3.3.5.jar | |
196 | ||
197 | %files authenticator-openid | |
198 | %defattr(644,root,root,755) | |
199 | %{libdir}/cas-server-support-openid-3.3.5.jar | |
200 | ||
201 | %files authenticator-legacy | |
202 | %defattr(644,root,root,755) | |
203 | %{libdir}/cas-server-support-legacy-3.3.5.jar | |
204 | ||
205 | %files authenticator-radius | |
206 | %defattr(644,root,root,755) | |
207 | %{libdir}/cas-server-support-radius-3.3.5.jar | |
208 | ||
209 | %files authenticator-ldap | |
210 | %defattr(644,root,root,755) | |
211 | %{libdir}/cas-server-support-ldap-3.3.5.jar | |
212 | ||
213 | %files authenticator-generic | |
214 | %defattr(644,root,root,755) | |
215 | %{libdir}/cas-server-support-generic-3.3.5.jar | |
216 | ||
217 | %files authenticator-trusted | |
218 | %defattr(644,root,root,755) | |
219 | %{libdir}/cas-server-support-trusted-3.3.5.jar | |
220 | ||
221 | %files authenticator-jdbc | |
222 | %defattr(644,root,root,755) | |
223 | %{libdir}/cas-server-support-jdbc-3.3.5.jar | |
224 | ||
225 | %files integration-berkeleydb | |
226 | %defattr(644,root,root,755) | |
227 | %{libdir}/cas-server-integration-berkeleydb-3.3.5.jar | |
228 | ||
229 | %files integration-jboss | |
230 | %defattr(644,root,root,755) | |
231 | %{libdir}/cas-server-integration-jboss-3.3.5.jar | |
232 | ||
233 | %files integration-memcached | |
234 | %defattr(644,root,root,755) | |
235 | %{libdir}/cas-server-integration-memcached-3.3.5.jar | |
236 | ||
237 | %files integration-restlet | |
238 | %defattr(644,root,root,755) | |
239 | %{libdir}/cas-server-integration-restlet-3.3.5.jar |