]>
Commit | Line | Data |
---|---|---|
d2c1e630 SP |
1 | %include /usr/lib/rpm/macros.java |
2 | Summary: JA-SIG Central Authentication Service | |
3 | Name: cas-server | |
4 | Version: 3.3.1 | |
5 | Release: 0.1 | |
6 | License: MIT License | |
7 | Group: Development/Languages/Java | |
8 | Source0: http://www.ja-sig.org/downloads/cas/%{name}-%{version}-release.tar.gz | |
9 | # Source0-md5: 2b7df2a84e12b045c5accc987f94f169 | |
10 | URL: http://www.ja-sig.org/products/cas/ | |
11 | BuildRequires: jpackage-utils | |
12 | BuildRequires: maven | |
13 | BuildRequires: rpm-javaprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.300 | |
15 | # Require version that uses tomcat uid/gid | |
16 | Requires: apache-tomcat >= 5.5.27-0.2 | |
17 | Requires: jpackage-utils | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | CAS is an authentication system originally created by Yale University | |
23 | to provide a trusted way for an application to authenticate a user. | |
24 | CAS became a JA-SIG project in December 2004. | |
25 | ||
26 | CAS provides enterprise single sign on service: CAS Downloads | |
27 | ||
28 | - An open and well-documented protocol | |
29 | - An open-source Java server component | |
30 | - A library of clients for Java, .Net, PHP, Perl, Apache, uPortal, and | |
31 | others | |
32 | - Integrates with uPortal, BlueSocket, TikiWiki, Mule, Liferay, Moodle | |
33 | and others | |
34 | - Community documentation and implementation support | |
35 | - An extensive community of adopters | |
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | mvn package install | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/cas-server,%{_datadir}/tomcat/webapps/cas-server,%{_sharedstatedir}/{cas-server,tomcat/conf/Catalina/localhost}} | |
45 | cp -a . $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/cas-server | |
46 | ln -sf %{_sysconfdir}/cas-server/web.xml $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/cas-server/WEB-INF/web.xml | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %dir %{_sysconfdir}/cas-server | |
54 | %config(noreplace) %{_sysconfdir}/cas-server/web.xml | |
55 | # do not make this file writeable by tomcat. We do not want to allow user to | |
56 | # undeploy this app via tomcat manager. | |
57 | %config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/cas-server.xml | |
58 | %{_datadir}/tomcat/webapps/cas-server | |
59 | %attr(755,tomcat,tomcat) %dir %{_sharedstatedir}/cas-server |