[packages/plutosvg] - new

qboosh qboosh at pld-linux.org
Wed Mar 19 21:14:10 CET 2025


commit ade57b89bf319c6a1d9611d8a1cd6b37f1a339d1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 19 21:06:48 2025 +0100

    - new

 plutosvg.spec | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 105 insertions(+)
---
diff --git a/plutosvg.spec b/plutosvg.spec
new file mode 100644
index 0000000..0b6fe83
--- /dev/null
+++ b/plutosvg.spec
@@ -0,0 +1,105 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+#
+Summary:	PlutoSVG - tiny SVG rendering library
+Summary(pl.UTF-8):	PlutoSVG - mała biblioteka do renderowania SVG
+Name:		plutosvg
+Version:	0.0.6
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/sammycage/plutosvg/releases
+Source0:	https://github.com/sammycage/plutosvg/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	3ebeae70224915e407a3815655477f0d
+URL:		https://github.com/sammycage/plutosvg
+BuildRequires:	freetype-devel >= 1:2.12
+BuildRequires:	meson >= 0.64.0
+BuildRequires:	ninja >= 1.5
+BuildRequires:	pkgconfig
+BuildRequires:	plutovg-devel >= 0.0.4
+BuildRequires:	rpmbuild(macros) >= 2.042
+Requires:	freetype >= 1:2.12
+Requires:	plutovg >= 0.0.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PlutoSVG is a compact and efficient SVG rendering library written in
+C. It is specifically designed for parsing and rendering SVG documents
+embedded in OpenType fonts, providing an optimal balance between speed
+and minimal memory usage. It is also suitable for rendering scalable
+icons.
+
+%description -l pl.UTF-8
+PlutoSVG to zwięzła i wydajna biblioteka renderująca SVG, napisana w
+C. Jest zaprojektowana w szczególności do analizy i renderowania
+dokumentów SVG osadzonych w fontach OpenType, zapewniając optymalne
+wyważenie między szybkością a minimalnym wykorzystaniem pamięci.
+Nadaje się też do renderowania skalowanych ikon.
+
+%package devel
+Summary:	Header files for PlutoSVG library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki PlutoSVG
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	freetype-devel >= 1:2.12
+Requires:	plutovg-devel >= 0.0.4
+
+%description devel
+Header files for PlutoSVG library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki PlutoSVG.
+
+%package static
+Summary:	Static PlutoSVG library
+Summary(pl.UTF-8):	Statyczna biblioteka PlutoSVG
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static PlutoSVG library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka PlutoSVG.
+
+%prep
+%setup -q
+
+%build
+%meson \
+	%{!?with_static_libs:--default-library=shared} \
+	-Dexamples=enabled \
+	-Dfreetype=enabled \
+	-Dtests=disabled
+
+%meson_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%meson_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_libdir}/libplutosvg.so.*.*.*
+%ghost %{_libdir}/libplutosvg.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libplutosvg.so
+%{_includedir}/plutosvg
+%{_pkgconfigdir}/plutosvg.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libplutosvg.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/plutosvg.git/commitdiff/ade57b89bf319c6a1d9611d8a1cd6b37f1a339d1



More information about the pld-cvs-commit mailing list