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