File libcroco.spec of Package libcroco.11164

#
# spec file for package libcroco
#
# Copyright (c) 2017 SUSE LINUX 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:           libcroco
Version:        0.6.12
Release:        0
Summary:        CSS2 Parser Library
License:        LGPL-2.1
Group:          Development/Libraries/C and C++
Url:            http://www.freespiders.org/projects/libcroco/
Source:         http://download.gnome.org/sources/libcroco/0.6/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
# PATCH-FIX-UPSTREAM libcroco-fix-CVE-2017-7960.patch boo#1034481 zaitor@opensuse.org -- Fix CVE-2017-7960
Patch0:         libcroco-fix-CVE-2017-7960.patch
# PATCH-FIX-UPSTREAM libcroco-fix-CVE-2017-7961.patch boo#1034482 zaitor@opensuse.org -- Fix CVE-2017-7961
Patch1:         libcroco-fix-CVE-2017-7961.patch
# PATCH-FIX-UPSTREAM libcroco-CVE-2017-8834.patch boo#1043898 boo#1043899 mgorse@suse.com -- fix infinite loop on invalid UTF-8.
Patch2:         libcroco-CVE-2017-8834.patch
BuildRequires:  pkgconfig(glib-2.0) >= 2.0
BuildRequires:  pkgconfig(libxml-2.0) >= 2.4.23
# bug437293
%ifarch ppc64
Obsoletes:      libcroco-64bit
%endif
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 0_6-3
Summary:        CSS2 Parser Library
# bug437293
Group:          System/Libraries
%ifarch ppc64
Obsoletes:      libcroco-64bit
%endif
#

%description 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++
Requires:       %{name} = %{version}
# bug437293
%ifarch ppc64
Obsoletes:      libcroco-devel-64bit
%endif
#

%description devel
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.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
# needed for libcroco-0.6.1:
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la

%post 0_6-3 -p /sbin/ldconfig

%postun 0_6-3 -p /sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog HACKING NEWS README TODO
%{_bindir}/csslint-0.6

%files 0_6-3
%defattr (-, root, root)
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%doc %{_datadir}/gtk-doc/html/libcroco/
%{_bindir}/*-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by