From e26c78f0cbe8e415203d8bb543f1a20bfcf9db4d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 Mar 2026 09:24:34 +0100 Subject: new package --- lexbor.spec | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 lexbor.spec (limited to 'lexbor.spec') diff --git a/lexbor.spec b/lexbor.spec new file mode 100644 index 0000000..3b71025 --- /dev/null +++ b/lexbor.spec @@ -0,0 +1,121 @@ +# remirepo/fedora spec file for lexbor +# +# SPDX-FileCopyrightText: Copyright 2026 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +%bcond_without tests +%bcond_with licensecheck + +# Github forge +%global gh_vend %{name} +%global gh_proj %{name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag v%{version} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-%{version} + +%global soname 2 + +Name: lexbor +Summary: HTML Renderer library +License: Apache-2.0 +Version: 2.7.0 +Release: 1%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} +# Use --with licensecheck to generate +Source3: %{name}-files-by-license.txt + +Patch0: 0001-add-support-for-pkg-config.patch + +ExcludeArch: %{ix86} + +BuildRequires: cmake >= 2.8.12 +BuildRequires: make +BuildRequires: gcc + + +%description +Crafting a Browser Engine with Simplicity and Flexibility. + +Lexbor is still in development, but the existing modules are already +production-ready. + +A set of fast, standards-compliant tools (modules) for working with modern +web technologies — HTML parsing, CSS processing, URL handling, and more. +These modules are production-ready today and form the foundation of a browser +engine in development. + + +%package devel +Summary: Header files and development libraries for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains the header files and development libraries +for %{name}. + + +%prep +%forgesetup +%patch -P0 -p1 -b .pkgconfig + +%if %{with licensecheck} +LST=$(mktemp) + +licensecheck -r . | sed -e 's:^./::' >$LST +grep -v UNKNOWN $LST | sed -e 's/.*: //' | sort -u | while read lic +do + echo -e "\n$lic\n------------" + grep ": $lic\$" $LST | sed -e "s/: $lic//" +done | tee %{SOURCE3} +rm $LST +%endif + + +%build +%cmake \ +%if %{with tests} + -DLEXBOR_BUILD_TESTS=ON \ +%endif + -DLEXBOR_BUILD_EXAMPLES=OFF \ + -DLEXBOR_INSTALL_HEADERS=ON \ + -DLEXBOR_BUILD_SHARED=ON \ + -DLEXBOR_BUILD_STATIC=OFF + +%cmake_build + + +%install +%cmake_install + + +%if %{with tests} +%check +%ctest +%endif + + +%files +%license LICENSE +%doc CHANGELOG.md +%doc README.md +%doc SECURITY.md +%{_libdir}/lib%{name}.so.%{soname}* + +%files devel +%doc examples +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/%{name} +%{_libdir}/pkgconfig/%{name}.pc + + +%changelog +* Tue Mar 24 2026 Remi Collet - 2.7.0-1 +- initial package -- cgit