149 lines
4.6 KiB
RPMSpec
149 lines
4.6 KiB
RPMSpec
Name: domoticz
|
|
Version: 2024.4
|
|
Release: 1mamba
|
|
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 <silvan.calarco@mambasoft.it>
|
|
URL: https://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: libcurl-devel
|
|
BuildRequires: libjsoncpp-devel
|
|
BuildRequires: libminizip2-devel
|
|
BuildRequires: libmosquitto-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libsqlite-devel
|
|
BuildRequires: libusb-compat-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libjsoncpp-devel >= 1.9.5
|
|
BuildRequires: libfmt-devel >= 8.0.1
|
|
BuildRequires: libminizip-devel >= 2.10.0-2mamba
|
|
BuildRequires: libcereal-devel
|
|
BuildRequires: cmake
|
|
|
|
%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 \
|
|
-DUSE_BUILTIN_LIBFMT=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
|
|
* Fri Feb 02 2024 Automatic Build System <autodist@openmamba.org> 2024.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 04 2024 Automatic Build System <autodist@mambasoft.it> 2024.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Aug 20 2023 Automatic Build System <autodist@mambasoft.it> 2023.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Feb 15 2023 Automatic Build System <autodist@mambasoft.it> 2023.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 10 2022 Automatic Build System <autodist@mambasoft.it> 2022.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Feb 07 2022 Automatic Build System <autodist@mambasoft.it> 2022.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Dec 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2021.1-4mamba
|
|
- rebuilt with libjsoncpp 1.9.5
|
|
|
|
* Mon Oct 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2021.1-3mamba
|
|
- rebuilt with libfmt 8.0.1
|
|
|
|
* Sun Oct 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2021.1-2mamba
|
|
- rebuilt with libfmt 8.0.1
|
|
|
|
* Sun May 02 2021 Automatic Build System <autodist@mambasoft.it> 2021.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Oct 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.2-3mamba
|
|
- rebuilt by autoport with build requirements: libminizip-devel>=2.10.0-2mamba
|
|
|
|
* Wed Sep 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.2-2mamba
|
|
- complete setup as systemd service
|
|
|
|
* Tue Sep 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.2-1mamba
|
|
- package created using the webbuild interface
|