Summary:	C++ XML Signature and Encryption library.
Name:		xml-security-c
Version:	1.7.3
Release:	3%{?dist}
License:	Apache Software License
URL:		http://santuario.apache.org/index.html
Group:		Applications/System
Vendor:		VMware, Inc.
Distribution:	Photon
Source0:	http://apache.mirrors.lucidnetworks.net/santuario/c-library/%{name}-%{version}.tar.gz
%define sha1 xml-security-c=bcbe98e0bd3695a0b961a223cce53e2f35c4681b
Patch0:		xml-security-c-fix-for-gcc-6.3.patch
Requires:	openssl
Requires:	xerces-c
BuildRequires:	openssl-devel
BuildRequires: 	xerces-c-devel >= 3.1
%description
XML-Security-C is the C++ XML Signature and Encryption library from the Apache Software Foundation. It is used for all XML Signature and Encryption processing in OpenSAML and Shibboleth.
%package	devel
Summary:	XML Security C library headers
Group:         	Development/Libraries
Requires:       %{name} = %{version}-%{release}
%description	devel
This package contains development headers and static library for xml security.
%prep
%setup -q
%patch0 -p1
%build
./configure --prefix=/usr
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig
%files 
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/*.so.*
%files	devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/*
%changelog
*   Mon Mar 13 2017 Alexey Makhalov <amakhalov@vmware.com> 1.7.3-3
-   Patch for gcc-6.3
*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.7.3-2
-   GA - Bump release of all rpms
*   Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 1.7.3-1
-   Upgrade version.
*   Thu Nov 06 2014 Sharath George <sharathg@vmware.com> 1.5.1-1
-   Initial version