SPECS/expat/expat.spec
f4d17450
 Summary:	An XML parser library
 Name:		expat
 Version:	2.1.0
c3a3fd12
 Release:	2%{?dist}
f4d17450
 License:	MIT
 URL:		http://expat.sourceforge.net/
 Group:		System Environment/GeneralLibraries
 Vendor:		VMware, Inc.
 Distribution:	Photon
 Source0:	http://downloads.sourceforge.net/%{name}-%{version}.tar.gz
3cc43c92
 %define sha1 expat=b08197d146930a5543a7b99e871cba3da614f6f0
f4d17450
 %description
 The Expat package contains a stream oriented C library for parsing XML.
 %prep
 %setup -q
 %build
 ./configure \
 	CFLAGS="%{optflags}" \
 	CXXFLAGS="%{optflags}" \
 	--prefix=%{_prefix} \
 	--bindir=%{_bindir} \
 	--libdir=%{_libdir} \
 	--disable-static
 make %{?_smp_mflags}
 %install
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
 make DESTDIR=%{buildroot} install
 find %{buildroot}/%{_libdir} -name '*.la' -delete
 %{_fixperms} %{buildroot}/*
 %check
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 %clean
 rm -rf %{buildroot}/*
 %files
 %defattr(-,root,root)
 %{_bindir}/*
 %{_libdir}/*.so*
 %{_libdir}/pkgconfig/*
 %{_includedir}/*
 %{_mandir}/man1/*
 %changelog
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.0-2
 -	GA - Bump release of all rpms
f4d17450
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.1.0-1
 -	Initial build.	First version