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