# - initscript
Summary: An Open Source MQTT v3.1 Broker
Name: mosquitto
-Version: 1.4.14
-Release: 0.1
+Version: 1.6.9
+Release: 1
License: BSD
Group: Applications
Source0: http://mosquitto.org/files/source/%{name}-%{version}.tar.gz
-# Source0-md5: 6b0966e93f118bc71ad7b61600a6c2d3
+# Source0-md5: 52f5078ec18aaf623b14dfb121fd534b
URL: http://mosquitto.org/
BuildRequires: cmake
BuildRequires: libstdc++-devel
cd build
%cmake \
-DUSE_LIBWRAP:BOOL=ON \
+ -DWITH_BUNDLED_DEPS:BOOL=ON \
..
%{__make}
cd ..
%install
+rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+:> $RPM_BUILD_ROOT/etc/mosquitto/aclfile
+:> $RPM_BUILD_ROOT/etc/mosquitto/pskfile
+:> $RPM_BUILD_ROOT/etc/mosquitto/pwfile
+
%clean
rm -rf $RPM_BUILD_ROOT
%doc LICENSE.txt CONTRIBUTING.md ChangeLog.txt readme.md examples
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/aclfile
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pskfile
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pwfile
%attr(755,root,root) %{_bindir}/mosquitto_passwd
%attr(755,root,root) %{_sbindir}/mosquitto
%{_mandir}/man1/mosquitto_passwd.1*
%files clients
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/mosquitto_pub
+%attr(755,root,root) %{_bindir}/mosquitto_rr
%attr(755,root,root) %{_bindir}/mosquitto_sub
%{_mandir}/man1/mosquitto_pub.1*
+%{_mandir}/man1/mosquitto_rr.1*
%{_mandir}/man1/mosquitto_sub.1*
%files -n libmosquitto
%defattr(644,root,root,755)
%{_mandir}/man3/libmosquitto.3*
%{_libdir}/libmosquitto.so
+%{_includedir}/mosquitto_broker.h
%{_includedir}/mosquitto.h
%{_includedir}/mosquitto_plugin.h
+%{_pkgconfigdir}/libmosquitto.pc
+%{_pkgconfigdir}/libmosquittopp.pc
%files -n libmosquittopp
%defattr(644,root,root,755)