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}
8 Group: Development/Libraries
9 Source0: http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.xz
10 # Source0-md5: e0fe49a6b3480827c9455e4cfc799133
11 URL: http://www.libexpat.org/
12 BuildRequires: autoconf >= 2.69
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc >= 1:3.2
15 BuildRequires: libtool >= 1:2.4
16 BuildRequires: tar >= 1:1.22
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 _pkgconfigdir %{_prefix}/lib/pkgconfig
30 %define _dlldir /usr/share/wine/windows/system
31 %define __cc %{target}-gcc
32 %define __cxx %{target}-g++
33 %define __pkgconfig_provides %{nil}
34 %define __pkgconfig_requires %{nil}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40 # -z options are invalid for mingw linker
41 %define filterout_ld -Wl,-z,.*
42 %define filterout_c -f[-a-z0-9=]*
43 %define filterout_cxx -f[-a-z0-9=]*
46 Expat is an XML parser written in C. It aims to be fully conforming.
47 It is currently not a validating XML parser.
49 This package contains the cross version for Win32.
51 %description -l pl.UTF-8
52 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
53 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
54 potwiedzał by zgodność ze specyfikacją.
56 Ten pakiet zawiera wersję skrośną dla Win32.
59 Summary: Static expat library (cross mingw32 version)
60 Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32)
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
65 Static expat library (cross mingw32 version).
67 %description static -l pl.UTF-8
68 Statyczna biblioteka expat (wersja skrośna mingw32).
71 Summary: DLL expat library for Windows
72 Summary(pl.UTF-8): Biblioteka DLL expat dla Windows
73 Group: Applications/Emulators
77 DLL expat library for Windows.
79 %description dll -l pl.UTF-8
80 Biblioteka DLL expat dla Windows.
83 %setup -q -n %{realname}-%{version}
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT%{_dlldir}
106 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
109 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
110 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING Changes README.md
119 %{_libdir}/libexpat.dll.a
120 %{_libdir}/libexpat.la
121 %{_includedir}/expat*.h
122 %{_pkgconfigdir}/expat.pc
125 %defattr(644,root,root,755)
126 %{_libdir}/libexpat.a
129 %defattr(644,root,root,755)
130 %{_dlldir}/libexpat-1.dll