%{?mingw_package_header}
Name: mingw-libcroco
Version: 0.6.8
Release: 1%{?dist}
Summary: A CSS2 parsing library for MinGW
License: LGPLv2
URL: http://ftp.gnome.org/pub/GNOME/sources/libcroco/
Source: http://download.gnome.org/sources/libcroco/0.6/libcroco-%{version}.tar.xz
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw64-gcc
BuildRequires: mingw32-glib2
BuildRequires: mingw64-glib2
BuildRequires: mingw32-pkg-config
BuildRequires: mingw64-pkg-config
BuildRequires: mingw32-libxml2
BuildRequires: mingw64-libxml2
%description
CSS2 parsing and manipulation library for GNOME
This is the MinGW version of this library.
%package -n mingw32-libcroco
Summary: MinGW A CSS2 parsing library
Requires: pkgconfig
%description -n mingw32-libcroco
This package contains the header files and libraries needed to develop MinGW
applications that use libcroco.
%package -n mingw32-libcroco-static
Summary: MinGW static A CSS2 parsing library
Requires: mingw32-libcroco = %{version}-%{release}
%description -n mingw32-libcroco-static
This package contains the static libraries needed to develop MinGW
applications that use libcroco-0.6.
%package -n mingw64-libcroco
Summary: MinGW A CSS2 parsing library
Requires: pkgconfig
%description -n mingw64-libcroco
This package contains the header files and libraries needed to develop MinGW
applications that use libcroco-0.6.
%package -n mingw64-libcroco-static
Summary: MinGW static A CSS2 parsing library
Requires: mingw64-libcroco = %{version}-%{release}
%description -n mingw64-libcroco-static
This package contains the static libraries needed to develop MinGW
applications that use libcroco-0.6.
%{?mingw_debug_package}
%prep
%setup -q -n libcroco-%{version}
%build
%mingw_configure --without-pic
%mingw_make %{?_smp_mflags} V=1
%install
%mingw_make_install "DESTDIR=$RPM_BUILD_ROOT"
# Libtool files don't need to be bundled
find $RPM_BUILD_ROOT -name "*.la" -delete
%files -n mingw32-libcroco
%doc AUTHORS COPYING README NEWS
%{mingw32_bindir}/croco-0.6-config
%{mingw32_bindir}/csslint-0.6.exe
%{mingw32_bindir}/libcroco-0.6-3.dll
%{mingw32_includedir}/libcroco-0.6
%{mingw32_libdir}/libcroco-0.6.dll.a
%{mingw32_libdir}/pkgconfig/*.pc
%files -n mingw32-libcroco-static
%{mingw32_libdir}/libcroco-0.6.a
%files -n mingw64-libcroco
%doc AUTHORS COPYING README NEWS
%{mingw64_bindir}/croco-0.6-config
%{mingw64_bindir}/csslint-0.6.exe
%{mingw64_bindir}/libcroco-0.6-3.dll
%{mingw64_includedir}/libcroco-0.6
%{mingw64_libdir}/libcroco-0.6.dll.a
%{mingw64_libdir}/pkgconfig/*.pc
%files -n mingw64-libcroco-static
%{mingw64_libdir}/libcroco-0.6.a
%changelog
* Wed Nov 26 2014 Richard Hughes <richard@hughsie.com> - 0.6.8-1
- Initial packaging attempt