]> git.pld-linux.org Git - packages/crossmingw32-expat.git/blobdiff - crossmingw32-expat.spec
- updated to 2.6.2 (fixes CVE-2023-52425 CVE-2023-52426 CVE-2024-28757)
[packages/crossmingw32-expat.git] / crossmingw32-expat.spec
index 39f03a866eda53adc333734ed9ec857497efbf3e..06515b7f3120b28248c3bb5a1427807fe6279178 100644 (file)
@@ -2,22 +2,25 @@ Summary:      XML 1.0 parser - Ming32 cross version
 Summary(pl.UTF-8):     Analizator składni XML-a 1.0 - wersja skrośna dla Ming32
 %define                realname                expat
 Name:          crossmingw32-%{realname}
-Version:       2.2.0
+Version:       2.6.2
 Release:       1
-License:       Thai Open Source Software Center Ltd (distributable)
+License:       MIT
 Group:         Development/Libraries
-Source0:       http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.bz2
-# Source0-md5: 2f47841c829facb346eb6e3fab5212e2
-Patch0:                %{realname}-ac_fixes.patch
+Source0:       https://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.xz
+# Source0-md5: 0cb75c8feb842c0794ba89666b762a2d
 URL:           http://www.libexpat.org/
-BuildRequires: autoconf >= 2.58
+BuildRequires: autoconf >= 2.69
 BuildRequires: automake
-BuildRequires: crossmingw32-gcc
-BuildRequires: libtool
+BuildRequires: crossmingw32-gcc >= 1:3.2
+BuildRequires: libtool >= 2:2.4
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 Requires:      crossmingw32-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                no_install_post_strip   1
+%define                _enable_debug_packages  0
 
 %define                target                  i386-mingw32
 %define                target_platform         i386-pc-mingw32
@@ -80,39 +83,46 @@ Biblioteka DLL expat dla Windows.
 
 %prep
 %setup -q -n %{realname}-%{version}
-%patch0 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
+%{__automake}
+# remove SIZEOF_VOID_P define, see buildconf.sh
+%{__sed} -i -e '/^\/\* The size of `void \*/,/^$/ d' expat_config.h.in
 %configure \
+       --build=i686-pc-linux-gnu \
+       --host=%{target} \
        --target=%{target} \
-       --host=%{target}
+       --without-docbook \
+       --without-xmlwf
 
-%{__make} buildlib
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} installlib \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_dlldir}
-mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
 
 %if 0%{!?debug:1}
 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
 %endif
 
-rm -rf $RPM_BUILD_ROOT%{_datadir}/man
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS COPYING Changes README.md
 %{_libdir}/libexpat.dll.a
 %{_libdir}/libexpat.la
 %{_includedir}/expat*.h
This page took 0.037132 seconds and 4 git commands to generate.