1651c1cc02583a5175dbc4f43ea0f863d5c51fa3
[fedora-mingw.git] / libxml2 / mingw-libxml2.spec
1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
2
3 Name:           mingw-libxml2
4 Version:        2.6.32
5 Release:        1%{?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 BuildRequires:  mingw-gcc
15 BuildRequires:  mingw-binutils
16
17 Requires:       mingw-runtime
18
19 %description
20 MinGW Windows libxml2 XML processing library.
21
22
23 %prep
24 %setup -q -n libxml2-%{version}
25
26
27 %build
28 CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector" \
29 ./configure \
30   --build=%_build \
31   --host=i686-pc-mingw32 \
32   --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw \
33   --without-python
34
35 make
36
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 make DESTDIR=$RPM_BUILD_ROOT install
42
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47
48 %files
49 %defattr(-,root,root)
50 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/*
51 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/*
52 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/*
53 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/*
54 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc/libxml2-%{version}/
55 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/gtk-doc/html/libxml2/
56 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/*
57 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/*
58
59
60 %changelog
61 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.32-1
62 - Initial RPM release, largely based on earlier work from several sources.