diff --git a/README.md b/README.md index 78d0cf9..ba09fb8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libcss +LibCSS is a CSS parser and selection engine. It aims to parse the forward compatible CSS grammar. + diff --git a/libcss.spec b/libcss.spec new file mode 100644 index 0000000..5d4dfbd --- /dev/null +++ b/libcss.spec @@ -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 +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 0.9.2-1mamba +- package created using the webbuild interface