mosquitto/mosquitto.spec

149 lines
5.1 KiB
RPMSpec

Name: mosquitto
Version: 2.0.16
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 <silvan.calarco@mambasoft.it>
URL: https://mosquitto.org/
Source: https://mosquitto.org/files/source/mosquitto-%{version}.tar.gz
License: Eclipse Public License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libopenssl-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%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}
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_ctrl.1*
%{_mandir}/man1/mosquitto_ctrl_dynsec.1*
%{_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}/mqtt_protocol.h
%{_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*
%{_mandir}/man5/mosquitto.conf.5*
%{_mandir}/man7/mosquitto-tls.7*
%{_mandir}/man7/mqtt.7*
%doc ChangeLog.txt
%changelog
* Thu Aug 17 2023 Automatic Build System <autodist@mambasoft.it> 2.0.16-1mamba
- automatic version update by autodist
* Sat Aug 20 2022 Automatic Build System <autodist@mambasoft.it> 2.0.15-1mamba
- automatic version update by autodist
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 2.0.14-1mamba
- automatic version update by autodist
* Mon Nov 01 2021 Automatic Build System <autodist@mambasoft.it> 2.0.13-1mamba
- automatic version update by autodist
* Wed Sep 01 2021 Automatic Build System <autodist@mambasoft.it> 2.0.12-1mamba
- automatic version update by autodist
* Thu Jun 10 2021 Automatic Build System <autodist@mambasoft.it> 2.0.11-1mamba
- automatic version update by autodist
* Sun Apr 04 2021 Automatic Build System <autodist@mambasoft.it> 2.0.10-1mamba
- automatic version update by autodist
* Fri Mar 12 2021 Automatic Build System <autodist@mambasoft.it> 2.0.9-1mamba
- automatic version update by autodist
* Fri Feb 26 2021 Automatic Build System <autodist@mambasoft.it> 2.0.8-1mamba
- automatic version update by autodist
* Sat Feb 13 2021 Automatic Build System <autodist@mambasoft.it> 2.0.7-1mamba
- automatic version update by autodist
* Tue Feb 02 2021 Automatic Build System <autodist@mambasoft.it> 2.0.6-1mamba
- automatic version update by autodist
* Tue Jan 26 2021 Automatic Build System <autodist@mambasoft.it> 2.0.5-1mamba
- automatic version update by autodist
* Thu Jan 14 2021 Automatic Build System <autodist@mambasoft.it> 2.0.4-1mamba
- automatic version update by autodist
* Tue Sep 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.12-1mamba
- package created using the webbuild interface