File mingw32-expat.spec of Package mingw32-expat
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
%{_mingw32_install_post}
Name: mingw32-expat
Version: 2.0.1
Release: 0
Summary: MinGW Windows port of expat XML parser library
License: MIT
Group: Development/Libraries
URL: http://www.libexpat.org/
Source0: http://download.sourceforge.net/expat/expat-%{version}.tar.gz
Source1000: %{name}-%{version}-rpmlintrc
Patch0: expat-2.0.1-exeext.patch
Patch1000: expat-2.0.1-wix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-filesystem >= 33
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-binutils
BuildRequires: autoconf, automake, libtool
BuildRequires: wixwine
%description
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
%package -n mingw32-libexpat
Summary: MinGW Windows port of expat XML parser library
Group: Development/Libraries
%description -n mingw32-libexpat
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
%package -n mingw32-libexpat-devel
Summary: MinGW Windows port of expat XML parser library
Group: Development/Libraries
%description -n mingw32-libexpat-devel
This is expat, the C library for parsing XML, written by James Clark. Expat
is a stream oriented XML parser. This means that you register handlers with
the parser prior to starting the parse. These handlers are called when the
parser discovers the associated structures in the document being parsed. A
start tag is an example of the kind of structures for which you may
register handlers.
%{_mingw32_debug_package}
%prep
%setup -q -n expat-%{version}
%patch0 -p1 -b .exeext
%patch1000 -p1 -b .wix
rm -rf autom4te*.cache
cp `aclocal --print-ac-dir`/libtool.m4 conftools || exit 1
libtoolize --copy --force --automake && aclocal && autoheader && autoconf
%build
%{_mingw32_configure} \
--disable-static --enable-shared
make %{?_smp_mflags} || make
echo "Name: expat" > expat.pc
echo "Description: expat XML parser libary" >> expat.pc
echo "Version: %{version}" >> expat.pc
echo "" >> expat.pc
echo "prefix=%{_mingw32_prefix}" >> expat.pc
echo "Libs: -lexpat" >> expat.pc
echo "Cflags:" >> expat.pc
echo "Wixlibs=%{_mingw32_datadir}/wixlib/expat.wixlib" >> expat.pc
echo "Fualflags=-C expat -D expat" >> expat.pc
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}/pkgconfig
cp expat.pc $RPM_BUILD_ROOT%{_mingw32_libdir}/pkgconfig/expat.pc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw32_bindir}/xmlwf.exe
%{_mingw32_mandir}/man1
%files -n mingw32-libexpat
%defattr(-,root,root)
%{_mingw32_bindir}/libexpat-1.dll
%files -n mingw32-libexpat-devel
%defattr(-,root,root)
%{_mingw32_libdir}/libexpat.dll.a
%{_mingw32_includedir}/expat.h
%{_mingw32_includedir}/expat_external.h
%{_mingw32_datadir}/wixlib/expat.wixlib
%{_mingw32_libdir}/pkgconfig/expat.pc
%changelog
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-3
- Rebuild for mingw32-cross-gcc 4.4
* Fri Feb 6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-2
- Include license.
* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.1-1
- Initial RPM release.