1c741332ddc739488b9582cd04245d73fec6a75a
[fedora-mingw.git] / libxml2 / mingw-libxml2.spec
1 %include /usr/lib/rpm/mingw-defs
2
3 Name:           mingw-libxml2
4 Version:        2.6.32
5 Release:        3%{?dist}
6 Summary:        MinGW Windows libxml2 XML processing library
7
8 License:        LGPLv2+
9 Group:          Development/Libraries
10 URL:            http://www.xmlsoft.org/
11 Source0:        ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildArch:      noarch
15
16 BuildRequires:  mingw-filesystem >= 19
17 BuildRequires:  mingw-gcc
18 BuildRequires:  mingw-binutils
19 BuildRequires:  mingw-zlib
20 BuildRequires:  mingw-gettext
21
22
23 %description
24 MinGW Windows libxml2 XML processing library.
25
26
27 %prep
28 %setup -q -n libxml2-%{version}
29
30
31 %build
32 LDFLAGS="-no-undefined" %{_mingw_configure} --without-python
33 make
34
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38
39 make DESTDIR=$RPM_BUILD_ROOT install
40
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45
46 %files
47 %defattr(-,root,root)
48 %{_mingw_bindir}/libxml2-2.dll
49 %{_mingw_bindir}/xml2-config
50 %{_mingw_bindir}/xmlcatalog.exe
51 %{_mingw_bindir}/xmllint.exe
52 %{_mingw_libdir}/*
53 %{_mingw_includedir}/*
54 %{_mingw_datadir}/aclocal/*
55 %{_mingw_docdir}/libxml2-%{version}/
56 %{_mingw_datadir}/gtk-doc/html/libxml2/
57 %{_mingw_mandir}/man1/*
58 %{_mingw_mandir}/man3/*
59
60
61 %changelog
62 * Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-3
63 - Use RPM macros from mingw-filesystem.
64 - BuildArch is noarch.
65
66 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-1
67 - Initial RPM release, largely based on earlier work from several sources.