From f0528a2e442e3e4044b0d0d615cd5ebb57402968 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:14:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.6.12-1mamba;Tue Sep 29 2020] --- README.md | 5 +++ mosquitto.spec | 109 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 mosquitto.spec diff --git a/README.md b/README.md index 122a1d6..b29f2d8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # mosquitto +Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers. +The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers. +The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients. +Mosquitto is part of the Eclipse Foundation, is an iot.eclipse.org project and is sponsored by cedalo.com. + diff --git a/mosquitto.spec b/mosquitto.spec new file mode 100644 index 0000000..c8149a2 --- /dev/null +++ b/mosquitto.spec @@ -0,0 +1,109 @@ +Name: mosquitto +Version: 1.6.12 +Release: 1mamba +Summary: An open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://mosquitto.org/ +Source: https://mosquitto.org/files/source/mosquitto-%{version}.tar.gz +License: Eclipse Public License +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libopenssl-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers. +The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers. +The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients. +Mosquitto is part of the Eclipse Foundation, is an iot.eclipse.org project and is sponsored by cedalo.com. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build \ + -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/mosquitto +%config(noreplace) %{_sysconfdir}/mosquitto/mosquitto.conf +%{_sysconfdir}/mosquitto/aclfile.example +%{_sysconfdir}/mosquitto/pskfile.example +%{_sysconfdir}/mosquitto/pwfile.example +%{_bindir}/mosquitto_passwd +%{_bindir}/mosquitto_pub +%{_bindir}/mosquitto_rr +%{_bindir}/mosquitto_sub +%{_sbindir}/mosquitto +%{_mandir}/man1/mosquitto_passwd.1* +%{_mandir}/man1/mosquitto_pub.1* +%{_mandir}/man1/mosquitto_rr.1* +%{_mandir}/man1/mosquitto_sub.1* +%{_mandir}/man8/mosquitto.8* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libmosquitto.so.* +%{_libdir}/libmosquittopp.so.* +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/mosquitto.h +%{_includedir}/mosquitto_broker.h +%{_includedir}/mosquitto_plugin.h +%{_includedir}/mosquittopp.h +%{_libdir}/libmosquitto.so +%{_libdir}/libmosquittopp.so +%{_libdir}/pkgconfig/libmosquitto.pc +%{_libdir}/pkgconfig/libmosquittopp.pc +%{_mandir}/man3/libmosquitto.3.gz +%{_mandir}/man5/mosquitto.conf.5* +%{_mandir}/man7/mosquitto-tls.7* +%{_mandir}/man7/mqtt.7* +%doc ChangeLog.txt + +%changelog +* Tue Sep 29 2020 Silvan Calarco 1.6.12-1mamba +- package created using the webbuild interface