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