[packages/lib3mf] - pl, spec cleanup/updated conventions

qboosh qboosh at pld-linux.org
Sun Oct 11 11:40:02 CEST 2026


commit 0b6df6e8bc2a1df496c65496c2708e82b232b95a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 11 11:40:27 2026 +0200

    - pl, spec cleanup/updated conventions

 lib3mf.spec | 53 ++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 38 insertions(+), 15 deletions(-)
---
diff --git a/lib3mf.spec b/lib3mf.spec
index 6b5400c..c1f65b9 100644
--- a/lib3mf.spec
+++ b/lib3mf.spec
@@ -1,22 +1,28 @@
+# TODO: system cpp-base64, fast_float?
 #
 # Conditional build:
-%bcond_with	tests		# build with tests
+%bcond_with	tests		# test suite
 #
 Summary:	Implementation of the 3D Manufacturing Format file standard
+Summary(pl.UTF-8):	Implementacja standardu plików 3D Manufacturing Format
 Name:		lib3mf
 Version:	2.5.0
 Release:	2
 License:	BSD
 Group:		Libraries
+#Source0Download: https://github.com/3MFConsortium/lib3mf/releases
 Source0:	https://github.com/3MFConsortium/lib3mf/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	43da209fe1b28464ea6f93fb7697d187
 Patch0:		fast-float-include-path.patch
 Patch1:		cmake.patch
 URL:		https://3mf.io/
-BuildRequires:	cmake
+BuildRequires:	cmake >= 3.10
+BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	libzip-devel
 BuildRequires:	ossp-uuid-devel
 BuildRequires:	openssl-devel
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 2.047
 BuildRequires:	zlib-devel
 %{?with_tests:BuildRequires:	googletest}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -26,7 +32,7 @@ As 3MF shall become an universal 3D Printing standard, its quick
 adoption is very important. This library shall lower all barriers of
 adoption to any possible user, let it be software providers, hardware
 providers, service providers or middleware tools. The specification
-can be downloaded at http://3mf.io/specification/
+can be downloaded at <http://3mf.io/specification/>.
 
 Its aim is to offer an open source way to integrate 3MF reading and
 writing capabilities, as well as conversion and validation tools for
@@ -34,11 +40,27 @@ input and output data. The 3MF Library shall provide a clean and
 easy-to-use API to speed up the development and keep integration costs
 at a minimum.
 
+%description -l pl.UTF-8
+Jako że 3MF powinien stać się uniwersalnym standardem wydruków 3D,
+ważna jest jego szybka adopcja. Ta biblioteka powinna obniżyć bariery
+w adopcji u wszystkich możliwych użytkowników, w tym dostawców
+oprogramowania, sprzętu, usług czy narzędzi warstwy pośredniej.
+Specyfikację można pobrać pod <http://3mf.io/specification/>.
+
+Celem jest zaoferowanie kodu o otwartych źródłach, pozwalającego na
+zintegrowanie odczytu i zapisu 3MF, a także narzędzi do konwersji i
+sprawdzania poprawności danych wejściowych i wyjściowych. Biblioteka
+3MF powinna dostarczyć czyste i łatwe w użyciu API, przyspieszające
+rozwój oprogramowania i minimalizujące koszty integracji.
+
 %package devel
 Summary:	Header files for %{name} library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel >= 6:7
+Requires:	libzip-devel
+Requires:	zlib-devel
 
 %description devel
 Header files for %{name} library.
@@ -53,15 +75,16 @@ Pliki nagłówkowe biblioteki %{name}.
 
 %build
 mkdir -p build
-cd  build
-%{cmake} ../ \
-		-DUSE_INCLUDED_ZLIB=OFF \
-		-DUSE_INCLUDED_LIBZIP=OFF \
-		-DUSE_INCLUDED_SSL=OFF \
-		-DSTRIP_BINARIES=OFF \
-		-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}/lib3MF \
-		%{cmake_on_off tests LIB3MF_TESTS}
-	%{__make}
+cd build
+%cmake .. \
+	-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}/lib3MF \
+	-DLIB3MF_TESTS=%{__ON_OFF tests} \
+	-DSTRIP_BINARIES=OFF \
+	-DUSE_INCLUDED_LIBZIP=OFF \
+	-DUSE_INCLUDED_SSL=OFF \
+	-DUSE_INCLUDED_ZLIB=OFF
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -78,13 +101,13 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
-%attr(755,root,root) %{_libdir}/lib3mf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/lib3mf.so.2
+%{_libdir}/lib3mf.so.*.*.*
+%ghost %{_libdir}/lib3mf.so.2
 
 %files devel
 %defattr(644,root,root,755)
 %doc CONTRIBUTING.md
-%attr(755,root,root) %{_libdir}/lib3mf.so
+%{_libdir}/lib3mf.so
 %{_includedir}/lib3MF
 %{_pkgconfigdir}/lib3mf.pc
 %{_libdir}/cmake/lib3mf
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lib3mf.git/commitdiff/0b6df6e8bc2a1df496c65496c2708e82b232b95a



More information about the pld-cvs-commit mailing list