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: https://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.xz
10 # Source0-md5: 0cb75c8feb842c0794ba89666b762a2d
11 URL: http://www.libexpat.org/
12 BuildRequires: autoconf >= 2.69
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc >= 1:3.2
15 BuildRequires: libtool >= 2:2.4
16 BuildRequires: sed >= 4.0
17 BuildRequires: tar >= 1:1.22
19 Requires: crossmingw32-runtime
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define no_install_post_strip 1
23 %define _enable_debug_packages 0
25 %define target i386-mingw32
26 %define target_platform i386-pc-mingw32
28 %define _sysprefix /usr
29 %define _prefix %{_sysprefix}/%{target}
30 %define _libdir %{_prefix}/lib
31 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
32 %define _dlldir /usr/share/wine/windows/system
33 %define __cc %{target}-gcc
34 %define __cxx %{target}-g++
35 %define __pkgconfig_provides %{nil}
36 %define __pkgconfig_requires %{nil}
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
42 # -z options are invalid for mingw linker
43 %define filterout_ld -Wl,-z,.*
44 %define filterout_c -f[-a-z0-9=]*
45 %define filterout_cxx -f[-a-z0-9=]*
48 Expat is an XML parser written in C. It aims to be fully conforming.
49 It is currently not a validating XML parser.
51 This package contains the cross version for Win32.
53 %description -l pl.UTF-8
54 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
55 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
56 potwiedzał by zgodność ze specyfikacją.
58 Ten pakiet zawiera wersję skrośną dla Win32.
61 Summary: Static expat library (cross mingw32 version)
62 Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32)
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
67 Static expat library (cross mingw32 version).
69 %description static -l pl.UTF-8
70 Statyczna biblioteka expat (wersja skrośna mingw32).
73 Summary: DLL expat library for Windows
74 Summary(pl.UTF-8): Biblioteka DLL expat dla Windows
75 Group: Applications/Emulators
79 DLL expat library for Windows.
81 %description dll -l pl.UTF-8
82 Biblioteka DLL expat dla Windows.
85 %setup -q -n %{realname}-%{version}
93 # remove SIZEOF_VOID_P define, see buildconf.sh
94 %{__sed} -i -e '/^\/\* The size of `void \*/,/^$/ d' expat_config.h.in
96 --build=i686-pc-linux-gnu \
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_dlldir}
111 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
113 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
116 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
117 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %doc AUTHORS COPYING Changes README.md
126 %{_libdir}/libexpat.dll.a
127 %{_libdir}/libexpat.la
128 %{_includedir}/expat*.h
129 %{_pkgconfigdir}/expat.pc
132 %defattr(644,root,root,755)
133 %{_libdir}/libexpat.a
136 %defattr(644,root,root,755)
137 %{_dlldir}/libexpat-1.dll