2 Version: @PACKAGE_VERSION@
4 Summary: OpenSAML XMLTooling library
5 Group: Development/Libraries/C and C++
6 Vendor: Shibboleth Consortium
8 URL: http://www.opensaml.org/
9 Source: %{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 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
15 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel >= 1.0.4}
16 BuildRequires: gcc-c++, openssl-devel, boost-devel >= 1.32.0
17 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
18 BuildRequires: libcurl-openssl-devel >= 7.21.7
19 BuildRequires: xerces-c-devel >= 2.8.0, xml-security-c-devel >= 1.6.0
20 Requires: libcurl-openssl >= 7.21.7
22 BuildRequires: curl-devel >= 7.10.6
23 BuildRequires: libxerces-c-devel >= 2.8.0
24 BuildRequires: libxml-security-c-devel >= 1.4.0
26 %if 0%{?suse_version} > 1000
27 BuildRequires: pkg-config
29 %{!?_without_doxygen:BuildRequires: doxygen}
30 %if "%{_vendor}" == "redhat"
31 BuildRequires: redhat-rpm-config
34 %if "%{_vendor}" == "suse"
35 %define pkgdocdir %{_docdir}/%{name}
37 %define pkgdocdir %{_docdir}/%{name}-%{version}
40 # Prevent the RH6 package from requiring a vanilla libcurl.
41 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
42 %filter_from_requires /libcurl\.so\..*/d
47 The XMLTooling library contains generic XML parsing and processing
48 classes based on the Xerces-C DOM. It adds more powerful facilities
49 for declaring element- and type-specific API and implementation
50 classes to add value around the DOM, as well as signing and encryption
53 %package -n lib@PACKAGE_NAME@6
54 Summary: OpenSAML XMLTooling library
55 Group: Development/Libraries/C and C++
56 Provides: @PACKAGE_NAME@ = %{version}-%{release}
57 Obsoletes: @PACKAGE_NAME@ < %{version}-%{release}
58 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
59 Requires: libcurl-openssl >= 7.21.7
62 %description -n lib@PACKAGE_NAME@6
63 The XMLTooling library contains generic XML parsing and processing
64 classes based on the Xerces-C DOM. It adds more powerful facilities
65 for declaring element- and type-specific API and implementation
66 classes to add value around the DOM, as well as signing and encryption
69 This package contains just the shared library.
71 %package -n lib@PACKAGE_NAME@-devel
72 Summary: XMLTooling development Headers
73 Group: Development/Libraries/C and C++
74 Requires: lib@PACKAGE_NAME@6 = %{version}-%{release}
75 Provides: @PACKAGE_NAME@-devel = %{version}-%{release}
76 Obsoletes: @PACKAGE_NAME@-devel < %{version}-%{release}
77 %if 0%{?suse_version} > 1030 && 0%{?suse_version} < 1130
78 Requires: libXerces-c-devel >= 2.8.0
80 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
81 %{!?_with_log4cpp:Requires: liblog4shib-devel >= 1.0.4}
82 Requires: openssl-devel, boost-devel >= 1.32.0
83 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
84 Requires: libcurl-openssl-devel >= 7.21.7
85 Requires: xerces-c-devel >= 2.8.0, xml-security-c-devel >= 1.6.0
87 Requires: curl-devel >= 7.10.6
88 Requires: libxml-security-c-devel >= 1.4.0, libxerces-c-devel >= 2.8.0
91 %description -n lib@PACKAGE_NAME@-devel
92 The XMLTooling library contains generic XML parsing and processing
93 classes based on the Xerces-C DOM. It adds more powerful facilities
94 for declaring element- and type-specific API and implementation
95 classes to add value around the DOM, as well as signing and encryption
98 This package includes files needed for development with XMLTooling.
100 %package -n @PACKAGE_NAME@-schemas
101 Summary: XMLTooling schemas and catalog
102 Group: Development/Libraries/C and C++
104 %description -n @PACKAGE_NAME@-schemas
105 The XMLTooling library contains generic XML parsing and processing
106 classes based on the Xerces-C DOM. It adds more powerful facilities
107 for declaring element- and type-specific API and implementation
108 classes to add value around the DOM, as well as signing and encryption
111 This package includes XML schemas and related files.
117 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
118 %configure %{?@PACKAGE_NAME@_options} --with-curl=/opt/shibboleth
120 %configure %{?@PACKAGE_NAME@_options}
125 %{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
126 # Don't package unit tester if present.
127 %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/@PACKAGE_NAME@test
133 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
135 %ifnos solaris2.8 solaris2.9 solaris2.10
136 %post -n lib@PACKAGE_NAME@6 -p /sbin/ldconfig
139 %ifnos solaris2.8 solaris2.9 solaris2.10
140 %postun -n lib@PACKAGE_NAME@6 -p /sbin/ldconfig
143 %files -n lib@PACKAGE_NAME@6
144 %defattr(-,root,root,-)
147 %files -n @PACKAGE_NAME@-schemas
148 %defattr(-,root,root,-)
149 %dir %{_datadir}/xml/@PACKAGE_NAME@
150 %{_datadir}/xml/@PACKAGE_NAME@/*
152 %files -n lib@PACKAGE_NAME@-devel
153 %defattr(-,root,root,-)
156 %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc
160 * Wed Dec 14 2011 Scott Cantor <cantor.2@osu.edu> - 1.5-1
161 - Update lib package number.
162 - Add boost-devel dependency.
164 * Sun Jun 26 2011 Scott Cantor <cantor.2@osu.edu> - 1.4.2-1
165 - Override curl build for RHEL6.
167 * Tue Oct 26 2010 Scott Cantor <cantor.2@osu.edu> - 1.4-1
169 - Add pkg-config support.
170 - Sync package names for side by side install.
171 - Adjust Xerces dependency name and Group setting
172 - Split out schemas into separate subpackage
174 * Mon Aug 31 2009 Scott Cantor <cantor.2@osu.edu> - 1.3-1
175 - Bump soname for SUSE packaging.
177 * Thu Aug 6 2009 Scott Cantor <cantor.2@osu.edu> - 1.2.1-1
179 - Stop packaging unit tester
181 * Wed Dec 3 2008 Scott Cantor <cantor.2@osu.edu> - 1.2-1
182 - Bumping for minor update.
183 - Fixing SuSE Xerces dependency name.
185 * Tue Jul 1 2008 Scott Cantor <cantor.2@osu.edu> - 1.1-1
186 - Bumping for minor update.
188 * Mon Mar 17 2008 Scott Cantor <cantor.2@osu.edu> - 1.0-6
191 * Fri Jan 18 2008 Scott Cantor <cantor.2@osu.edu> - 1.0-5
192 - Release candidate 1.
194 * Thu Nov 08 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-4
195 - Second public beta.
197 * Thu Aug 16 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-3
200 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-2
203 * Wed Apr 12 2006 Scott Cantor <cantor.2@osu.edu> - 1.0-1
204 - First SPEC file based on various versions in existence.