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

Group: System Environment/Libraries
License: MIT

BuildRequires: netsurf-buildsystem
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(libparserutils)
BuildRequires: pkgconfig(libwapcaplet)

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} LIBDIR=%{_lib} Q=
%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="$RPM_LD_FLAGS"

%autosetup -n %{name}-%{version} -p1

sed -i -e s@-Werror@@ Makefile

make %{?_smp_mflags} %{make_vars} %{build_vars}

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

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

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


%files devel
%doc docs/*

* Sun Apr 27 2014 David Tardon <> - 0.3.0-1
- new upstream release

* Mon Jan 13 2014 David Tardon <> - 0.2.0-3
- fix libcss.pc

* 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