2 Summary: Open source system to enable inter-institutional resource sharing
6 Group: System Environment/Libraries
8 URL: http://shibboleth.internet2.edu/
9 Source0: http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
12 BuildRequires: openssl-devel, curl-devel >= 7.10.6, xerces%{?xercesver}-c-devel >= 2.6.1
13 BuildRequires: xml-security-c-devel >= 1.3.1, log4cpp-devel >= 0.3.5
14 BuildRequires: zlib-devel, unixODBC-devel, opensaml-devel >= 2.0
15 %if "%{_vendor}" == "redhat"
16 BuildRequires: httpd-devel
18 %if "%{_vendor}" == "suse"
19 BuildRequires: apache2-devel
24 Shibboleth, a project of Internet2/MACE, is developing architectures,
25 policy structures, practical technologies, and an open source
26 implementation to support inter-institutional sharing of web resources
27 subject to access controls. In addition, Shibboleth will develop a
28 policy framework that will allow inter-operation within the higher
31 This package contains the shibboleth runtime library and apache module.
34 Summary: Shibboleth development Headers
35 Group: Development/Libraries
36 Requires: %{name} = %{version}
39 Shibboleth, a project of Internet2/MACE, is developing architectures,
40 policy structures, practical technologies, and an open source
41 implementation to support inter-institutional sharing of web resources
42 subject to access controls. In addition, Shibboleth will develop a
43 policy framework that will allow inter-operation within the higher
46 This package contains the headers and other necessary files to build
47 applications that use the shibboleth library.
49 %package selinux-policy-targeted
50 Summary: SELinux policy targeted configuration for Shibboleth SP
51 Group: System Environment/Base
52 Requires: selinux-policy-targeted-sources
54 %description selinux-policy-targeted
55 Shibboleth, a project of Internet2/MACE, is developing architectures,
56 policy structures, practical technologies, and an open source
57 implementation to support inter-institutional sharing of web resources
58 subject to access controls. In addition, Shibboleth will develop a
59 policy framework that will allow inter-operation within the higher
62 This package contains the SELinux Policy (source) Configuration to
63 enable the Shibboleth SP to integrate into Apache HTTPD in Red Hat /
64 Fedora's Policy Targeted SELinux implementation. It requires
65 rebuilding your policy, so you must have the policy-targeted-source
72 %configure %{?shib_options}
77 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
79 make install DESTDIR=$RPM_BUILD_ROOT
80 make -C selinux install DESTDIR=$RPM_BUILD_ROOT
81 mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs
83 find $RPM_BUILD_ROOT/%{_libexecdir} -type f -or -type l | grep \.so |
84 sed -e "s|$RPM_BUILD_ROOT||" | sort > rpm.filelist
90 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
95 # Plug the SP into Apache on a recognized system.
97 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_13.so ] ; then
98 APACHE_CONFIG="apache.config"
100 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_20.so ] ; then
101 APACHE_CONFIG="apache2.config"
103 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_22.so ] ; then
104 APACHE_CONFIG="apache22.config"
106 if [ "$APACHE_CONFIG" != "no" ] ; then
108 if [ -d %{_sysconfdir}/httpd/conf.d ] ; then
109 APACHE_CONFD="%{_sysconfdir}/httpd/conf.d"
111 if [ -d %{_sysconfdir}/apache2/conf.d ] ; then
112 APACHE_CONFD="%{_sysconfdir}/apache2/conf.d"
114 if [ "$APACHE_CONFD" != "no" ] ; then
115 if [ ! -f $APACHE_CONFD/shib.conf ] ; then
116 sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/%{name}-@-VERSION-@/g" \
117 %{_sysconfdir}/%{name}/$APACHE_CONFIG \
118 > $APACHE_CONFD/shib.conf
123 # Install the shibd init.d scripts and service
124 %if "%{_vendor}" == "redhat"
125 if [ -d %{_sysconfdir}/init.d ] ; then
126 if [ ! -f %{_sysconfdir}/init.d/shibd ] ; then
127 cp -p %{_sysconfdir}/%{name}/shibd %{_sysconfdir}/init.d/shibd
128 chmod 755 %{_sysconfdir}/init.d/shibd
129 chkconfig --add shibd
137 # delete the Apache configuration if we're being removed
138 [ "$1" = 0 ] || exit 0
139 [ -f %{_sysconfdir}/httpd/conf.d/shib.conf ] && \
140 rm -f %{_sysconfdir}/httpd/conf.d/shib.conf
141 [ -f %{_sysconfdir}/apache2/conf.d/shib.conf ] && \
142 rm -f %{_sysconfdir}/apache2/conf.d/shib.conf
145 %if "%{_vendor}" == "redhat"
146 chkconfig --del shibd
147 [ -f %{_sysconfdir}/init.d/shibd ] && \
148 rm -f %{_sysconfdir}/init.d/shibd
151 %triggerin selinux-policy-targeted -- %{name}
152 restorecon %{_sbindir}/shibd
154 %triggerin selinux-policy-targeted -- selinux-policy-targeted-sources
155 cd %{_sysconfdir}/selinux/targeted/src/policy || exit 1
158 restorecon %{_sbindir}/shibd
160 %files -f rpm.filelist
161 %defattr(-,root,root,-)
162 %doc _docs/CREDITS.txt _docs/LICENSE.txt _docs/NOTICE.txt _docs/README.txt _docs/RELEASE.txt
163 %doc _docs/logo.jpg _docs/main.css
165 %{_sbindir}/siterefresh
167 %{_libdir}/libshibsp.so.*
168 %{_libdir}/libshibsp-lite.so.*
169 %dir %{_localstatedir}/log/%{name}
170 %dir %{_datadir}/xml/%{name}
171 %{_datadir}/xml/%{name}
172 %dir %{_sysconfdir}/%{name}
173 %config(noreplace) %{_sysconfdir}/%{name}/*.xml
174 %config(noreplace) %{_sysconfdir}/%{name}/*.html
175 %config(noreplace) %{_sysconfdir}/%{name}/*.logger
176 %config %{_sysconfdir}/%{name}/sp-example.crt
177 %config %{_sysconfdir}/%{name}/sp-example.key
178 %{_sysconfdir}/%{name}/*.dist
179 %{_sysconfdir}/%{name}/apache*.config
180 %{_sysconfdir}/%{name}/shibd
181 %exclude %{_libexecdir}/*.la
184 %defattr(-,root,root,-)
186 %{_libdir}/libshibsp.so
187 %{_libdir}/libshibsp-lite.so
189 %files selinux-policy-targeted
190 %defattr(-,root,root,-)
191 %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/*.fc
192 %{_sysconfdir}/selinux/targeted/src/policy/domains/program/*.te
195 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-2
196 - Second alpha release
198 * Sun Jun 10 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-1
199 - First alpha release
201 * Mon Oct 2 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-11
202 - Applied fix for secadv 20061002
203 - Fix for metadata loader loop
205 * Wed Jun 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-10
206 - Applied fix for sec 20060615
208 * Fri Apr 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-9
209 - Misc. patches, SuSE, Apache 2.2, gcc 4.1, and 64-bit support
211 * Mon Jan 9 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-8
212 - Applied new fix for secadv 20060109
214 * Tue Nov 8 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-7
215 - Applied new fix for secadv 20050901 plus rollup
217 * Fri Sep 23 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-6
218 - Minor patches and default config changes
220 - Fix shib.conf creation
221 - Integrated init.d script
222 - Prevent replacement of config files
224 * Thu Sep 1 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-5
225 - Applied fix for secadv 20050901 plus rollup of NSAPI fixes
227 * Sun Apr 24 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-1
228 - Updated test programs and location of schemas.
229 - move siterefresh to to sbindir
231 * Fri Apr 1 2005 Derek Atkins <derek@ihtfp.com> - 1.3-1
232 - Add selinux-targeted-policy package
233 - move shar to sbindir
235 * Tue Oct 19 2004 Derek Atkins <derek@ihtfp.com> - 1.2-1
236 - Create SPEC file based on various versions in existence.