2 Version: @PACKAGE_VERSION@
4 Summary: OpenSAML XMLTooling library
5 Group: Development/Libraries/C and C++
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 BuildRequires: libxerces-c-devel >= 2.8.0
16 BuildRequires: libxml-security-c-devel >= 1.4.0
17 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
18 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel}
19 BuildRequires: gcc-c++, openssl-devel, boost-devel >= 1.32.0
20 BuildRequires: curl-devel >= 7.10.6
21 %if 0%{?suse_version} > 1000
22 BuildRequires: pkg-config
24 %{!?_without_doxygen:BuildRequires: doxygen}
25 %if "%{_vendor}" == "redhat"
26 BuildRequires: redhat-rpm-config
29 %if "%{_vendor}" == "suse"
30 %define pkgdocdir %{_docdir}/%{name}
32 %define pkgdocdir %{_docdir}/%{name}-%{version}
37 The XMLTooling library contains generic XML parsing and processing
38 classes based on the Xerces-C DOM. It adds more powerful facilities
39 for declaring element- and type-specific API and implementation
40 classes to add value around the DOM, as well as signing and encryption
43 %package -n lib@PACKAGE_NAME@6
44 Summary: OpenSAML XMLTooling library
45 Group: Development/Libraries/C and C++
46 Provides: @PACKAGE_NAME@ = %{version}-%{release}
47 Obsoletes: @PACKAGE_NAME@ < %{version}-%{release}
48 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
49 Requires: libcurl-openssl >= 7.21.7
52 %description -n lib@PACKAGE_NAME@6
53 The XMLTooling library contains generic XML parsing and processing
54 classes based on the Xerces-C DOM. It adds more powerful facilities
55 for declaring element- and type-specific API and implementation
56 classes to add value around the DOM, as well as signing and encryption
59 This package contains just the shared library.
61 %package -n lib@PACKAGE_NAME@-devel
62 Summary: XMLTooling development Headers
63 Group: Development/Libraries/C and C++
64 Requires: lib@PACKAGE_NAME@6 = %{version}-%{release}
65 Provides: @PACKAGE_NAME@-devel = %{version}-%{release}
66 Obsoletes: @PACKAGE_NAME@-devel < %{version}-%{release}
67 %if 0%{?suse_version} > 1030 && 0%{?suse_version} < 1130
68 Requires: libXerces-c-devel >= 2.8.0
70 Requires: libxerces-c-devel >= 2.8.0
72 Requires: libxml-security-c-devel >= 1.4.0
73 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
74 %{!?_with_log4cpp:Requires: liblog4shib-devel}
75 Requires: openssl-devel, boost-devel >= 1.32.0
76 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
77 Requires: libcurl-openssl-devel >= 7.21.7
79 Requires: curl-devel >= 7.10.6
82 %description -n lib@PACKAGE_NAME@-devel
83 The XMLTooling library contains generic XML parsing and processing
84 classes based on the Xerces-C DOM. It adds more powerful facilities
85 for declaring element- and type-specific API and implementation
86 classes to add value around the DOM, as well as signing and encryption
89 This package includes files needed for development with XMLTooling.
91 %package -n @PACKAGE_NAME@-schemas
92 Summary: XMLTooling schemas and catalog
93 Group: Development/Libraries/C and C++
95 %description -n @PACKAGE_NAME@-schemas
96 The XMLTooling library contains generic XML parsing and processing
97 classes based on the Xerces-C DOM. It adds more powerful facilities
98 for declaring element- and type-specific API and implementation
99 classes to add value around the DOM, as well as signing and encryption
102 This package includes XML schemas and related files.
108 %if 0%{?rhel} >= 6 || 0%{?centos_version} >= 600
109 %configure %{?@PACKAGE_NAME@_options} --with-curl=/opt/shibboleth
111 %configure %{?@PACKAGE_NAME@_options}
116 %{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
117 # Don't package unit tester if present.
118 %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/@PACKAGE_NAME@test
124 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
126 %ifnos solaris2.8 solaris2.9 solaris2.10
127 %post -n lib@PACKAGE_NAME@6 -p /sbin/ldconfig
130 %ifnos solaris2.8 solaris2.9 solaris2.10
131 %postun -n lib@PACKAGE_NAME@6 -p /sbin/ldconfig
134 %files -n lib@PACKAGE_NAME@6
135 %defattr(-,root,root,-)
138 %files -n @PACKAGE_NAME@-schemas
139 %defattr(-,root,root,-)
140 %dir %{_datadir}/xml/@PACKAGE_NAME@
141 %{_datadir}/xml/@PACKAGE_NAME@/*
143 %files -n lib@PACKAGE_NAME@-devel
144 %defattr(-,root,root,-)
147 %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc
151 * Wed Dec 14 2011 Scott Cantor <cantor.2@osu.edu> - 1.5-1
152 - Update lib package number.
153 - Add boost-devel dependency.
155 * Sun Jun 26 2011 Scott Cantor <cantor.2@osu.edu> - 1.4.2-1
156 - Override curl build for RHEL6.
158 * Tue Oct 26 2010 Scott Cantor <cantor.2@osu.edu> - 1.4-1
160 - Add pkg-config support.
161 - Sync package names for side by side install.
162 - Adjust Xerces dependency name and Group setting
163 - Split out schemas into separate subpackage
165 * Mon Aug 31 2009 Scott Cantor <cantor.2@osu.edu> - 1.3-1
166 - Bump soname for SUSE packaging.
168 * Thu Aug 6 2009 Scott Cantor <cantor.2@osu.edu> - 1.2.1-1
170 - Stop packaging unit tester
172 * Wed Dec 3 2008 Scott Cantor <cantor.2@osu.edu> - 1.2-1
173 - Bumping for minor update.
174 - Fixing SuSE Xerces dependency name.
176 * Tue Jul 1 2008 Scott Cantor <cantor.2@osu.edu> - 1.1-1
177 - Bumping for minor update.
179 * Mon Mar 17 2008 Scott Cantor <cantor.2@osu.edu> - 1.0-6
182 * Fri Jan 18 2008 Scott Cantor <cantor.2@osu.edu> - 1.0-5
183 - Release candidate 1.
185 * Thu Nov 08 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-4
186 - Second public beta.
188 * Thu Aug 16 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-3
191 * Fri Jul 13 2007 Scott Cantor <cantor.2@osu.edu> - 1.0-2
194 * Wed Apr 12 2006 Scott Cantor <cantor.2@osu.edu> - 1.0-1
195 - First SPEC file based on various versions in existence.