Initial check-in.
[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:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz
10 Source1:        http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12
13 BuildRequires:  xerces-c-devel >= 2.6.1
14 BuildRequires:  xml-security-c-devel >= 1.3.0
15 BuildRequires:  log4cpp-devel >= 0.3.5
16 BuildRequires:  xmltooling-devel, cxxtest, doxygen
17
18 %description
19 OpenSAML is an open source implementation of the OASIS Security Assertion
20 Markup Language Specification. It contains a set of open source C++ classes
21 that support the SAML 1.0, 1.1, and 2.0 specifications.
22
23 This package contains the saml runtime library.
24
25 %package devel
26 Summary: OpenSAML development Headers
27 Group: Development/Libraries
28 Requires: %{name} = %{version}
29
30 %description devel
31 OpenSAML is an open source implementation of the OASIS Security Assertion
32 Markup Language Specification. It contains a set of open source C++ classes
33 that support the SAML 1.0, 1.1, and 2.0 specifications.
34
35 This package contains the headers and other necessary files to build
36 applications or libraries that use or extend the saml library.
37
38 %package docs
39 Summary: OpenSAML API Documentation
40 Group: Development/Libraries
41 Requires: %{name} = %{version}
42
43 %description docs
44 OpenSAML Library API documentation generated by doxygen.
45
46 %prep
47 %setup -q
48
49 %build
50 %configure %{?saml_options}
51 make
52
53 %install
54 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
55 rm -rf _docs
56
57 make install DESTDIR=$RPM_BUILD_ROOT
58 #mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs
59
60 %check || :
61 make check
62
63 %clean
64 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
65
66 %post
67 /sbin/ldconfig
68
69 %postun
70 /sbin/ldconfig
71
72 %files
73 %defattr(-,root,root,-)
74 #%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt
75 %{_bindir}/samltest
76 %{_libdir}/libsaml.so.*
77 %dir %{_datadir}/xml/%{name}
78 %{_datadir}/xml/%{name}
79
80 %files devel
81 %defattr(-,root,root,-)
82 %{_includedir}
83 %{_libdir}/libsaml.so
84
85 %files docs
86 %defattr(644,root,root,755)
87 %doc doc/api/*
88
89 %changelog
90 * Sun Apr 16 2006  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
91 - First SPEC file for 2.0