Ignore mingw32-boost for now, because it doesn't work.
[fedora-mingw.git] / libxml2 / mingw32-libxml2.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 Name:           mingw32-libxml2
8 Version:        2.7.2
9 Release:        1%{?dist}
10 Summary:        MinGW Windows libxml2 XML processing library
11
12 License:        MIT
13 Group:          Development/Libraries
14 URL:            http://xmlsoft.org/
15 Source0:        ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 # Not required for MinGW.
19 #Patch0:         libxml2-multilib.patch
20
21 BuildArch:      noarch
22
23 BuildRequires:  mingw32-filesystem >= 23
24 BuildRequires:  mingw32-gcc
25 BuildRequires:  mingw32-binutils
26 BuildRequires:  mingw32-zlib
27 BuildRequires:  mingw32-gettext
28
29
30 %description
31 MinGW Windows libxml2 XML processing library.
32
33
34 %prep
35 %setup -q -n libxml2-%{version}
36
37
38 %build
39 LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python
40 make
41
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 make DESTDIR=$RPM_BUILD_ROOT install
47
48 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libxml2.a
49
50 # Remove manpages which duplicate Fedora native.
51 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
52
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57
58 %files
59 %defattr(-,root,root)
60 %{_mingw32_bindir}/libxml2-2.dll
61 %{_mingw32_bindir}/xml2-config
62 %{_mingw32_bindir}/xmlcatalog.exe
63 %{_mingw32_bindir}/xmllint.exe
64 %{_mingw32_libdir}/libxml2.dll.a
65 %{_mingw32_libdir}/libxml2.la
66 %{_mingw32_libdir}/pkgconfig
67 %{_mingw32_libdir}/pkgconfig/libxml-2.0.pc
68 %{_mingw32_libdir}/xml2Conf.sh
69 %{_mingw32_includedir}/libxml2
70 %{_mingw32_datadir}/aclocal/*
71 %{_mingw32_docdir}/libxml2-%{version}/
72 %{_mingw32_datadir}/gtk-doc/html/libxml2/
73
74
75 %changelog
76 * Fri Oct 17 2008 Richard W.M. Jones <rjones@redhat.com> - 2.7.2-1
77 - Resynch to native Fedora package + patch.
78
79 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.7.1-2
80 - Rename mingw -> mingw32.
81
82 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.7.1-1
83 - Update to 2.7.1 release
84
85 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-5
86 - Remove manpages which duplicate Fedora native.
87
88 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-4
89 - Remove static libraries.
90 - List libdir files explicitly.
91
92 * Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-3
93 - Use RPM macros from mingw-filesystem.
94 - BuildArch is noarch.
95
96 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-1
97 - Initial RPM release, largely based on earlier work from several sources.