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: a4fb91a9441bcaec576d4c4a56fa3aa6
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}
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT%{_dlldir}
107 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
109 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
112 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
113 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
117 rm -rf $RPM_BUILD_ROOT
120 %defattr(644,root,root,755)
121 %doc AUTHORS COPYING Changes README.md
122 %{_libdir}/libexpat.dll.a
123 %{_libdir}/libexpat.la
124 %{_includedir}/expat*.h
125 %{_pkgconfigdir}/expat.pc
128 %defattr(644,root,root,755)
129 %{_libdir}/libexpat.a
132 %defattr(644,root,root,755)
133 %{_dlldir}/libexpat-1.dll