Multi-line svn commit, see body.
[shibboleth/cpp-opensaml.git] / opensaml.spec.in
1 Name:           opensaml
2 Summary:        Open source SAML library
3 Version:        @-VERSION-@
4 Release:        2
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
12 BuildRequires:  xerces%{?xercesver}-c-devel >= 2.6.1
13 BuildRequires:  xml-security-c-devel >= 1.3.1
14 BuildRequires:  xmltooling-devel, cxxtest
15 %if %{?_with_log4cpp:1}
16 BuildRequires:  log4cpp-devel >= 0.3.5
17 %else
18 BuildRequires:  log4shib-devel
19 %endif
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 rm -rf _docs
59 make install DESTDIR=$RPM_BUILD_ROOT
60 mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs
61
62 %check || :
63 make check
64
65 %clean
66 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
67
68 %post
69 /sbin/ldconfig
70
71 %postun
72 /sbin/ldconfig
73
74 %files
75 %defattr(-,root,root,-)
76 %doc _docs/LICENSE.txt _docs/NOTICE.txt
77 %{_libdir}/libsaml.so.*
78 %dir %{_datadir}/xml/%{name}
79 %{_datadir}/xml/%{name}
80 %exclude %{_bindir}/samltest
81
82 %files devel
83 %defattr(-,root,root,-)
84 %{_includedir}
85 %{_libdir}/libsaml.so
86
87 %files docs
88 %defattr(644,root,root,755)
89 %doc _docs/api
90
91 %changelog
92 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-2
93 - Second alpha.
94
95 * Sun Apr 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
96 - First SPEC file for 2.0.