Summary(pl.UTF-8): Analizator składni XML-a 1.0 - wersja skrośna dla Ming32
%define realname expat
Name: crossmingw32-%{realname}
-Version: 2.0.1
-Release: 4
+Version: 2.1.0
+Release: 1
License: Thai Open Source Software Center Ltd (distributable)
Group: Development/Libraries
-Source0: http://dl.sourceforge.net/expat/%{realname}-%{version}.tar.gz
-# Source0-md5: ee8b492592568805593f81f8cdf2a04c
+Source0: http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.gz
+# Source0-md5: dd7dab7a5fea97d2a6a43f511449b7cd
Patch0: %{realname}-ac_fixes.patch
-Patch1: %{realname}-soname.patch
-URL: http://expat.sourceforge.net/
-BuildRequires: autoconf
+URL: http://www.libexpat.org/
+BuildRequires: autoconf >= 2.52
BuildRequires: automake
BuildRequires: crossmingw32-gcc
BuildRequires: libtool
%define _sysprefix /usr
%define _prefix %{_sysprefix}/%{target}
%define _libdir %{_prefix}/lib
+%define _pkgconfigdir %{_prefix}/lib/pkgconfig
%define _dlldir /usr/share/wine/windows/system
%define __cc %{target}-gcc
%define __cxx %{target}-g++
+%define __pkgconfig_provides %{nil}
+%define __pkgconfig_requires %{nil}
%ifnarch %{ix86}
# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
-%patch1 -p1
%build
%{__libtoolize}
%{_libdir}/libexpat.dll.a
%{_libdir}/libexpat.la
%{_includedir}/expat*.h
+%{_pkgconfigdir}/expat.pc
%files static
%defattr(644,root,root,755)
%files dll
%defattr(644,root,root,755)
-%{_dlldir}/libexpat-0.dll
+%{_dlldir}/libexpat-1.dll
-diff -urN expat-2.0.0.org/configure.in expat-2.0.0/configure.in
---- expat-2.0.0.org/configure.in 2006-01-11 02:10:46.000000000 +0100
-+++ expat-2.0.0/configure.in 2006-04-09 18:08:18.483504500 +0200
+--- expat-2.1.0/configure.in~ 2012-07-28 10:41:03.000000000 +0300
++++ expat-2.1.0/configure.in 2012-07-28 10:41:41.511402972 +0300
@@ -26,7 +26,7 @@
define([expat_version], ifdef([__gnu__],
[esyscmd(conftools/get-version.sh lib/expat.h)],
- [2.0.x]))
+ [2.1.x]))
-AC_INIT(expat, expat_version, expat-bugs@libexpat.org)
-+AC_INIT(expat, 2.0.0, expat-bugs@libexpat.org)
++AC_INIT(expat, 2.1.0, expat-bugs@libexpat.org)
undefine([expat_version])
AC_CONFIG_SRCDIR(Makefile.in)
-@@ -50,9 +50,6 @@
+@@ -51,8 +51,6 @@
AC_CONFIG_HEADER(expat_config.h)
--sinclude(conftools/libtool.m4)
-sinclude(conftools/ac_c_bigendian_cross.m4)
-
AC_LIBTOOL_WIN32_DLL