]>
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 | |
12 | Group: Development/Languages/Java | |
13 | Source0: http://www.ja-sig.org/downloads/cas/%{name}-%{version}-release.tar.gz | |
b6643417 | 14 | # Source0-md5: c12594a2af98ee2dd11a8c97895d91af |
d2c1e630 SP |
15 | URL: http://www.ja-sig.org/products/cas/ |
16 | BuildRequires: jpackage-utils | |
d2c1e630 SP |
17 | BuildRequires: rpm-javaprov |
18 | BuildRequires: rpmbuild(macros) >= 1.300 | |
19 | # Require version that uses tomcat uid/gid | |
20 | Requires: apache-tomcat >= 5.5.27-0.2 | |
21 | Requires: jpackage-utils | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | CAS is an authentication system originally created by Yale University | |
27 | to provide a trusted way for an application to authenticate a user. | |
28 | CAS became a JA-SIG project in December 2004. | |
29 | ||
30 | CAS provides enterprise single sign on service: CAS Downloads | |
31 | ||
32 | - An open and well-documented protocol | |
33 | - An open-source Java server component | |
34 | - A library of clients for Java, .Net, PHP, Perl, Apache, uPortal, and | |
35 | others | |
36 | - Integrates with uPortal, BlueSocket, TikiWiki, Mule, Liferay, Moodle | |
37 | and others | |
38 | - Community documentation and implementation support | |
39 | - An extensive community of adopters | |
8edb2437 | 40 | |
830c0d28 SP |
41 | %package core |
42 | Summary: JA-SIG CAS Core | |
43 | Group: Development/Languages/Java | |
44 | Requires: %{name}-%{version} = %{release} | |
45 | ||
46 | %description core | |
47 | JA-SIG CAS Core. | |
48 | ||
275735ba SP |
49 | %package webapp |
50 | Summary: JA-SIG CAS Web Application | |
51 | Group: Applications/WWW | |
52 | Requires: %{name}-%{version} = %{release} | |
53 | ||
54 | %description webapp | |
830c0d28 | 55 | JA-SIG CAS Web Application. |
275735ba | 56 | |
d2c1e630 SP |
57 | %prep |
58 | %setup -q | |
59 | ||
60 | %build | |
d2c1e630 SP |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
63132991 | 64 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/cas-server,%{_datadir}/cas-server,%{_sharedstatedir}/{cas-server,tomcat/conf/Catalina/localhost}} |
830c0d28 SP |
65 | |
66 | MODULES="core integration-berkeleydb integration-jboss integration-memcached integration-restlet support-generic support-jdbc support-ldap support-legacy support-openid support-radius support-spnego support-trusted support-x509" | |
67 | ||
68 | for i in $MODULES; do | |
69 | ||
70 | install modules/%{name}-$i-%{version}.jar $RPM_BUILD_ROOT%{_datadir}/cas-server/cas-$i.jar | |
93557097 | 71 | #ln -sf %{_sysconfdir}/cas-server/web.xml $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/cas-server/WEB-INF/web.xml |
830c0d28 SP |
72 | done |
73 | ||
74 | install modules/%{name}-webapp-%{version}.war $RPM_BUILD_ROOT%{_datadir}/cas-server/cas.war | |
d2c1e630 SP |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %dir %{_sysconfdir}/cas-server | |
93557097 | 82 | #%config(noreplace) %{_sysconfdir}/cas-server/web.xml |
d2c1e630 SP |
83 | # do not make this file writeable by tomcat. We do not want to allow user to |
84 | # undeploy this app via tomcat manager. | |
93557097 | 85 | #%config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/cas-server.xml |
830c0d28 SP |
86 | |
87 | %files core | |
88 | %defattr(644,root,root,755) | |
89 | %{_datadir}/cas-server/cas-core.jar | |
90 | ||
275735ba SP |
91 | %files webapp |
92 | %defattr(644,root,root,755) | |
93 | %{_datadir}/cas-server/cas.war | |
d2c1e630 | 94 | %attr(755,tomcat,tomcat) %dir %{_sharedstatedir}/cas-server |