2 Version: @PACKAGE_VERSION@
4 Summary: Open source system for attribute-based Web SSO
5 Group: System Environment/Libraries
8 URL: http://shibboleth.internet2.edu/
9 Source: %{name}-sp-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
12 %if 0%{?suse_version} > 1030
13 PreReq: %{insserv_prereq}
14 BuildRequires: libXerces-c-devel >= 2.8.0
15 BuildRequires: libxml-security-c-devel >= 1.4.0
16 BuildRequires: libxmltooling-devel >= 1.2
17 BuildRequires: libsaml-devel >= 2.2
18 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
19 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel}
21 BuildRequires: xerces%{?xercesver}-c-devel >= 2.8.0
22 BuildRequires: xml-security-c-devel >= 1.4.0
23 BuildRequires: xmltooling-devel >= 1.2
24 BuildRequires: opensaml-devel >= 2.2
25 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
26 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
28 BuildRequires: gcc-c++
29 %{!?_without_doxygen:BuildRequires: doxygen}
30 %{!?_without_odbc:BuildRequires:unixODBC-devel}
31 BuildRequires: zlib-devel
32 %{?_with_fastcgi:BuildRequires: fcgi-devel}
33 %if "%{_vendor}" == "redhat"
34 %{!?_without_builtinapache:BuildRequires: httpd-devel}
36 %if "%{_vendor}" == "suse"
37 %{!?_without_builtinapache:BuildRequires: apache2-devel}
40 %if "%{_vendor}" == "suse"
41 %define pkgdocdir %{_docdir}/%{name}
43 %define pkgdocdir %{_docdir}/%{name}-%{version}
47 Shibboleth is a Web Single Sign-On implementations based on OpenSAML
48 that supports multiple protocols, federated identity, and the extensible
49 exchange of rich attributes subject to privacy controls.
51 This package contains the Shibboleth Service Provider runtime libraries
55 Summary: Shibboleth development Headers
56 Group: Development/Libraries
57 Requires: %{name} = %{version}
58 %if 0%{?suse_version} > 1030
59 Requires: libXerces-c-devel >= 2.8.0
60 Requires: libxml-security-c-devel >= 1.4.0
61 Requires: libxmltooling-devel >= 1.2
62 Requires: libsaml-devel >= 2.2
63 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
64 %{!?_with_log4cpp:Requires: liblog4shib-devel}
66 Requires: xerces%{?xercesver}-c-devel >= 2.8.0
67 Requires: xml-security-c-devel >= 1.4.0
68 Requires: xmltooling-devel >= 1.2
69 Requires: opensaml-devel >= 2.2
70 %{?_with_log4cpp:Requires: log4cpp-devel >= 1.0}
71 %{!?_with_log4cpp:Requires: log4shib-devel}
75 Shibboleth is a Web Single Sign-On implementations based on OpenSAML
76 that supports multiple protocols, federated identity, and the extensible
77 exchange of rich attributes subject to privacy controls.
79 This package includes files needed for development with Shibboleth.
86 %configure %{?_without_odbc:--disable-odbc} %{?_without_adfs:--disable-adfs} %{?_with_fastcgi} %{?_with_memcached} %{?shib_options}
87 %{__make} pkgdocdir=%{pkgdocdir}
90 %{__make} install NOKEYGEN=1 DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
92 %if "%{_vendor}" == "suse"
93 %{__sed} -i "s/\/var\/log\/httpd/\/var\/log\/apache2/g" \
94 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/native.logger
97 # Plug the SP into the built-in Apache on a recognized system.
100 if [ -f $RPM_BUILD_ROOT%{_libdir}/%{name}/mod_shib_13.so ] ; then
101 APACHE_CONFIG="apache.config"
103 if [ -f $RPM_BUILD_ROOT%{_libdir}/%{name}/mod_shib_20.so ] ; then
104 APACHE_CONFIG="apache2.config"
106 if [ -f $RPM_BUILD_ROOT%{_libdir}/%{name}/mod_shib_22.so ] ; then
107 APACHE_CONFIG="apache22.config"
109 %{?_without_builtinapache:APACHE_CONFIG="no"}
110 if [ "$APACHE_CONFIG" != "no" ] ; then
112 if [ -d %{_sysconfdir}/httpd/conf.d ] ; then
113 APACHE_CONFD="%{_sysconfdir}/httpd/conf.d"
115 if [ -d %{_sysconfdir}/apache2/conf.d ] ; then
116 APACHE_CONFD="%{_sysconfdir}/apache2/conf.d"
118 if [ "$APACHE_CONFD" != "no" ] ; then
119 %{__mkdir} -p $RPM_BUILD_ROOT$APACHE_CONFD
120 %{__cp} -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$APACHE_CONFIG $RPM_BUILD_ROOT$APACHE_CONFD/shib.conf
121 echo "%config $APACHE_CONFD/shib.conf" > rpm.filelist
125 %if "%{_vendor}" == "redhat" || "%{_vendor}" == "suse"
126 # %{_initddir} not yet in RHEL5, use deprecated %{_initrddir}
127 install -d -m 0755 $RPM_BUILD_ROOT%{_initrddir}
128 install -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/shibd-%{_vendor} $RPM_BUILD_ROOT%{_initrddir}/shibd
129 %if "%{_vendor}" == "suse"
130 install -d -m 0755 $RPM_BUILD_ROOT/%{_sbindir}
131 %{__ln} -sf $RPM_BUILD_ROOT%{_initrddir}/shibd $RPM_BUILD_ROOT/%{_sbindir}/rcshibd
139 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
142 %ifnos solaris2.8 solaris2.9 solaris2.10
147 cd %{_sysconfdir}/%{name}
150 %if "%{_vendor}" == "redhat"
151 # This adds the proper /etc/rc*.d links for the script
152 /sbin/chkconfig --add shibd
153 # On upgrade, restart components if they're already running.
154 if [ "$1" -gt "1" ] ; then
155 /etc/init.d/shibd status 1>/dev/null && /etc/init.d/shibd restart 1>/dev/null
156 %{!?_without_builtinapache:/etc/init.d/httpd status 1>/dev/null && /etc/init.d/httpd restart 1>/dev/null}
159 %if "%{_vendor}" == "suse"
160 # This adds the proper /etc/rc*.d links for the script
161 %{insserv_force_if_yast} shibd
165 %if "%{_vendor}" == "redhat"
166 if [ "$1" = 0 ] ; then
167 /sbin/service shibd stop >/dev/null 2>&1
168 /sbin/chkconfig --del shibd
171 %if "%{_vendor}" == "suse"
172 %{stop_on_removal} shibd
176 %ifnos solaris2.8 solaris2.9 solaris2.10
179 %if "%{_vendor}" == "suse"
180 %{restart_on_update} shibd apache2
185 # ugly hack if init script got removed during %postun by upgraded (buggy/2.1) package
186 %if "%{_vendor}" == "redhat"
187 if [ ! -f %{_initrddir}/shibd ] ; then
188 if [ -f %{_sysconfdir}/%{name}/shibd-%{_vendor} ] ; then
189 %{__cp} -p %{_sysconfdir}/%{name}/shibd-%{_vendor} %{_initrddir}/shibd
190 %{__chmod} 755 %{_initrddir}/shibd
191 /sbin/chkconfig --add shibd
196 %files -f rpm.filelist
197 %defattr(-,root,root,-)
200 %{_bindir}/resolvertest
201 %{_libdir}/libshibsp.so.*
202 %{_libdir}/libshibsp-lite.so.*
203 %dir %{_libdir}/%{name}
205 %exclude %{_libdir}/%{name}/*.la
206 %dir %{_localstatedir}/log/%{name}
207 %dir %{_localstatedir}/run/%{name}
208 %dir %{_datadir}/xml/%{name}
209 %{_datadir}/xml/%{name}/*
210 %dir %{_sysconfdir}/%{name}
211 %config(noreplace) %{_sysconfdir}/%{name}/*.xml
212 %config(noreplace) %{_sysconfdir}/%{name}/*.html
213 %config(noreplace) %{_sysconfdir}/%{name}/*.logger
214 %if "%{_vendor}" == "redhat" || "%{_vendor}" == "suse"
215 %config %{_initrddir}/shibd
217 %if "%{_vendor}" == "suse"
220 %{_sysconfdir}/%{name}/*.dist
221 %{_sysconfdir}/%{name}/apache*.config
222 %{_sysconfdir}/%{name}/shibd-*
223 %attr(755, root, root) %{_sysconfdir}/%{name}/keygen.sh
224 %attr(755, root, root) %{_sysconfdir}/%{name}/metagen.sh
225 %{_sysconfdir}/%{name}/*.xsl
227 %exclude %{pkgdocdir}/api
230 %defattr(-,root,root,-)
232 %{_libdir}/libshibsp.so
233 %{_libdir}/libshibsp-lite.so
234 %doc %{pkgdocdir}/api
237 * Mon Aug 10 2009 Scott Cantor <cantor.2@osu.edu> - 2.2.1-1
238 - Doc handling changes
241 * Tue Aug 4 2009 Scott Cantor <cantor.2@osu.edu> - 2.2.1-1
242 - Initial version for 2.2.1, with shibd/httpd restart on upgrade
244 * Thu Jun 25 2009 Scott Cantor <cantor.2@osu.edu> - 2.2-3
245 - Add additional cleanup to posttrans fix
247 * Tue Jun 23 2009 Scott Cantor <cantor.2@osu.edu> - 2.2-2
248 - Reverse without_builtinapache macro test
249 - Fix init script handling on Red Hat to handle upgrades
251 * Wed Dec 3 2008 Scott Cantor <cantor.2@osu.edu> - 2.2-1
252 - Bump minor version.
253 - Make keygen.sh executable.
254 - Fixing SUSE Xerces dependency name.
255 - Optionally package shib.conf.
257 * Tue Jun 10 2008 Scott Cantor <cantor.2@osu.edu> - 2.1-1
258 - Change shib.conf handling to treat as config file.
260 * Mon Mar 17 2008 Scott Cantor <cantor.2@osu.edu> - 2.0-6
263 * Fri Jan 18 2008 Scott Cantor <cantor.2@osu.edu> - 2.0-5
264 - Release candidate 1.
266 * Sun Oct 21 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-4
267 - libexec -> lib/shibboleth changes
268 - Added doc subpackage
270 * Thu Aug 16 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-3
273 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-2
274 - Second alpha release.
276 * Sun Jun 10 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-1
277 - First alpha release.
279 * Mon Oct 2 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-11
280 - Applied fix for secadv 20061002
281 - Fix for metadata loader loop
283 * Wed Jun 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-10
284 - Applied fix for sec 20060615
286 * Fri Apr 15 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-9
287 - Misc. patches, SuSE, Apache 2.2, gcc 4.1, and 64-bit support
289 * Mon Jan 9 2006 Scott Cantor <cantor.2@osu.edu> - 1.3-8
290 - Applied new fix for secadv 20060109
292 * Tue Nov 8 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-7
293 - Applied new fix for secadv 20050901 plus rollup
295 * Fri Sep 23 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-6
296 - Minor patches and default config changes
298 - Fix shib.conf creation
299 - Integrated init.d script
300 - Prevent replacement of config files
302 * Thu Sep 1 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-5
303 - Applied fix for secadv 20050901 plus rollup of NSAPI fixes
305 * Sun Apr 24 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-1
306 - Updated test programs and location of schemas.
307 - move siterefresh to to sbindir
309 * Fri Apr 1 2005 Derek Atkins <derek@ihtfp.com> - 1.3-1
310 - Add selinux-targeted-policy package
311 - move shar to sbindir
313 * Tue Oct 19 2004 Derek Atkins <derek@ihtfp.com> - 1.2-1
314 - Create SPEC file based on various versions in existence.