From db766bbdb87115efe1770c85c05febf400b1280b0cde95f84972d692b6ded14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 15:27:28 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main libparserutils revision 8b2c0394602fd92ff0cd78d43bf0a6c7 --- .gitattributes | 23 ++++++++ libparserutils-0.2.4-src.tar.gz | 3 + libparserutils-optflags.patch | 13 +++++ libparserutils.changes | 44 +++++++++++++++ libparserutils.spec | 97 +++++++++++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 libparserutils-0.2.4-src.tar.gz create mode 100644 libparserutils-optflags.patch create mode 100644 libparserutils.changes create mode 100644 libparserutils.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/libparserutils-0.2.4-src.tar.gz b/libparserutils-0.2.4-src.tar.gz new file mode 100644 index 0000000..c53883c --- /dev/null +++ b/libparserutils-0.2.4-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:322bae61b30ccede3e305bf6eae2414920649775bc5ff1d1b688012a3c4947d8 +size 74521 diff --git a/libparserutils-optflags.patch b/libparserutils-optflags.patch new file mode 100644 index 0000000..d714136 --- /dev/null +++ b/libparserutils-optflags.patch @@ -0,0 +1,13 @@ +Index: libparserutils-0.2.3/Makefile +=================================================================== +--- libparserutils-0.2.3.orig/Makefile ++++ libparserutils-0.2.3/Makefile +@@ -23,7 +23,7 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer- + -Wmissing-declarations -Wnested-externs -pedantic + # BeOS/Haiku standard library headers create warnings. + ifneq ($(BUILD),i586-pc-haiku) +- WARNFLAGS := $(WARNFLAGS) -Werror ++ WARNFLAGS := $(WARNFLAGS) + endif + + CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \ diff --git a/libparserutils.changes b/libparserutils.changes new file mode 100644 index 0000000..f8c783d --- /dev/null +++ b/libparserutils.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Wed May 19 15:00:56 UTC 2021 - Fridrich Strba + +- Define conditionally make_build to fix build on systems that do + not have that macro + +------------------------------------------------------------------- +Wed Aug 26 12:16:50 UTC 2020 - Tomáš Chvátal + +- Fix the compilation to actually work + +------------------------------------------------------------------- +Tue Aug 25 15:21:02 UTC 2020 - Dirk Mueller + +- update to 0.2.4: + * Tests: Fix memory leak + * Tests: Fix read before start of unused expected buffer + +------------------------------------------------------------------- +Fri Aug 5 22:09:12 UTC 2016 - jengelh@inai.de + +- Use typical SUSE RPM categories + +------------------------------------------------------------------- +Mon Aug 1 08:57:11 UTC 2016 - tchvatal@suse.com + +- Remove sle11 support code +- Update to 0.2.3 release: + * Few small patches in makefile nothing big +- Refresh patch libparserutils-optflags.patch + +------------------------------------------------------------------- +Fri Oct 31 01:28:50 UTC 2014 - crrodriguez@opensuse.org + +- libparserutils-optflags.patch Do not use Werror and do + not define _BSD_SOURCE but GNU_SOURCE. (fix factory build) +- use std=gnu99 instead of strict c99. +- Doxygen should not generate timestamped html docs. + +------------------------------------------------------------------- +Fri May 23 10:43:55 UTC 2014 - fstrba@suse.com + +- Initial package of libparserutils inspiried by Fedora package + diff --git a/libparserutils.spec b/libparserutils.spec new file mode 100644 index 0000000..c463f00 --- /dev/null +++ b/libparserutils.spec @@ -0,0 +1,97 @@ +# +# spec file for package libparserutils +# +# 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}} +Name: libparserutils +Version: 0.2.4 +Release: 0 +Summary: A library for building efficient parsers +License: MIT +URL: https://www.netsurf-browser.org/projects/libparserutils/ +Source: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz +Patch0: libparserutils-optflags.patch +BuildRequires: netsurf-buildsystem >= 1.1 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(check) + +%description +LibParserUtils is a library for building efficient parsers, written in +C. It was developed as part of the NetSurf project. + +Features: +* No mandatory dependencies (iconv() implementation optional for + enhanced charset support) +* A number of built-in character set converters +* Mapping of character set names to/from MIB enum values +* UTF-8 and UTF-16 (host endian) support functions +* Various simple data structures (resizeable buffer, stack, vector) +* A UTF-8 input stream +* Simple C API +* Portable + +LibParserUtils has the following built-in charset converters: +* UTF-8 +* UTF-16 (platform-native endian) +* ISO-8859-n +* Windows-125n +* US-ASCII + +%package -n libparserutils0 +Summary: A library for building efficient parsers + +%description -n libparserutils0 +LibParserUtils is a library for building efficient parsers, written in +C. It was developed as part of the NetSurf project. + +%package devel +Summary: Development files for %{name} +Requires: libparserutils0 = %{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= INCLUDEDIR=include CC=gcc BUILD_CC=gcc +%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="$RPM_LD_FLAGS" + +%prep +%setup -q +%patch0 -p1 + +%build +%make_build %{make_vars} %{build_vars} + +%install +make install DESTDIR=%{buildroot} %{make_vars} + +%post -n libparserutils0 -p /sbin/ldconfig +%postun -n libparserutils0 -p /sbin/ldconfig + +%check +%make_build test %{make_vars} + +%files -n libparserutils0 +%license COPYING +%{_libdir}/%{name}.so.* + +%files devel +%{_includedir}/parserutils +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog