commit 8704344b75b4c0a51149590db596ca41cf670513 Author: Adrian Schröter Date: Tue Feb 13 13:38:42 2024 +0100 Sync from SUSE:ALP:Source:Standard:1.0 libdom revision 18553494c9294cbfce5cf720bbb1d3c3 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libdom-0.4.2-src.tar.gz b/libdom-0.4.2-src.tar.gz new file mode 100644 index 0000000..a33f494 --- /dev/null +++ b/libdom-0.4.2-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d05e45af16547014c2b0a3aecf3670fa13d419f505b3f5fc7ac8a1491fc30f3c +size 878706 diff --git a/libdom.changes b/libdom.changes new file mode 100644 index 0000000..fd7b1c6 --- /dev/null +++ b/libdom.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jan 12 14:49:30 UTC 2024 - Antonio Teixeira + +- Initial import of libdom, inspired from libcss package. diff --git a/libdom.spec b/libdom.spec new file mode 100644 index 0000000..7793797 --- /dev/null +++ b/libdom.spec @@ -0,0 +1,83 @@ +# +# spec file for package libdom +# +# Copyright (c) 2024 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" +%define library_name libdom0 +Name: libdom +Version: 0.4.2 +Release: 0 +Summary: C implementation of the W3C DOM API +License: MIT +URL: http://www.netsurf-browser.org/projects/libdom/ +Source: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz +BuildRequires: netsurf-buildsystem +BuildRequires: perl(Switch) +BuildRequires: perl(XML::Parser::PerlSAX) +BuildRequires: perl(XML::XPath) +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(libhubbub) +BuildRequires: pkgconfig(libparserutils) +BuildRequires: pkgconfig(libwapcaplet) + +%description +LibDOM is an implementation of the W3C DOM API written in C. It was developed as +part of the NetSurf project. + +%package -n %{library_name} +Summary: C implementation of the W3C DOM API + +%description -n %{library_name} +LibDOM is an implementation of the W3C DOM API written in C. It was developed as +part of the NetSurf project. + +%package devel +Summary: Development files for %{name} +Requires: %{library_name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +%make_build %{make_vars} %{build_vars} + +%install +%make_install %{make_vars} + +%check +%make_build test %{make_vars} %{build_vars} + +%post -n %{library_name} -p /sbin/ldconfig +%postun -n %{library_name} -p /sbin/ldconfig + +%files -n %{library_name} +%license COPYING +%{_libdir}/%{name}.so.* + +%files devel +%doc docs/* README +%{_includedir}/dom/ +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog