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
13 BuildRequires: xerces%{?xercesver}-c-devel >= 2.6.1, xml-security-c-devel >= 1.3.1
14 BuildRequires: zlib-devel, opensaml-devel >= 2.0
15 %if %{?_with_log4cpp:1}
16 BuildRequires: log4cpp-devel >= 0.3.5
18 BuildRequires: log4shib-devel
20 %{!?_without_odbc:BuildRequires: unixODBC-devel}
21 %if "%{_vendor}" == "redhat"
22 %{!?_without_builtinapache:BuildRequires: httpd-devel}
24 %if "%{_vendor}" == "suse"
25 %{!?_without_builtinapache:BuildRequires: apache2-devel}
30 Shibboleth, a project of Internet2/MACE, is developing architectures,
31 policy structures, practical technologies, and an open source
32 implementation to support inter-institutional sharing of web resources
33 subject to access controls. In addition, Shibboleth will develop a
34 policy framework that will allow inter-operation within the higher
37 This package contains the shibboleth runtime library and apache module.
40 Summary: Shibboleth development Headers
41 Group: Development/Libraries
42 Requires: %{name} = %{version}
45 Shibboleth, a project of Internet2/MACE, is developing architectures,
46 policy structures, practical technologies, and an open source
47 implementation to support inter-institutional sharing of web resources
48 subject to access controls. In addition, Shibboleth will develop a
49 policy framework that will allow inter-operation within the higher
52 This package contains the headers and other necessary files to build
53 applications that use the shibboleth library.
55 %package selinux-policy-targeted
56 Summary: SELinux policy targeted configuration for Shibboleth SP
57 Group: System Environment/Base
58 Requires: selinux-policy-targeted-sources
60 %description selinux-policy-targeted
61 Shibboleth, a project of Internet2/MACE, is developing architectures,
62 policy structures, practical technologies, and an open source
63 implementation to support inter-institutional sharing of web resources
64 subject to access controls. In addition, Shibboleth will develop a
65 policy framework that will allow inter-operation within the higher
68 This package contains the SELinux Policy (source) Configuration to
69 enable the Shibboleth SP to integrate into Apache HTTPD in Red Hat /
70 Fedora's Policy Targeted SELinux implementation. It requires
71 rebuilding your policy, so you must have the policy-targeted-source
78 %configure %{?_without_odbc:--disable-odbc} %{?_without_adfs:--disable-adfs} %{?shib_options}
83 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
85 make install DESTDIR=$RPM_BUILD_ROOT
86 make -C selinux install DESTDIR=$RPM_BUILD_ROOT
87 mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs
89 %if "%{_vendor}" == "suse"
90 sed -i "s/\/var\/log\/httpd/\/var\/log\/apache2/g" \
91 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/native.logger
94 find $RPM_BUILD_ROOT/%{_libexecdir} -type f -or -type l | grep \.so |
95 sed -e "s|$RPM_BUILD_ROOT||" | sort > rpm.filelist
101 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
106 # Plug the SP into Apache on a recognized system.
108 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_13.so ] ; then
109 APACHE_CONFIG="apache.config"
111 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_20.so ] ; then
112 APACHE_CONFIG="apache2.config"
114 if [ -f $RPM_BUILD_ROOT/%{_libexecdir}/mod_shib_22.so ] ; then
115 APACHE_CONFIG="apache22.config"
117 if [ "$APACHE_CONFIG" != "no" ] ; then
119 if [ -d %{_sysconfdir}/httpd/conf.d ] ; then
120 APACHE_CONFD="%{_sysconfdir}/httpd/conf.d"
122 if [ -d %{_sysconfdir}/apache2/conf.d ] ; then
123 APACHE_CONFD="%{_sysconfdir}/apache2/conf.d"
125 if [ "$APACHE_CONFD" != "no" ] ; then
126 if [ ! -f $APACHE_CONFD/shib.conf ] ; then
127 %if "%{_vendor}" == "suse"
128 sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/packages\/%{name}/g" \
129 %{_sysconfdir}/%{name}/$APACHE_CONFIG \
130 > $APACHE_CONFD/shib.conf
132 sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/%{name}-@-VERSION-@/g" \
133 %{_sysconfdir}/%{name}/$APACHE_CONFIG \
134 > $APACHE_CONFD/shib.conf
140 # Install the shibd init.d scripts and service
141 %if "%{_vendor}" == "redhat"
142 if [ -d %{_sysconfdir}/init.d ] ; then
143 if [ ! -f %{_sysconfdir}/init.d/shibd ] ; then
144 cp -p %{_sysconfdir}/%{name}/shibd-%{_vendor} %{_sysconfdir}/init.d/shibd
145 chmod 755 %{_sysconfdir}/init.d/shibd
146 chkconfig --add shibd
154 # delete the Apache configuration if we're being removed
155 [ "$1" = 0 ] || exit 0
156 [ -f %{_sysconfdir}/httpd/conf.d/shib.conf ] && \
157 rm -f %{_sysconfdir}/httpd/conf.d/shib.conf
158 [ -f %{_sysconfdir}/apache2/conf.d/shib.conf ] && \
159 rm -f %{_sysconfdir}/apache2/conf.d/shib.conf
162 %if "%{_vendor}" == "redhat"
163 chkconfig --del shibd
164 [ -f %{_sysconfdir}/init.d/shibd ] && \
165 rm -f %{_sysconfdir}/init.d/shibd
168 %triggerin selinux-policy-targeted -- %{name}
169 restorecon %{_sbindir}/shibd
171 %triggerin selinux-policy-targeted -- selinux-policy-targeted-sources
172 cd %{_sysconfdir}/selinux/targeted/src/policy || exit 1
175 restorecon %{_sbindir}/shibd
177 %files -f rpm.filelist
178 %defattr(-,root,root,-)
179 %doc _docs/CREDITS.txt _docs/LICENSE.txt _docs/NOTICE.txt _docs/README.txt _docs/RELEASE.txt
180 %doc _docs/logo.jpg _docs/main.css
182 %{_sbindir}/siterefresh
184 %{_libdir}/libshibsp.so.*
185 %{_libdir}/libshibsp-lite.so.*
186 %dir %{_localstatedir}/log/%{name}
187 %dir %{_datadir}/xml/%{name}
188 %{_datadir}/xml/%{name}
189 %dir %{_sysconfdir}/%{name}
190 %config(noreplace) %{_sysconfdir}/%{name}/*.xml
191 %config(noreplace) %{_sysconfdir}/%{name}/*.html
192 %config(noreplace) %{_sysconfdir}/%{name}/*.logger
193 %config %{_sysconfdir}/%{name}/sp-example.crt
194 %config %{_sysconfdir}/%{name}/sp-example.key
195 %{_sysconfdir}/%{name}/*.dist
196 %{_sysconfdir}/%{name}/apache*.config
197 %{_sysconfdir}/%{name}/shibd-redhat
198 %{_sysconfdir}/%{name}/shibd-debian
199 %exclude %{_libexecdir}/*.la
202 %defattr(-,root,root,-)
204 %{_libdir}/libshibsp.so
205 %{_libdir}/libshibsp-lite.so
207 %files selinux-policy-targeted
208 %defattr(-,root,root,-)
209 %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/*.fc
210 %{_sysconfdir}/selinux/targeted/src/policy/domains/program/*.te
213 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-2
214 - Second alpha release
216 * Sun Jun 10 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-1
217 - First alpha release
219 * Mon Oct 2 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-11
220 - Applied fix for secadv 20061002
221 - Fix for metadata loader loop
223 * Wed Jun 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-10
224 - Applied fix for sec 20060615
226 * Fri Apr 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-9
227 - Misc. patches, SuSE, Apache 2.2, gcc 4.1, and 64-bit support
229 * Mon Jan 9 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-8
230 - Applied new fix for secadv 20060109
232 * Tue Nov 8 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-7
233 - Applied new fix for secadv 20050901 plus rollup
235 * Fri Sep 23 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-6
236 - Minor patches and default config changes
238 - Fix shib.conf creation
239 - Integrated init.d script
240 - Prevent replacement of config files
242 * Thu Sep 1 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-5
243 - Applied fix for secadv 20050901 plus rollup of NSAPI fixes
245 * Sun Apr 24 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-1
246 - Updated test programs and location of schemas.
247 - move siterefresh to to sbindir
249 * Fri Apr 1 2005 Derek Atkins <derek@ihtfp.com> - 1.3-1
250 - Add selinux-targeted-policy package
251 - move shar to sbindir
253 * Tue Oct 19 2004 Derek Atkins <derek@ihtfp.com> - 1.2-1
254 - Create SPEC file based on various versions in existence.