Sync from SUSE:SLFO:Main libcss revision 804459244d23d5988197fa128b81e4cf

This commit is contained in:
Adrian Schröter 2024-05-03 14:45:42 +02:00
commit 35b4312edf
6 changed files with 200 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

9
fix-test-includes.patch Normal file
View File

@ -0,0 +1,9 @@
Index: libcss-0.9.1/test/dump_computed.h
===================================================================
--- libcss-0.9.1.orig/test/dump_computed.h
+++ libcss-0.9.1/test/dump_computed.h
@@ -1,3 +1,4 @@
+#include <assert.h>
#include <libcss/computed.h>
#include <libcss/properties.h>
#include <libcss/types.h>

BIN
libcss-0.9.1-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

22
libcss-buildopts.patch Normal file
View File

@ -0,0 +1,22 @@
Index: libcss-0.9.1/Makefile
===================================================================
--- libcss-0.9.1.orig/Makefile
+++ libcss-0.9.1/Makefile
@@ -24,7 +24,7 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-
# BeOS/Haiku/AmigaOS4 standard library headers create warnings
ifneq ($(HOST),i586-pc-haiku)
ifneq ($(findstring amigaos,$(HOST)),amigaos)
- WARNFLAGS := $(WARNFLAGS) -Werror
+ WARNFLAGS := $(WARNFLAGS)
endif
endif
@@ -32,7 +32,7 @@ CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURC
-I$(CURDIR)/include/ -I$(CURDIR)/src \
$(WARNFLAGS) $(CFLAGS)
ifneq ($(GCCVER),2)
- CFLAGS := $(CFLAGS) -std=c99
+ CFLAGS := $(CFLAGS) -std=gnu99
else
# __inline__ is a GCCism
CFLAGS := $(CFLAGS) -Dinline="__inline__"

53
libcss.changes Normal file
View File

@ -0,0 +1,53 @@
-------------------------------------------------------------------
Wed May 19 14:52:17 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Define conditionally make_build to fix build on systems that do
not have that macro
-------------------------------------------------------------------
Wed Sep 2 09:03:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.9.1:
* Many bugfixes around
* support for new netsurf-buildsystem toolset
- Rebase libcss-buildopts.patch to this release
- Add patch to fix missing inlcudes:
* fix-test-includes.patch
-------------------------------------------------------------------
Tue Aug 8 19:39:14 UTC 2017 - jengelh@inai.de
- Fix RPM groups.
-------------------------------------------------------------------
Wed Feb 4 11:46:48 UTC 2015 - p.drouand@gmail.com
- Update to version 0.4.0
* Due to the change from CSS2 overflow to CSS3 overflow properties, the
computed style access functions for overflow properties have changed.
The overflow property is removed. Added are overflow-x and overflow-y
properties. (The overflow shorthand property now sets overflow-x and
overflow-y.)
This change affects the following functions:
Removed from include/libcss/computed.h -- css_computed_overflow()
Added to include/libcss/computed.h -- css_computed_overflow_x()
Added to include/libcss/computed.h -- css_computed_overflow_y()
-------------------------------------------------------------------
Fri Oct 31 00:11:46 UTC 2014 - crrodriguez@opensuse.org
- libcss-buildopts.patch: Do not define BSD_SOURCE but
GNU_SOURCE (fioxes build fail in factory)
- use -std=gnu99 instead of -std=c99.
- Disable -Werror
-------------------------------------------------------------------
Fri May 23 11:32:14 UTC 2014 - tchvatal@suse.com
- Cleanup with spec-cleaner
-------------------------------------------------------------------
Fri May 23 11:09:56 UTC 2014 - fstrba@suse.com
- Initial import of libcss, inspired from Fedora package

90
libcss.spec Normal file
View File

@ -0,0 +1,90 @@
#
# spec file for package libcss
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{!?make_build:%global make_build make %{?_smp_mflags}}
%global make_vars COMPONENT_TYPE=lib-shared PREFIX=%{_prefix} LIBDIR=%{_lib} CC=cc Q=
%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="$RPM_LD_FLAGS"
Name: libcss
Version: 0.9.1
Release: 0
Summary: A CSS parser and selection engine
License: MIT
URL: https://www.netsurf-browser.org/projects/libcss/
Source: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
Patch0: libcss-buildopts.patch
Patch1: fix-test-includes.patch
BuildRequires: netsurf-buildsystem >= 1.1
BuildRequires: pkgconfig
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(libparserutils) >= 0.2.0
BuildRequires: pkgconfig(libwapcaplet) >= 0.2.1
%description
LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
written in C. It was developed as part of the NetSurf project.
%package -n libcss0
Summary: A CSS parser and selection engine
%description -n libcss0
LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
written in C. It was developed as part of the NetSurf project.
Features:
* Parses CSS, good and bad
* Simple C API
* Low memory usage
* Fast selection engine
* Portable
%package devel
Summary: Development files for %{name}
Requires: libcss0 = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%autopatch -p1
%build
%make_build %{make_vars} %{build_vars}
%install
%make_install %{make_vars}
%check
%make_build test %{make_vars} %{build_vars}
%post -n libcss0 -p /sbin/ldconfig
%postun -n libcss0 -p /sbin/ldconfig
%files -n libcss0
%license COPYING
%{_libdir}/%{name}.so.*
%files devel
%doc docs/*
%doc README
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog