]>
Commit | Line | Data |
---|---|---|
d6d063a5 | 1 | %define realname libxml2 |
bae24ee6 | 2 | Summary: libXML library - cross Mingw32 version |
a338d023 | 3 | Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla Mingw32 |
d6d063a5 | 4 | Name: crossmingw32-%{realname} |
d43adb62 | 5 | Version: 2.7.7 |
bae24ee6 | 6 | Release: 1 |
7 | License: MIT | |
a338d023 | 8 | Group: Development/Libraries |
bae24ee6 | 9 | #Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2 |
d6d063a5 | 10 | Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz |
d43adb62 | 11 | # Source0-md5: 9abc9959823ca9ff904f1fbcf21df066 |
5d33cd62 AF |
12 | Patch0: %{realname}-amfix.patch |
13 | Patch1: %{realname}-man_fixes.patch | |
14 | Patch2: %{realname}-open.gz.patch | |
d43adb62 | 15 | Patch3: %{realname}-largefile.patch |
bae24ee6 | 16 | URL: http://xmlsoft.org/ |
17 | BuildRequires: autoconf >= 2.2 | |
5d33cd62 | 18 | BuildRequires: automake >= 1.4 |
a338d023 | 19 | BuildRequires: crossmingw32-gcc |
d43adb62 | 20 | BuildRequires: crossmingw32-zlib >= 1.2.4-3 |
bae24ee6 | 21 | BuildRequires: libtool >= 1:1.4.2-9 |
22 | BuildRequires: sed >= 4.0 | |
d43adb62 | 23 | Requires: crossmingw32-zlib >= 1.2.4-3 |
bae24ee6 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %define no_install_post_strip 1 | |
27 | ||
28 | %define target i386-mingw32 | |
29 | %define target_platform i386-pc-mingw32 | |
bae24ee6 | 30 | |
31 | %define _sysprefix /usr | |
32 | %define _prefix %{_sysprefix}/%{target} | |
b33e056f | 33 | %define _libdir %{_prefix}/lib |
bae24ee6 | 34 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
a338d023 | 35 | %define _dlldir /usr/share/wine/windows/system |
bae24ee6 | 36 | %define __cc %{target}-gcc |
37 | %define __cxx %{target}-g++ | |
5d33cd62 | 38 | %define filterout_ld -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc |
bae24ee6 | 39 | |
40 | %description | |
41 | This library allows you to manipulate XML files. | |
42 | ||
a338d023 | 43 | This package contains the cross version for Win32. |
bae24ee6 | 44 | |
45 | %description -l pl.UTF-8 | |
46 | Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML. | |
47 | ||
a338d023 JB |
48 | Ten pakiet zawiera wersję skrośną dla Win32. |
49 | ||
50 | %package static | |
51 | Summary: Static libxml2 library (cross mingw32 version) | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libxml2 (wersja skrośna mingw32) | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libxml2 library (cross mingw32 version). | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka libxml2 (wersja skrośna mingw32). | |
61 | ||
62 | %package dll | |
63 | Summary: DLL libxml2 library for Windows | |
64 | Summary(pl.UTF-8): Biblioteka DLL libxml2 dla Windows | |
65 | Group: Applications/Emulators | |
d43adb62 | 66 | Requires: crossmingw32-zlib-dll >= 1.2.4-3 |
a338d023 JB |
67 | Requires: wine |
68 | ||
69 | %description dll | |
70 | DLL libxml2 library for Windows. | |
71 | ||
72 | %description dll -l pl.UTF-8 | |
73 | Biblioteka DLL libxml2 dla Windows. | |
bae24ee6 | 74 | |
75 | %prep | |
d6d063a5 | 76 | %setup -q -n %{realname}-%{version} |
bae24ee6 | 77 | %patch0 -p1 |
78 | %patch1 -p1 | |
79 | %patch2 -p1 | |
d43adb62 | 80 | %patch3 -p1 |
bae24ee6 | 81 | |
82 | %build | |
bae24ee6 | 83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %configure \ | |
89 | --target=%{target} \ | |
90 | --host=%{target} \ | |
a338d023 | 91 | --without-python |
bae24ee6 | 92 | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
a338d023 | 99 | DESTDIR=$RPM_BUILD_ROOT |
bae24ee6 | 100 | |
a338d023 JB |
101 | install -d $RPM_BUILD_ROOT%{_dlldir} |
102 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
103 | ||
104 | %if 0%{!?debug:1} | |
105 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
106 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
107 | %endif | |
108 | ||
109 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man} | |
bae24ee6 | 110 | |
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
116 | %doc AUTHORS ChangeLog Copyright NEWS README TODO | |
a338d023 JB |
117 | %{_libdir}/libxml2.dll.a |
118 | %{_libdir}/libxml2.la | |
119 | %{_includedir}/libxml2 | |
120 | %{_pkgconfigdir}/libxml-2.0.pc | |
bae24ee6 | 121 | |
a338d023 JB |
122 | %files static |
123 | %defattr(644,root,root,755) | |
124 | %{_libdir}/libxml2.a | |
bae24ee6 | 125 | |
a338d023 JB |
126 | %files dll |
127 | %defattr(644,root,root,755) | |
128 | %{_dlldir}/libxml2-*.dll |