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