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: ac6677b6d1b95d209ab697ce8b688704
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: tar >= 1:1.22
18 Requires: crossmingw32-runtime
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define no_install_post_strip 1
22 %define _enable_debug_packages 0
24 %define target i386-mingw32
25 %define target_platform i386-pc-mingw32
27 %define _sysprefix /usr
28 %define _prefix %{_sysprefix}/%{target}
29 %define _libdir %{_prefix}/lib
30 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
31 %define _dlldir /usr/share/wine/windows/system
32 %define __cc %{target}-gcc
33 %define __cxx %{target}-g++
34 %define __pkgconfig_provides %{nil}
35 %define __pkgconfig_requires %{nil}
38 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
41 # -z options are invalid for mingw linker
42 %define filterout_ld -Wl,-z,.*
43 %define filterout_c -f[-a-z0-9=]*
44 %define filterout_cxx -f[-a-z0-9=]*
47 Expat is an XML parser written in C. It aims to be fully conforming.
48 It is currently not a validating XML parser.
50 This package contains the cross version for Win32.
52 %description -l pl.UTF-8
53 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
54 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
55 potwiedzał by zgodność ze specyfikacją.
57 Ten pakiet zawiera wersję skrośną dla Win32.
60 Summary: Static expat library (cross mingw32 version)
61 Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32)
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
66 Static expat library (cross mingw32 version).
68 %description static -l pl.UTF-8
69 Statyczna biblioteka expat (wersja skrośna mingw32).
72 Summary: DLL expat library for Windows
73 Summary(pl.UTF-8): Biblioteka DLL expat dla Windows
74 Group: Applications/Emulators
78 DLL expat library for Windows.
80 %description dll -l pl.UTF-8
81 Biblioteka DLL expat dla Windows.
84 %setup -q -n %{realname}-%{version}
93 --build=i686-pc-linux-gnu \
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_dlldir}
108 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
110 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
113 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
114 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
118 rm -rf $RPM_BUILD_ROOT
121 %defattr(644,root,root,755)
122 %doc AUTHORS COPYING Changes README.md
123 %{_libdir}/libexpat.dll.a
124 %{_libdir}/libexpat.la
125 %{_includedir}/expat*.h
126 %{_pkgconfigdir}/expat.pc
129 %defattr(644,root,root,755)
130 %{_libdir}/libexpat.a
133 %defattr(644,root,root,755)
134 %{_dlldir}/libexpat-1.dll