package created using the webbuild interface [release 0.9.2-1mamba;Thu Jan 02 2025]

This commit is contained in:
Silvan Calarco 2025-01-03 11:56:23 +01:00
parent a50b2d6625
commit 658877604d
2 changed files with 65 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libcss
LibCSS is a CSS parser and selection engine. It aims to parse the forward compatible CSS grammar.

63
libcss.spec Normal file
View File

@ -0,0 +1,63 @@
Name: libcss
Version: 0.9.2
Release: 1mamba
Summary: Cascading Style Sheets library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/netsurf-browser/libcss
Source: https://github.com/netsurf-browser/libcss.git/release%2F%{version}/libcss-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libparserutils-devel
BuildRequires: libwapcaplet-devel
## AUTOBUILDREQ-END
BuildRequires: netsurf-buildsystem
%description
LibCSS is a CSS parser and selection engine. It aims to parse the forward compatible CSS grammar.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q
sed -i 's,_BSD_SOURCE,_DEFAULT_SOURCE,' Makefile
%build
export CFLAGS="%{optflags} -shared -fPIC -w"
export LDFLAGS="%{optflags} -shared -z,now"
%make COMPONENT_TYPE=lib-shared INCLUDEDIR=include LIBDIR=%{_lib} PREFIX=%{_prefix}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall COMPONENT_TYPE=lib-shared INCLUDEDIR=include LIBDIR=%{_lib} PREFIX=%{_prefix}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libcss.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libcss
%{_includedir}/libcss/*
%{_libdir}/libcss.so
%{_libdir}/pkgconfig/libcss.pc
%doc README
%changelog
* Thu Jan 02 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.2-1mamba
- package created using the webbuild interface