]> git.pld-linux.org Git - packages/cas.git/blob - cas.spec
- moved webapp to subpackage
[packages/cas.git] / cas.spec
1 #
2 # TODO:
3 # - package all modules (modules/*.war)
4 # - subpackages for modules
5 # - fix tomcat path
6 %include        /usr/lib/rpm/macros.java
7 Summary:        JA-SIG Central Authentication Service
8 Name:           cas-server
9 Version:        3.3.5
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
14 # Source0-md5:  c12594a2af98ee2dd11a8c97895d91af
15 URL:            http://www.ja-sig.org/products/cas/
16 BuildRequires:  jpackage-utils
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
40
41 %package webapp
42 Summary:        JA-SIG CAS Web Application
43 Group:          Applications/WWW
44 Requires:       %{name}-%{version} = %{release}
45
46 %description webapp
47 JA-SIG CAS Web Application
48
49 %prep
50 %setup -q
51
52 %build
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/cas-server,%{_datadir}/cas-server,%{_sharedstatedir}/{cas-server,tomcat/conf/Catalina/localhost}}
57 install modules/%{name}-webapp-%{version}.war $RPM_BUILD_ROOT%{_datadir}/cas-server/cas.war
58 #ln -sf %{_sysconfdir}/cas-server/web.xml $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/cas-server/WEB-INF/web.xml
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %dir %{_sysconfdir}/cas-server
66 #%config(noreplace) %{_sysconfdir}/cas-server/web.xml
67 # do not make this file writeable by tomcat. We do not want to allow user to
68 # undeploy this app via tomcat manager.
69 #%config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/cas-server.xml
70 %files webapp
71 %defattr(644,root,root,755)
72 %{_datadir}/cas-server/cas.war
73 %attr(755,tomcat,tomcat) %dir %{_sharedstatedir}/cas-server
This page took 0.145664 seconds and 3 git commands to generate.