[packages/plutovg] - rel 2 - use cmake and ninja for building (users need cmake files) - drop static lib

baggins baggins at pld-linux.org
Fri Oct 23 23:46:58 CEST 2026


commit c355a4bb213e058d7693f236ba91047c199b0606
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Oct 23 23:46:13 2026 +0200

    - rel 2
    - use cmake and ninja for building (users need cmake files)
    - drop static lib

 lib-version.patch | 10 ++++++++++
 plutovg.spec      | 35 ++++++-----------------------------
 2 files changed, 16 insertions(+), 29 deletions(-)
---
diff --git a/plutovg.spec b/plutovg.spec
index d2b8b4e..38d4972 100644
--- a/plutovg.spec
+++ b/plutovg.spec
@@ -1,12 +1,8 @@
-#
-# Conditional build:
-%bcond_without	static_libs	# static libraries
-#
 Summary:	PlutoVG - standalone 2D vector graphics library in C
 Summary(pl.UTF-8):	PlutoVG - samodzielna biblioteka grafiki wektorowej 2D w C
 Name:		plutovg
 Version:	1.3.3
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/sammycage/plutovg/releases
@@ -46,6 +42,7 @@ Summary:	Header files for PlutoVG library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki PlutoVG
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Obsoletes:	plutovg-static < 1.1.3-2
 
 %description devel
 Header files for PlutoVG library.
@@ -53,33 +50,19 @@ Header files for PlutoVG library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki PlutoVG.
 
-%package static
-Summary:	Static PlutoVG library
-Summary(pl.UTF-8):	Statyczna biblioteka PlutoVG
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description static
-Static PlutoVG library.
-
-%description static -l pl.UTF-8
-Statyczna biblioteka PlutoVG.
-
 %prep
 %setup -q
 
 %build
-%meson \
-	%{!?with_static_libs:--default-library=shared} \
-	-Dexamples=enabled \
-	-Dtests=disabled
+%cmake -B build \
+	-G Ninja
 
-%meson_build
+%ninja_build -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%meson_install
+%ninja_install -C build
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -98,9 +81,3 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libplutovg.so
 %{_includedir}/plutovg
 %{_pkgconfigdir}/plutovg.pc
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libplutovg.a
-%endif
diff --git a/lib-version.patch b/lib-version.patch
new file mode 100644
index 0000000..0edff88
--- /dev/null
+++ b/lib-version.patch
@@ -0,0 +1,10 @@
+--- plutovg-1.3.3/CMakeLists.txt~	2026-05-18 06:56:54.000000000 +0200
++++ plutovg-1.3.3/CMakeLists.txt	2026-10-23 23:44:14.470746255 +0200
+@@ -42,6 +42,7 @@
+ 
+ set_target_properties(plutovg PROPERTIES
+     SOVERSION ${PLUTOVG_VERSION_MAJOR}
++    VERSION ${PROJECT_VERSION}
+     C_VISIBILITY_PRESET hidden
+     C_STANDARD_REQUIRED ON
+     C_STANDARD 11
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/plutovg.git/commitdiff/c355a4bb213e058d7693f236ba91047c199b0606



More information about the pld-cvs-commit mailing list