2 Version: @PACKAGE_VERSION@
4 Summary: OpenSAML SAML library
5 Group: Development/Libraries/C and C++
6 Vendor: Shibboleth Consortium
8 URL: http://www.opensaml.org/
9 Source0: %{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 %if 0%{?suse_version} > 1030 && 0%{?suse_version} < 1130
12 BuildRequires: libXerces-c-devel >= 2.8.0
14 %if 0%{?rhel} >= 7 || 0%{?centos_version} >= 700
15 BuildRequires: xerces-c-devel >= 2.8
17 BuildRequires: libxerces-c-devel >= 2.8.0
20 BuildRequires: libxml-security-c-devel >= 1.4.0
21 BuildRequires: libxmltooling-devel >= 1.4
22 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
23 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel >= 1.0.4}
24 BuildRequires: gcc-c++, boost-devel >= 1.32.0
25 %if 0%{?suse_version} > 1000
26 BuildRequires: pkg-config
28 %{!?_without_doxygen:BuildRequires: doxygen}
29 %if "%{_vendor}" == "redhat"
30 BuildRequires: redhat-rpm-config
33 %if "%{_vendor}" == "suse"
34 %define pkgdocdir %{_docdir}/%{name}
36 %define pkgdocdir %{_docdir}/%{name}-%{version}
40 OpenSAML is an open source implementation of the OASIS Security Assertion
41 Markup Language Specification. It contains a set of open source C++ classes
42 that support the SAML 1.0, 1.1, and 2.0 specifications.
44 %package -n @PACKAGE_NAME@-bin
45 Summary: Utilities for OpenSAML library
46 Group: Development/Libraries/C and C++
48 %description -n @PACKAGE_NAME@-bin
49 OpenSAML is an open source implementation of the OASIS Security Assertion
50 Markup Language Specification. It contains a set of open source C++ classes
51 that support the SAML 1.0, 1.1, and 2.0 specifications.
53 This package contains the utility programs.
56 Summary: OpenSAML SAML library
57 Group: Development/Libraries/C and C++
58 Provides: @PACKAGE_NAME@ = %{version}-%{release}
59 Obsoletes: @PACKAGE_NAME@ < %{version}-%{release}
61 %description -n libsaml8
62 OpenSAML is an open source implementation of the OASIS Security Assertion
63 Markup Language Specification. It contains a set of open source C++ classes
64 that support the SAML 1.0, 1.1, and 2.0 specifications.
66 This package contains just the shared library.
68 %package -n libsaml-devel
69 Summary: OpenSAML development Headers
70 Group: Development/Libraries/C and C++
71 Requires: libsaml8 = %{version}-%{release}
72 Provides: @PACKAGE_NAME@-devel = %{version}-%{release}
73 Obsoletes: @PACKAGE_NAME@-devel < %{version}-%{release}
74 %if 0%{?suse_version} > 1030 && 0%{?suse_version} < 1130
75 Requires: libXerces-c-devel >= 2.8.0
77 %if 0%{?rhel} >= 7 || 0%{?centos_version} >= 700
78 Requires: xerces-c-devel >= 2.8
80 Requires: libxerces-c-devel >= 2.8.0
83 Requires: libxml-security-c-devel >= 1.4.0
84 Requires: libxmltooling-devel >= 1.4
85 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
86 %{!?_with_log4cpp:Requires: liblog4shib-devel >= 1.0.4}
88 %description -n libsaml-devel
89 OpenSAML is an open source implementation of the OASIS Security Assertion
90 Markup Language Specification. It contains a set of open source C++ classes
91 that support the SAML 1.0, 1.1, and 2.0 specifications.
93 This package includes files needed for development with OpenSAML.
95 %package -n @PACKAGE_NAME@-schemas
96 Summary: OpenSAML schemas and catalog
97 Group: Development/Libraries/C and C++
99 %description -n @PACKAGE_NAME@-schemas
100 OpenSAML is an open source implementation of the OASIS Security Assertion
101 Markup Language Specification. It contains a set of open source C++ classes
102 that support the SAML 1.0, 1.1, and 2.0 specifications.
104 This package includes XML schemas and related files.
110 %configure %{?saml_options}
114 %{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
115 # Don't package unit tester if present.
116 %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/samltest
122 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
124 %ifnos solaris2.8 solaris2.9 solaris2.10
125 %post -n libsaml8 -p /sbin/ldconfig
128 %ifnos solaris2.8 solaris2.9 solaris2.10
129 %postun -n libsaml8 -p /sbin/ldconfig
132 %files -n @PACKAGE_NAME@-bin
133 %defattr(-,root,root,-)
137 %defattr(-,root,root,-)
138 %{_libdir}/libsaml.so.*
140 %files -n @PACKAGE_NAME@-schemas
141 %defattr(-,root,root,-)
142 %dir %{_datadir}/xml/@PACKAGE_NAME@
143 %{_datadir}/xml/@PACKAGE_NAME@/*
145 %files -n libsaml-devel
146 %defattr(-,root,root,-)
149 %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc
153 * Tue May 13 2014 Ian Young <ian@iay.org.uk> - 2.5.3-1.2
154 - Update package dependencies for RHEL/CentOS 7
155 - Fixed bogus dates in changelog
157 * Wed Dec 14 2011 Scott Cantor <cantor.2@osu.edu> - 2.5-1
158 - Update lib package number.
159 - Add boost-devel dependency.
161 * Tue Oct 26 2010 Scott Cantor <cantor.2@osu.edu> - 2.4-1
163 - Add pkg-config support.
164 - Sync package names for side by side install.
165 - Adjust Xerces dependency name and Group setting
166 - Split out schemas into separate subpackage
168 * Mon Aug 31 2009 Scott Cantor <cantor.2@osu.edu> - 2.3-1
169 - Bump soname for SUSE packaging.
171 * Sat Aug 8 2009 Scott Cantor <cantor.2@osu.edu> - 2.2.1-1
173 - Stop packaging unit tester
175 * Wed Dec 3 2008 Scott Cantor <cantor.2@osu.edu> - 2.2-1
176 - Bumping for minor update.
177 - Fixing SUSE Xerces dependency name.
179 * Tue Jul 1 2008 Scott Cantor <cantor.2@osu.edu> - 2.1-1
180 - Bumping for minor update.
182 * Mon Mar 17 2008 Scott Cantor <cantor.2@osu.edu> - 2.0-6
185 * Fri Jan 18 2008 Scott Cantor <cantor.2@osu.edu> - 2.0-5
186 - Release candidate 1.
188 * Thu Nov 08 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-4
189 - Second public beta.
191 * Thu Aug 16 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-3
194 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-2
197 * Mon Apr 16 2007 Scott Cantor <cantor.2@osu.edu> - 2.0-1
198 - First SPEC file for 2.0.