Permit xmltooling to decide which xerces we use
[shibboleth/opensaml2.git] / opensaml.spec.in
1 Name:           @PACKAGE_NAME@
2 Version:        @PACKAGE_VERSION@
3 Release:        2
4 Summary:        OpenSAML SAML library
5 Group:          Development/Libraries/C and C++
6 Vendor:         Shibboleth Consortium
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:  libxmltooling-devel >= 1.4
12 %{?_with_log4cpp:BuildRequires: liblog4cpp-devel >= 1.0}
13 %{!?_with_log4cpp:BuildRequires: liblog4shib-devel >= 1.0.4}
14 BuildRequires:  gcc-c++, boost-devel >= 1.32.0
15 %if 0%{?suse_version} > 1000
16 BuildRequires: pkg-config
17 %endif
18 %{!?_without_doxygen:BuildRequires: doxygen}
19 %if "%{_vendor}" == "redhat"
20 BuildRequires: redhat-rpm-config
21 %endif
22
23 %if "%{_vendor}" == "suse"
24 %define pkgdocdir %{_docdir}/%{name}
25 %else
26 %define pkgdocdir %{_docdir}/%{name}-%{version}
27 %endif
28
29 %description
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 %package -n @PACKAGE_NAME@-bin
35 Summary:    Utilities for OpenSAML library
36 Group:      Development/Libraries/C and C++
37
38 %description -n @PACKAGE_NAME@-bin
39 OpenSAML is an open source implementation of the OASIS Security Assertion
40 Markup Language Specification. It contains a set of open source C++ classes
41 that support the SAML 1.0, 1.1, and 2.0 specifications.
42
43 This package contains the utility programs.
44
45 %package -n libsaml8
46 Summary:    OpenSAML SAML library
47 Group:      Development/Libraries/C and C++
48 Provides:   @PACKAGE_NAME@ = %{version}-%{release}
49 Obsoletes:  @PACKAGE_NAME@ < %{version}-%{release}
50
51 %description -n libsaml8
52 OpenSAML is an open source implementation of the OASIS Security Assertion
53 Markup Language Specification. It contains a set of open source C++ classes
54 that support the SAML 1.0, 1.1, and 2.0 specifications.
55
56 This package contains just the shared library.
57
58 %package -n libsaml-devel
59 Summary:        OpenSAML development Headers
60 Group:          Development/Libraries/C and C++
61 Requires:       libsaml8 = %{version}-%{release}
62 Provides:       @PACKAGE_NAME@-devel = %{version}-%{release}
63 Obsoletes:      @PACKAGE_NAME@-devel < %{version}-%{release}
64 Requires: libxmltooling-devel >= 1.4
65 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0}
66 %{!?_with_log4cpp:Requires: liblog4shib-devel >= 1.0.4}
67
68 %description -n libsaml-devel
69 OpenSAML is an open source implementation of the OASIS Security Assertion
70 Markup Language Specification. It contains a set of open source C++ classes
71 that support the SAML 1.0, 1.1, and 2.0 specifications.
72
73 This package includes files needed for development with OpenSAML.
74
75 %package -n @PACKAGE_NAME@-schemas
76 Summary:        OpenSAML schemas and catalog
77 Group:          Development/Libraries/C and C++
78
79 %description -n @PACKAGE_NAME@-schemas
80 OpenSAML is an open source implementation of the OASIS Security Assertion
81 Markup Language Specification. It contains a set of open source C++ classes
82 that support the SAML 1.0, 1.1, and 2.0 specifications.
83
84 This package includes XML schemas and related files.
85
86 %prep
87 %setup -q
88
89 %build
90 %configure %{?saml_options}
91 %{__make}
92
93 %install
94 %{__make} install DESTDIR=$RPM_BUILD_ROOT pkgdocdir=%{pkgdocdir}
95 # Don't package unit tester if present.
96 %{__rm} -f $RPM_BUILD_ROOT/%{_bindir}/samltest
97
98 %check
99 %{__make} check
100
101 %clean
102 [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
103
104 %ifnos solaris2.8 solaris2.9 solaris2.10
105 %post -n libsaml8 -p /sbin/ldconfig
106 %endif
107
108 %ifnos solaris2.8 solaris2.9 solaris2.10
109 %postun -n libsaml8 -p /sbin/ldconfig
110 %endif
111
112 %files -n @PACKAGE_NAME@-bin
113 %defattr(-,root,root,-)
114 %{_bindir}/samlsign
115
116 %files -n libsaml8
117 %defattr(-,root,root,-)
118 %{_libdir}/libsaml.so.*
119
120 %files -n @PACKAGE_NAME@-schemas
121 %defattr(-,root,root,-)
122 %dir %{_datadir}/xml/@PACKAGE_NAME@
123 %{_datadir}/xml/@PACKAGE_NAME@/*
124
125 %files -n libsaml-devel
126 %defattr(-,root,root,-)
127 %{_includedir}/*
128 %{_libdir}/*.so
129 %{_libdir}/pkgconfig/@PACKAGE_NAME@.pc
130 %doc %{pkgdocdir}
131
132 %changelog
133 * Wed Dec 14 2011 Scott Cantor  <cantor.2@osu.edu>  - 2.5-1
134 - Update lib package number.
135 - Add boost-devel dependency.
136
137 * Tue Oct 26 2010  Scott Cantor  <cantor.2@osu.edu>  - 2.4-1
138 - Update version
139 - Add pkg-config support.
140 - Sync package names for side by side install.
141 - Adjust Xerces dependency name and Group setting
142 - Split out schemas into separate subpackage
143
144 * Mon Aug 31 2009   Scott Cantor  <cantor.2@osu.edu>  - 2.3-1
145 - Bump soname for SUSE packaging.
146
147 * Sat Aug 8 2009  Scott Cantor  <cantor.2@osu.edu>  - 2.2.1-1
148 - SuSE conventions
149 - Stop packaging unit tester
150
151 * Wed Dec 3 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.2-1
152 - Bumping for minor update.
153 - Fixing SUSE Xerces dependency name.
154
155 * Tue Jul 1 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.1-1
156 - Bumping for minor update.
157
158 * Mon Mar 17 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-6
159 - Official release.
160
161 * Fri Jan 18 2008  Scott Cantor  <cantor.2@osu.edu>  - 2.0-5
162 - Release candidate 1.
163
164 * Thu Nov 08 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-4
165 - Second public beta.
166
167 * Thu Aug 16 2007 Scott Cantor  <cantor.2@osu.edu>  - 2.0-3
168 - First public beta.
169
170 * Fri Jul 13 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-2
171 - Second alpha.
172
173 * Sun Apr 16 2007  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
174 - First SPEC file for 2.0.