1 %define realname libxml2
2 Summary: libXML library - cross MinGW32 version
3 Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 #Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
10 Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
11 # Source0-md5: 8127a65e8c3b08856093099b52599c86
12 Patch0: %{realname}-amfix.patch
13 Patch1: %{realname}-man_fixes.patch
14 Patch2: %{realname}-open.gz.patch
15 Patch3: %{realname}-largefile.patch
16 Patch4: %{realname}-version-script.patch
17 URL: http://xmlsoft.org/
18 BuildRequires: autoconf >= 2.2
19 BuildRequires: automake >= 1.4
20 BuildRequires: crossmingw32-gcc
21 BuildRequires: crossmingw32-zlib >= 1.2.4-3
22 BuildRequires: libtool >= 1:1.4.2-9
23 BuildRequires: sed >= 4.0
24 Requires: crossmingw32-zlib >= 1.2.4-3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define no_install_post_strip 1
29 %define target i386-mingw32
30 %define target_platform i386-pc-mingw32
32 %define _sysprefix /usr
33 %define _prefix %{_sysprefix}/%{target}
34 %define _libdir %{_prefix}/lib
35 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
36 %define _dlldir /usr/share/wine/windows/system
37 %define __cc %{target}-gcc
38 %define __cxx %{target}-g++
39 %define filterout_ld -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
42 This library allows you to manipulate XML files.
44 This package contains the cross version for Win32.
46 %description -l pl.UTF-8
47 Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static libxml2 library (cross MinGW32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka libxml2 (wersja skrośna MinGW32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static libxml2 library (cross MinGW32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libxml2 (wersja skrośna MinGW32).
64 Summary: DLL libxml2 library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL libxml2 dla Windows
66 Group: Applications/Emulators
67 Requires: crossmingw32-zlib-dll >= 1.2.4-3
71 DLL libxml2 library for Windows.
73 %description dll -l pl.UTF-8
74 Biblioteka DLL libxml2 dla Windows.
77 %setup -q -n %{realname}-%{version}
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_dlldir}
104 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
107 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
111 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog Copyright NEWS README TODO
119 %{_libdir}/libxml2.dll.a
120 %{_libdir}/libxml2.la
121 %{_includedir}/libxml2
122 %{_pkgconfigdir}/libxml-2.0.pc
125 %defattr(644,root,root,755)
129 %defattr(644,root,root,755)
130 %{_dlldir}/libxml2-*.dll