Register smart builder for the ECP RelayState header block.
[shibboleth/cpp-opensaml.git] / opensaml.spec.in
1 Name:           opensaml
2 Summary:        Open source SAML library
3 Version:        @-VERSION-@
4 Release:        1
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 %if 0%{?suse_version} > 1030
12 BuildRequires:  libXerces-c-devel >= 2.8.0
13 %else
14 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.8.0
15 %endif
16 BuildRequires:  xml-security-c-devel >= 1.4.0
17 BuildRequires:  xmltooling-devel >= 1.2
18 %{?_with_log4cpp:BuildRequires: log4cpp-devel >= 1.0}
19 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
20
21 %description
22 OpenSAML is an open source implementation of the OASIS Security Assertion
23 Markup Language Specification. It contains a set of open source C++ classes
24 that support the SAML 1.0, 1.1, and 2.0 specifications.
25
26 This package contains the saml runtime library.
27
28 %package devel
29 Summary: OpenSAML development Headers
30 Group: Development/Libraries
31 Requires: %{name} = %{version}
32
33 %description devel
34 OpenSAML is an open source implementation of the OASIS Security Assertion
35 Markup Language Specification. It contains a set of open source C++ classes
36 that support the SAML 1.0, 1.1, and 2.0 specifications.
37
38 This package contains the headers and other necessary files to build
39 applications or libraries that use or extend the saml library.
40
41 %package docs
42 Summary: OpenSAML API Documentation
43 Group: Development/Libraries
44 Requires: %{name} = %{version}
45
46 %description docs
47 OpenSAML Library API documentation generated by doxygen.
48
49 %prep
50 %setup -q
51
52 %build
53 %configure %{?saml_options}
54 %{__make}
55
56 %install
57 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
58 %{__make} install DESTDIR=$RPM_BUILD_ROOT
59 find $RPM_BUILD_ROOT/%{_bindir} -type f |
60   %{__sed} -e "s|$RPM_BUILD_ROOT||" | sort > rpm.binlist
61
62 %check
63 %{__make} check
64
65 %clean
66 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
67
68 %ifnos solaris2.8 solaris2.9 solaris2.10 
69 %post -p /sbin/ldconfig
70 %endif
71
72 %ifnos solaris2.8 solaris2.9 solaris2.10 
73 %postun -p /sbin/ldconfig
74 %endif
75
76 %files -f rpm.binlist
77 %defattr(-,root,root,-)
78 %{_libdir}/libsaml.so.*
79 %dir %{_datadir}/xml/%{name}
80 %{_datadir}/xml/%{name}
81 %docdir %{_datadir}/doc/%{name}
82 %{_datadir}/doc/%{name}/README.txt
83 %{_datadir}/doc/%{name}/LICENSE.txt
84 %{_datadir}/doc/%{name}/NOTICE.txt
85 %{_datadir}/doc/%{name}/LOG4CPP.LICENSE
86
87 %files devel
88 %defattr(-,root,root,-)
89 %{_includedir}
90 %{_libdir}/libsaml.so
91
92 %files docs
93 %defattr(644,root,root,755)
94 %doc %{_datadir}/doc/%{name}/api
95
96 %changelog
97 * Wed Dec 3 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.2-1
98 - Bumping for minor update.
99 - Fixing SUSE Xerces dependency name.
100
101 * Tue Jul 1 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.1-1
102 - Bumping for minor update.
103
104 * Mon Mar 17 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-6
105 - Official release.
106
107 * Fri Jan 18 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-5
108 - Release candidate 1.
109
110 * Thu Nov 08 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-4
111 - Second public beta.
112
113 * Thu Aug 16 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-3
114 - First public beta.
115
116 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-2
117 - Second alpha.
118
119 * Sun Apr 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
120 - First SPEC file for 2.0.