File mingw64-libcroco.spec of Package mingw64-libcroco

#
# spec file for package mingw64-libcroco
#
# 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:           mingw64-libcroco
Version:        0.6.5
Release:        0
Summary:        CSS2 Parser Library
License:        GPL-2.0-or-later and LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            ftp://ftp.gnome.org/pub/gnome/sources/libcroco
Source:         ftp://ftp.gnome.org/pub/gnome/sources/libcroco/0.6/libcroco-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  xz
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Libcroco is a stand-alone CSS2 parsing library.
It provides a low-level event-driven SAC-like API and a CSS object model-like API.

%package -n mingw64-libcroco-0_6-3
Summary:        MinGW Windows port of the Croco CSS2 parser library
Group:          System/Libraries
Obsoletes:      mingw64-libcroco

%description -n mingw64-libcroco-0_6-3
Libcroco is a stand-alone CSS2 parsing library.
It provides a low-level event-driven SAC-like API and a CSS object model-like API.

%package devel
Summary:        CSS2 Parser Library (development files)
Group:          Development/Libraries/C and C++

%description devel
Libcroco is a stand-alone CSS2 parsing library.
This package contains the development files.

%package tools
Summary:        CSS2 Parser Library (tools)
Group:          Development/Tools/Other

%description tools
Libcroco is a stand-alone CSS2 parsing library.  This package contains the csslint program.

%_mingw64_debug_package

%prep
%setup -q -n libcroco-%{version}

%build
libtoolize --force --copy
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files -n mingw64-libcroco-0_6-3
%defattr(-,root,root)
%{_mingw64_bindir}/libcroco-0.6-3.dll

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/croco-0.6-config
%{_mingw64_libdir}/libcroco-0.6.dll.a
%{_mingw64_libdir}/pkgconfig/libcroco-0.6.pc
%{_mingw64_includedir}/libcroco-0.6/libcroco
%{_mingw64_datadir}/gtk-doc/html/libcroco/

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/csslint-0.6.exe

%changelog
openSUSE Build Service is sponsored by