Name: domoticz Version: 2020.2 Release: 3mamba Summary: A Home Automation System that lets you monitor and configure various devices Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.domoticz.com/ Source: https://github.com/domoticz/domoticz.git/%{version}/domoticz-%{version}.tar.bz2 Source1: domoticz.service Source2: domoticz.tmpfiles Source3: domoticz.sysusers Source4: domoticz.conf License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: ldconfig BuildRequires: libcurl-devel BuildRequires: libjsoncpp-devel BuildRequires: liblua-devel BuildRequires: libminizip-devel BuildRequires: libmosquitto-devel BuildRequires: libopenssl-devel BuildRequires: libsqlite-devel BuildRequires: libusb-compat-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libminizip-devel >= 2.10.0-2mamba BuildRequires: libcereal-devel BuildRequires: cmake BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device. %debug_package %prep %setup -q sed -i "s|minizip|minizip2|" CMakeLists.txt %build %cmake -d build \ -DCMAKE_INSTALL_PREFIX=%{_datadir}/domoticz \ -DUSE_BUILTIN_SQLITE=NO \ -DUSE_BUILTIN_MQTT=NO \ -DUSE_BUILTIN_JSONCPP=NO \ -DUSE_BUILTIN_MINIZIP=NO \ -DGIT_SUBMODULE=OFF %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/domoticz.service install -D -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/domoticz.conf install -D -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/domoticz.conf install -D -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/domoticz install -d -m0755 %{buildroot}/var/lib/domoticz %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre %sysusers_create_package domoticz %{SOURCE3} %tmpfiles_create_package domoticz %{SOURCE2} : %post %systemd_post domoticz : %preun %systemd_preun domoticz : %postun %systemd_postun_with_restart domoticz : %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/domoticz %{_unitdir}/domoticz.service %{_sysusersdir}/domoticz.conf %{_tmpfilesdir}/domoticz.conf %dir %{_datadir}/domoticz %{_datadir}/domoticz/History.txt %{_datadir}/domoticz/License.txt %{_datadir}/domoticz/domoticz %{_datadir}/domoticz/server_cert.pem %{_datadir}/domoticz/updatedomo %dir %{_datadir}/domoticz/Config %{_datadir}/domoticz/Config/* %dir %{_datadir}/domoticz/dzVents %{_datadir}/domoticz/dzVents/* %{_datadir}/domoticz/dzVents/.gitignore %dir %{_datadir}/domoticz/plugins %{_datadir}/domoticz/plugins/* %dir %{_datadir}/domoticz/scripts %{_datadir}/domoticz/scripts/* %dir %{_datadir}/domoticz/www %{_datadir}/domoticz/www/* %attr(0750,domoticz,domoticz) /var/lib/domoticz %doc License.txt %changelog * Mon Oct 19 2020 Silvan Calarco 2020.2-3mamba - rebuilt by autoport with build requirements: libminizip-devel>=2.10.0-2mamba * Wed Sep 30 2020 Silvan Calarco 2020.2-2mamba - complete setup as systemd service * Tue Sep 29 2020 Silvan Calarco 2020.2-1mamba - package created using the webbuild interface