File libcroco.spec of Package libcroco
#
# spec file for package libcroco (Version 0.6.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libcroco
BuildRequires: glib2-devel gtk-doc libxml2-devel
Version: 0.6.2
Release: 2
Url: http://www.freespiders.org/projects/libcroco/
Group: System/Libraries
License: GPLv2+ ; LGPLv2.1+
Summary: CSS2 Parser Library
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: libcroco-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-0_6-3
%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.
Authors:
--------
Gael Chamoulaud <strider@gnome.org>
Rob BUIS <rwlbuis@xs4all.nl>
%package 0_6-3
License: GPLv2+ ; LGPLv2.1+
Group: System/Libraries
Summary: CSS2 Parser Library
# bug437293
%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.
Authors:
--------
Gael Chamoulaud <strider@gnome.org>
Rob BUIS <rwlbuis@xs4all.nl>
%package devel
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: CSS2 Parser Library Development Files
Requires: %{name} = %{version} glib2-devel libxml2-devel zlib-devel
# 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.
Authors:
--------
Gael Chamoulaud <strider@gnome.org>
Rob BUIS <rwlbuis@xs4all.nl>
%prep
%setup -q
%build
# needed for libcroco-0.6.1:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --with-pic\
--disable-static
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%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)
%{_bindir}/*-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog