Require Xerces 2.8.0 and make cxxtest optional.
[shibboleth/cpp-opensaml.git] / opensaml.spec.in
1 Name:           opensaml
2 Summary:        Open source SAML 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:  xmltooling-devel
13 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
14 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
15
16 %description
17 OpenSAML is an open source implementation of the OASIS Security Assertion
18 Markup Language Specification. It contains a set of open source C++ classes
19 that support the SAML 1.0, 1.1, and 2.0 specifications.
20
21 This package contains the saml runtime library.
22
23 %package devel
24 Summary: OpenSAML development Headers
25 Group: Development/Libraries
26 Requires: %{name} = %{version}
27
28 %description devel
29 OpenSAML is an open source implementation of the OASIS Security Assertion
30 Markup Language Specification. It contains a set of open source C++ classes
31 that support the SAML 1.0, 1.1, and 2.0 specifications.
32
33 This package contains the headers and other necessary files to build
34 applications or libraries that use or extend the saml library.
35
36 %package docs
37 Summary: OpenSAML API Documentation
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
40
41 %description docs
42 OpenSAML Library API documentation generated by doxygen.
43
44 %prep
45 %setup -q
46
47 %build
48 %configure %{?saml_options}
49 %{__make}
50
51 %install
52 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 %check || :
56 %{__make} check
57
58 %clean
59 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
60
61 %ifnos solaris2.8 solaris2.9 solaris2.10 
62 %post -p /sbin/ldconfig
63 %endif
64
65 %ifnos solaris2.8 solaris2.9 solaris2.10 
66 %postun -p /sbin/ldconfig
67 %endif
68
69 %files
70 %defattr(-,root,root,-)
71 %{_bindir}/samlsign
72 %{_libdir}/libsaml.so.*
73 %dir %{_datadir}/xml/%{name}
74 %{_datadir}/xml/%{name}
75 %exclude %{_bindir}/samltest
76 %docdir %{_datadir}/doc/%{name}
77 %{_datadir}/doc/%{name}/LICENSE.txt
78 %{_datadir}/doc/%{name}/NOTICE.txt
79 %{_datadir}/doc/%{name}/LOG4CPP.LICENSE
80
81 %files devel
82 %defattr(-,root,root,-)
83 %{_includedir}
84 %{_libdir}/libsaml.so
85
86 %files docs
87 %defattr(644,root,root,755)
88 %doc %{_datadir}/doc/%{name}/api
89
90 %changelog
91 * Thu Aug 16 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-3
92 - First public beta.
93
94 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-2
95 - Second alpha.
96
97 * Sun Apr 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
98 - First SPEC file for 2.0.