[packages/paho-mqtt] - updated to 1.3.14

qboosh qboosh at pld-linux.org
Thu Feb 27 21:14:45 CET 2025


commit 052600306d7be9357fbd55fa2024ef423080a85f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 27 21:06:53 2025 +0100

    - updated to 1.3.14

 paho-mqtt.spec | 55 +++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 39 insertions(+), 16 deletions(-)
---
diff --git a/paho-mqtt.spec b/paho-mqtt.spec
index f3d5e7c..9e2f471 100644
--- a/paho-mqtt.spec
+++ b/paho-mqtt.spec
@@ -1,23 +1,26 @@
 #
 # Conditional build:
-%bcond_with	doc		# documentation
+%bcond_without	apidocs		# API documentation
 
 Summary:	Eclipse Paho MQTT C client libraries
 Summary(pl.UTF-8):	Biblioteki klienckie C Eclipse Paho MQTT
 Name:		paho-mqtt
-Version:	1.3.11
+Version:	1.3.14
 Release:	1
 License:	EPL v2.0, EDL v1.0
 Group:		Libraries
 #Source0Download: https://github.com/eclipse-paho/paho.mqtt.c/releases
 Source0:	https://github.com/eclipse/paho.mqtt.c/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	ce269af51541148c6e6a50f2763757e4
+# Source0-md5:	0289af6d1927e148dc7fc1b2b8f26e29
 URL:		https://eclipse.dev/paho/
-BuildRequires:	cmake >= 3.0
-%if %{with doc}
+BuildRequires:	cmake >= 3.5
+%if %{with apidocs}
 BuildRequires:	doxygen
 %endif
 BuildRequires:	openssl-devel
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,6 +39,7 @@ Summary:	Header files for Eclipse Paho MQTT C client libraries
 Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek klienckich C Eclipse Paho MQTT
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	openssl-devel
 
 %description devel
 Header files for Eclipse Paho MQTT C client library.
@@ -43,21 +47,24 @@ Header files for Eclipse Paho MQTT C client library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki Eclipse Paho MQTT C client.
 
-%package static
-Summary:	Static Eclipse Paho MQTT C client libraries
-Summary(pl.UTF-8):	Statyczne biblioteki klienckie C Eclipse Paho MQTT
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
+%package apidocs
+Summary:	API documentation for Eclipse Paho MQTT C client libraries
+Summary(pl.UTF-8):	Dokumentacja API bibliotek klienckich C Eclipse Paho MQTT
+Group:		Documentation
+BuildArch:	noarch
 
-%description static
-Static Eclipse Paho MQTT C client libraries.
+%description apidocs
+API documentation for Eclipse Paho MQTT C client libraries.
 
-%description static -l pl.UTF-8
-Statyczne biblioteki klienckie C Eclipse Paho MQTT.
+%description apidocs -l pl.UTF-8
+Dokumentacja API bibliotek klienckich C Eclipse Paho MQTT.
 
 %prep
 %setup -q -n paho.mqtt.c-%{version}
 
+# some names are too common, package just HTML
+%{__sed} -i -e '/^GENERATE_MAN/ s/YES/NO/' doc/DoxyfileV3{Async,Client}API.in
+
 %build
 install -d build
 cd build
@@ -65,7 +72,7 @@ cd build
 	-DPAHO_BUILD_SHARED=TRUE \
 	-DPAHO_HIGH_PERFORMANCE=TRUE \
 	-DPAHO_WITH_SSL=TRUE \
-	%{?with_doc:-DPAHO_BUILD_DOCUMENTATION=TRUE}
+	%{?with_apidocs:-DPAHO_BUILD_DOCUMENTATION=TRUE}
 
 %{__make}
 
@@ -75,6 +82,15 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/{edl-v10,epl-v20,*.md,*.html}
+%if %{with apidocs}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/MQTT*
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -83,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md CONTRIBUTING.md about.html notice.html
+%doc LICENSE NOTICE README.md SECURITY.md about.html notice.html edl-v10 epl-v20
 %attr(755,root,root) %{_libdir}/libpaho-mqtt3c.so.*.*.*
 %ghost %{_libdir}/libpaho-mqtt3c.so.1
 %attr(755,root,root) %{_libdir}/libpaho-mqtt3cs.so.*.*.*
@@ -102,3 +118,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libpaho-mqtt3cs.so
 %{_includedir}/MQTT*.h
 %{_libdir}/cmake/eclipse-paho-mqtt-c
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc build/doc/doc/MQTT*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/paho-mqtt.git/commitdiff/052600306d7be9357fbd55fa2024ef423080a85f



More information about the pld-cvs-commit mailing list