Require Xerces 2.8.0 and make cxxtest optional.
[shibboleth/cpp-xmltooling.git] / xmltooling.spec.in
1 Name:           xmltooling
2 Summary:        Open source XMLTooling library
3 Version:        @-VERSION-@
4 Release:        3
5 Group:          System Environment/Libraries
6 Vendor:         Internet2
7 License:        Apache 2.0
8 URL:            http://www.opensaml.org/
9 Source0:        %{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
11 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.8.0, xml-security-c-devel >= 1.4.0
12 BuildRequires:  openssl-devel
13 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
14 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
15
16 %description
17 The XMLTooling library contains generic XML parsing and processing
18 classes based on the Xerces-C DOM. It adds more powerful facilities
19 for declaring element- and type-specific API and implementation
20 classes to add value around the DOM, as well as signing and encryption
21 support.
22
23 This package contains the xmltooling runtime library.
24
25 %package devel
26 Summary: XMLTooling development Headers
27 Group: Development/Libraries
28 Requires: %{name} = %{version}
29
30 %description devel
31 The XMLTooling library contains generic XML parsing and processing
32 classes based on the Xerces-C DOM. It adds more powerful facilities
33 for declaring element- and type-specific API and implementation
34 classes to add value around the DOM, as well as signing and encryption
35 support.
36
37 This package contains the headers and other necessary files to build
38 applications or libraries that use or extend the xmltooling library.
39
40 %package docs
41 Summary: XMLTooling API Documentation
42 Group: Development/Libraries
43 Requires: %{name} = %{version}
44
45 %description docs
46 XMLTooling Library API documentation generated by doxygen.
47
48 %prep
49 %setup -q
50
51 %build
52 %configure %{?xmltooling_options}
53 %{__make}
54
55 %install
56 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
57 %{__make} install DESTDIR=$RPM_BUILD_ROOT
58
59 %check || :
60 %{__make} check
61
62 %clean
63 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
64
65 %ifnos solaris2.8 solaris2.9 solaris2.10 
66 %post -p /sbin/ldconfig
67 %endif
68
69 %ifnos solaris2.8 solaris2.9 solaris2.10 
70 %postun -p /sbin/ldconfig
71 %endif
72
73 %files
74 %defattr(-,root,root,-)
75 %{_libdir}/libxmltooling.so.*
76 %{_libdir}/libxmltooling-lite.so.*
77 %dir %{_datadir}/xml/xmltooling
78 %{_datadir}/xml/xmltooling
79 %exclude %{_bindir}/xmltoolingtest
80 %docdir %{_datadir}/doc/xmltooling
81 %{_datadir}/doc/xmltooling/LICENSE.txt
82 %{_datadir}/doc/xmltooling/NOTICE.txt
83 %{_datadir}/doc/xmltooling/CURL.LICENSE
84 %{_datadir}/doc/xmltooling/LOG4CPP.LICENSE
85 %{_datadir}/doc/xmltooling/OPENSSL.LICENSE
86
87 %files devel
88 %defattr(-,root,root,-)
89 %{_includedir}
90 %{_libdir}/libxmltooling.so
91 %{_libdir}/libxmltooling-lite.so
92
93 %files docs
94 %defattr(644,root,root,755)
95 %doc %{_datadir}/doc/xmltooling/api
96
97 %changelog
98 * Thu Aug 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-3
99 - First public beta.
100
101 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 1.0-2
102 - Second alpha.
103
104 * Wed Apr 12 2006  Scott Cantor  <cantor.2@osu.edu>  - 1.0-1
105 - First SPEC file based on various versions in existence.