File mingw32-expat.spec of Package mingw32-expat
#
# spec file for package mingw32-expat
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-expat
Version: 2.2.4
Release: 0
Summary: MinGW Windows port of expat XML parser library
License: MIT
Group: Development/Libraries/C and C++
Url: http://www.libexpat.org/
Source0: http://download.sourceforge.net/expat/expat-%{version}.tar.bz2
Source1000: %{name}-%{version}-rpmlintrc
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkgconf
%_mingw32_package_header_debug
BuildArch: noarch
%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-libexpat1
Summary: MinGW Windows port of expat XML parser library
Group: System/Libraries
Obsoletes: mingw32-libexpat
%description -n mingw32-libexpat1
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/C and C++
Requires: mingw32-libexpat1
%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}
rm -rf autom4te*.cache
cp `aclocal --print-ac-dir`/libtool.m4 conftools || exit 1
libtoolize --copy --force --automake && aclocal && automake --add-missing && autoheader && autoconf
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
%{_mingw32_configure} \
--disable-static --enable-shared
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw32_bindir}/xmlwf.exe
%{_mingw32_mandir}/man1
%{_mingw32_datadir}/doc
%files -n mingw32-libexpat1
%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_libdir}/pkgconfig/expat.pc
%changelog