From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Mon, 7 Jul 2008 23:45:53 +0000 (+0100) Subject: Working libxml2 package. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c63ee65eec729e56adc205332b2df4c7dac1aa27;hp=19d27f311a094d13876da7f092b7fb2d350671dd;p=fedora-mingw.git Working libxml2 package. --- diff --git a/libxml2/mingw-libxml2.spec b/libxml2/mingw-libxml2.spec new file mode 100644 index 0000000..1651c1c --- /dev/null +++ b/libxml2/mingw-libxml2.spec @@ -0,0 +1,62 @@ +%define __os_install_post /usr/lib/rpm/brp-compress %{nil} + +Name: mingw-libxml2 +Version: 2.6.32 +Release: 1%{?dist} +Summary: MinGW Windows libxml2 XML processing library + +License: LGPLv2+ +Group: Development/Libraries +URL: http://www.xmlsoft.org/ +Source0: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils + +Requires: mingw-runtime + +%description +MinGW Windows libxml2 XML processing library. + + +%prep +%setup -q -n libxml2-%{version} + + +%build +CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector" \ +./configure \ + --build=%_build \ + --host=i686-pc-mingw32 \ + --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw \ + --without-python + +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc/libxml2-%{version}/ +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/gtk-doc/html/libxml2/ +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/* + + +%changelog +* Mon Jul 7 2008 Richard W.M. Jones - 2.6.32-1 +- Initial RPM release, largely based on earlier work from several sources.