]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blame - crossmingw32-libxml2.spec
- updated to 2.11.2
[packages/crossmingw32-libxml2.git] / crossmingw32-libxml2.spec
CommitLineData
d6d063a5 1%define realname libxml2
254c0603
JB
2Summary: libXML library - cross MinGW32 version
3Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
d6d063a5 4Name: crossmingw32-%{realname}
cedb0d05 5Version: 2.11.2
cae744c1 6Release: 1
bae24ee6 7License: MIT
a338d023 8Group: Development/Libraries
f2a7454c 9#Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
3f814cc5 10Source0: https://download.gnome.org/sources/libxml2/2.10/%{realname}-%{version}.tar.xz
cedb0d05 11# Source0-md5: 17cc55c83db69f5d236c784aef554529
3f814cc5
JB
12Patch0: %{realname}-open.gz.patch
13Patch1: %{realname}-largefile.patch
bae24ee6 14URL: http://xmlsoft.org/
3fc69630 15BuildRequires: autoconf >= 2.68
4da33da1 16BuildRequires: automake >= 1:1.16.3
a338d023 17BuildRequires: crossmingw32-gcc
d43adb62 18BuildRequires: crossmingw32-zlib >= 1.2.4-3
01436a0b 19BuildRequires: crossmingw32-xz
3fc69630 20BuildRequires: libtool >= 2:2.0
bae24ee6 21BuildRequires: sed >= 4.0
d43adb62 22Requires: crossmingw32-zlib >= 1.2.4-3
01436a0b 23Requires: crossmingw32-xz
bae24ee6 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define no_install_post_strip 1
be0bc07e 27%define _enable_debug_packages 0
bae24ee6 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++
fa16681a 39%define __pkgconfig_provides %{nil}
6a93caa8 40%define __pkgconfig_requires %{nil}
bb67111e
JB
41
42%ifnarch %{ix86}
43# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
44%define optflags -O2
45%endif
46# -z options are invalid for mingw linker, most of -f options are Linux-specific
47%define filterout_ld -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
48%define filterout_c -f[-a-z0-9=]*
bae24ee6 49
50%description
51This library allows you to manipulate XML files.
52
a338d023 53This package contains the cross version for Win32.
bae24ee6 54
55%description -l pl.UTF-8
56Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
57
a338d023
JB
58Ten pakiet zawiera wersję skrośną dla Win32.
59
60%package static
254c0603
JB
61Summary: Static libxml2 library (cross MinGW32 version)
62Summary(pl.UTF-8): Statyczna biblioteka libxml2 (wersja skrośna MinGW32)
a338d023
JB
63Group: Development/Libraries
64Requires: %{name} = %{version}-%{release}
65
66%description static
254c0603 67Static libxml2 library (cross MinGW32 version).
a338d023
JB
68
69%description static -l pl.UTF-8
254c0603 70Statyczna biblioteka libxml2 (wersja skrośna MinGW32).
a338d023
JB
71
72%package dll
73Summary: DLL libxml2 library for Windows
74Summary(pl.UTF-8): Biblioteka DLL libxml2 dla Windows
75Group: Applications/Emulators
d43adb62 76Requires: crossmingw32-zlib-dll >= 1.2.4-3
01436a0b 77Requires: crossmingw32-xz-dll
a338d023
JB
78Requires: wine
79
80%description dll
81DLL libxml2 library for Windows.
82
83%description dll -l pl.UTF-8
84Biblioteka DLL libxml2 dla Windows.
bae24ee6 85
86%prep
d6d063a5 87%setup -q -n %{realname}-%{version}
bae24ee6 88%patch0 -p1
89%patch1 -p1
bae24ee6 90
91%build
bae24ee6 92%{__libtoolize}
93%{__aclocal}
94%{__autoconf}
95%{__autoheader}
96%{__automake}
ef269486
JB
97# require at least WINXP for getaddrinfo interface
98CPPFLAGS="%{rpmcppflags} -DWINVER=0x0501"
bae24ee6 99%configure \
100 --target=%{target} \
101 --host=%{target} \
2d77eca5 102 --disable-silent-rules \
3f814cc5 103 --enable-static \
a338d023 104 --without-python
bae24ee6 105
106%{__make}
107
108%install
109rm -rf $RPM_BUILD_ROOT
110
111%{__make} install \
a338d023 112 DESTDIR=$RPM_BUILD_ROOT
bae24ee6 113
a338d023 114install -d $RPM_BUILD_ROOT%{_dlldir}
73a03ebb 115%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
a338d023
JB
116
117%if 0%{!?debug:1}
118%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
119%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
120%endif
121
73a03ebb 122%{__rm} $RPM_BUILD_ROOT%{_bindir}/{*.exe,xml2-config}
73a03ebb 123%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
2d77eca5 124%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
bae24ee6 125
126%clean
127rm -rf $RPM_BUILD_ROOT
128
129%files
130%defattr(644,root,root,755)
ef269486 131%doc Copyright NEWS README.md
a338d023
JB
132%{_libdir}/libxml2.dll.a
133%{_libdir}/libxml2.la
134%{_includedir}/libxml2
135%{_pkgconfigdir}/libxml-2.0.pc
bae24ee6 136
a338d023
JB
137%files static
138%defattr(644,root,root,755)
139%{_libdir}/libxml2.a
bae24ee6 140
a338d023
JB
141%files dll
142%defattr(644,root,root,755)
143%{_dlldir}/libxml2-*.dll
This page took 0.117021 seconds and 4 git commands to generate.