Blob Blame History Raw
Name: libcss
Version: 0.2.0
Release: 2%{?dist}
Summary: A CSS parser and selection engine

Group: System Environment/Libraries
License: MIT

BuildRequires: check-devel
BuildRequires: libparserutils-devel
BuildRequires: libwapcaplet-devel
BuildRequires: netsurf-buildsystem

Patch0: 0001-print-size_t-values-in-a-portable-way.patch

LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
written in C. It was developed as part of the NetSurf project. For
further details, see README.

* Parses CSS, good and bad
* Simple C API
* Low memory usage
* Fast selection engine
* Portable

%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%global make_vars COMPONENT_TYPE=lib-shared PREFIX=%{_prefix} Q=
%global build_envvars CFLAGS='%{optflags}' LDFLAGS="$RPM_LD_FLAGS"

%setup -q -n %{name}-%{version}
%patch0 -p1

sed -i -e s@/lib/@/%{_lib}/@ -e s@/lib:@/%{_lib}:@ Makefile %{name}

%{build_envvars} make %{?_smp_mflags} %{make_vars}

make install DESTDIR=%{buildroot} %{make_vars}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%{build_envvars} make %{?_smp_mflags} test %{make_vars}


%files devel
%doc docs/*

* Wed Jan 08 2014 David Tardon <> - 0.2.0-2
- build with correct flags

* Wed Dec 25 2013 David Tardon <> - 0.2.0-1
- initial import