2019-09-30 10:38:40 -04:00
|
|
|
%define Rversion %(echo %{version} | sed -e 's/\\./_/g' -e 's/^/R_/')
|
|
|
|
|
Name: expat
|
|
|
|
|
Version: 2.2.6
|
2019-11-06 19:06:41 +08:00
|
|
|
Release: 5
|
2019-09-30 10:38:40 -04:00
|
|
|
Summary: An XML parser library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://libexpat.github.io/
|
|
|
|
|
Source0: https://github.com/libexpat/libexpat/releases/download/%{Rversion}/expat-%{version}.tar.gz
|
|
|
|
|
Patch6000: CVE-2018-20843.patch
|
|
|
|
|
Patch6001: CVE-2019-15903.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: sed,autoconf,automake,gcc-c++,libtool,xmlto
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
expat is a stream-oriented XML parser library written in C.
|
|
|
|
|
expat excels with files too large to fit RAM, and where
|
|
|
|
|
performance and flexibility are crucial.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides with static libraries and header files for developing with expat.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n libexpat-%{Rversion}/expat
|
|
|
|
|
|
|
|
|
|
autoreconf -fiv
|
|
|
|
|
%build
|
|
|
|
|
%configure CFLAGS="$RPM_OPT_FLAGS -fPIC" DOCBOOK_TO_MAN="xmlto man --skip-validation"
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%makeinstall
|
|
|
|
|
find %{buildroot} -type f -name changelog -delete
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2019-11-06 19:06:41 +08:00
|
|
|
%license COPYING AUTHORS
|
2019-09-30 10:38:40 -04:00
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/libexpat.so.1*
|
2019-11-06 19:06:41 +08:00
|
|
|
%exclude %{_docdir}/%{name}/AUTHORS
|
2019-09-30 10:38:40 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/{libexpat.*a,libexpat.so}
|
|
|
|
|
%{_libdir}/pkgconfig/expat.pc
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-11-06 19:06:41 +08:00
|
|
|
* Mon Oct 21 2019 shenyangyang <shenyangyang4@huawei.com> - 2.2.6-5
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the directory of AUTHORS
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2019 shenyangyang <shenyangyang4@huawei.com> - 2.2.6-4
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:move AUTHORS to license directory
|
|
|
|
|
|
2019-09-30 10:38:40 -04:00
|
|
|
* Sat Sep 28 2019 shenyangyang<shenyangyang4@huawei.com> - 2.2.6-3
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2019-15903
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2019-15903
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2019 gulining<gulining1@huawei.com> - 2.2.6-2
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2018-20843
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2018-20843
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.6-1
|
|
|
|
|
- Package Init
|