1 Summary: XML 1.0 parser - Ming32 cross version
2 Summary(pl.UTF-8): Analizator składni XML-a 1.0 - wersja skrośna dla Ming32
4 Name: crossmingw32-%{realname}
7 License: Thai Open Source Software Center Ltd (distributable)
8 Group: Development/Libraries
9 Source0: http://dl.sourceforge.net/expat/%{realname}-%{version}.tar.gz
10 # Source0-md5: ee8b492592568805593f81f8cdf2a04c
11 Patch0: %{realname}-ac_fixes.patch
12 Patch1: %{realname}-soname.patch
13 URL: http://expat.sourceforge.net/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: crossmingw32-gcc
17 BuildRequires: libtool
18 Requires: crossmingw32-runtime
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define no_install_post_strip 1
23 %define target i386-mingw32
24 %define target_platform i386-pc-mingw32
26 %define _sysprefix /usr
27 %define _prefix %{_sysprefix}/%{target}
28 %define _libdir %{_prefix}/lib
29 %define _dlldir /usr/share/wine/windows/system
30 %define __cc %{target}-gcc
31 %define __cxx %{target}-g++
33 %ifarch alpha sparc sparc64 sparcv9
34 # alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
39 Expat is an XML parser written in C. It aims to be fully conforming.
40 It is currently not a validating XML parser.
42 This package contains the cross version for Win32.
44 %description -l pl.UTF-8
45 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
46 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
47 potwiedzał by zgodność ze specyfikacją.
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static expat library (cross mingw32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static expat library (cross mingw32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka expat (wersja skrośna mingw32).
64 Summary: DLL expat library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL expat dla Windows
66 Group: Applications/Emulators
70 DLL expat library for Windows.
72 %description dll -l pl.UTF-8
73 Biblioteka DLL expat dla Windows.
76 %setup -q -n %{realname}-%{version}
91 rm -rf $RPM_BUILD_ROOT
93 %{__make} installlib \
94 DESTDIR=$RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{_dlldir}
97 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
100 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
101 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
104 rm -rf $RPM_BUILD_ROOT%{_datadir}/man
107 rm -rf $RPM_BUILD_ROOT
110 %defattr(644,root,root,755)
111 %{_libdir}/libexpat.dll.a
112 %{_libdir}/libexpat.la
113 %{_includedir}/expat*.h
116 %defattr(644,root,root,755)
117 %{_libdir}/libexpat.a
120 %defattr(644,root,root,755)
121 %{_dlldir}/libexpat-0.dll