diff --git a/expat-2.6.2.tar.gz b/expat-2.6.2.tar.gz deleted file mode 100644 index d93106666bb3a0144ae5103abb294c0567b6a4ce..0000000000000000000000000000000000000000 Binary files a/expat-2.6.2.tar.gz and /dev/null differ diff --git a/expat-2.6.3.tar.xz b/expat-2.6.3.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..f7d463566a03b68031e03c534f2bb84849098240 Binary files /dev/null and b/expat-2.6.3.tar.xz differ diff --git a/expat.spec b/expat.spec index 690063c284a85f4b5c9fb4126b53525c72604b9d..f98fef22bbbaaf6fb77c0f5fb4954f58664d13c5 100644 --- a/expat.spec +++ b/expat.spec @@ -1,13 +1,14 @@ %define Rversion %(echo %{version} | sed -e 's/\\./_/g' -e 's/^/R_/') Name: expat -Version: 2.6.2 +Version: 2.6.3 Release: 1 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 +Source0: https://github.com/libexpat/libexpat/releases/download/%{Rversion}/expat-%{version}.tar.xz -BuildRequires: sed,autoconf,automake,gcc-c++,libtool,xmlto,make +BuildRequires: sed,autoconf,automake,gcc-c++,libtool,xmlto,make +BuildRequires: cmake-rpm-macros %description expat is a stream-oriented XML parser library written in C. @@ -17,6 +18,9 @@ performance and flexibility are crucial. %package devel Summary: Development files Requires: %{name} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} +Obsoletes: %{name}-static < %{version}-%{release} + %description devel This package provides with static libraries and header files for developing with expat. @@ -26,38 +30,41 @@ This package provides with static libraries and header files for developing wit %autosetup -p1 %build -%configure CFLAGS="$RPM_OPT_FLAGS -fPIC" DOCBOOK_TO_MAN="xmlto man --skip-validation" +export CFLAGS="$RPM_OPT_FLAGS -fPIC" +export DOCBOOK_TO_MAN="xmlto man" +%configure --enable-static %make_build %install -%makeinstall -find %{buildroot} -type f -name changelog -delete +%make_install -%check -make check +rm -fv %{buildroot}%{_datadir}/doc/%{name}/changelog -%ldconfig_scriptlets +%check +%make_build check %files -%defattr(-,root,root) -%license COPYING AUTHORS +%doc AUTHORS Changes +%license COPYING %{_bindir}/* %{_libdir}/libexpat.so.1* -%exclude %{_docdir}/%{name}/AUTHORS %files devel -%defattr(-,root,root) %{_includedir}/* -%{_libdir}/{libexpat.*a,libexpat.so} +%{_libdir}/libexpat.a +%{_libdir}/libexpat.la +%{_libdir}/libexpat.so %{_libdir}/cmake/expat-%{version} %{_libdir}/pkgconfig/expat.pc %files help -%defattr(-,root,root) %doc README.md %{_mandir}/man1/* %changelog +* Wed Sep 04 2024 Funda Wang - 2.6.3-1 +- update to 2.6.3 + * Tue Jul 2 2024 warlcok -2.6.2-1 - update to 2.6.2