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