Commit 70ae0015 authored by Ivan Mazhukin's avatar Ivan Mazhukin

1.0.2-alt1

- new version (1.0.2) - add creds sample
parent 7007d814
tar: @name@ tar: @name@
copy: creds.env.sample
\ No newline at end of file
Name: co2-mt8057s Name: co2-mt8057s
Version: 1.0.1 Version: 1.0.2
Release: alt1 Release: alt1
Summary: Script for measuring temperature and carbon dioxide with the Dajet KIT MT8057S detector Summary: Script for measuring temperature and carbon dioxide with the Dajet KIT MT8057S detector
...@@ -8,16 +8,18 @@ Url: https://gitlab.eterfund.ru/Gendalf4ever/co2/tree/co2-101 ...@@ -8,16 +8,18 @@ Url: https://gitlab.eterfund.ru/Gendalf4ever/co2/tree/co2-101
License: GPL-3.0-only License: GPL-3.0-only
Group: Development/Python3 Group: Development/Python3
%filter_from_requires /python3(influxConnection)/d
BuildArch: noarch BuildArch: noarch
# Source-url: https://gitlab.eterfund.ru/Gendalf4ever/co2/-/archive/co2-101/co2-co2-101.tar # Source-url: https://gitlab.eterfund.ru/Gendalf4ever/co2/-/archive/co2-101/co2-co2-101.tar
Source: %name-%version.tar Source: %name-%version.tar
Source1: creds.env.sample
BuildRequires(pre): rpm-build-python3 BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools) BuildRequires: python3(setuptools)
AutoProv: no
%description %description
The script is designed to interact with the systemd system (co2data.service file) The script is designed to interact with the systemd system (co2data.service file)
The script collects data and writes it to the co2data.log file once every certain time. The script collects data and writes it to the co2data.log file once every certain time.
...@@ -29,16 +31,23 @@ The script collects data and writes it to the co2data.log file once every certai ...@@ -29,16 +31,23 @@ The script collects data and writes it to the co2data.log file once every certai
%install %install
install -Dm755 co2.py %buildroot%python3_sitelibdir/co2/co2.py install -Dm755 co2.py %buildroot%python3_sitelibdir/co2/co2.py
install -Dm644 influxConnection.py %buildroot%python3_sitelibdir/co2/influxConnection.py install -Dm644 influxConnection.py %buildroot%python3_sitelibdir/co2/influxConnection.py
install -Dm644 %SOURCE1 %buildroot%_sysconfdir/%name/creds.env.sample
install -Dm644 services/co2.service %buildroot%_unitdir/co2.service install -Dm644 services/co2.service %buildroot%_unitdir/co2.service
install -Dm644 services/co2.timer %buildroot%_unitdir/co2.timer install -Dm644 services/co2.timer %buildroot%_unitdir/co2.timer
%files %files
%python3_sitelibdir/co2/co2.py %python3_sitelibdir/co2/co2.py
%python3_sitelibdir/co2/influxConnection.py %python3_sitelibdir/co2/influxConnection.py
%_sysconfdir/%name/creds.env.sample
%_unitdir/co2.service %_unitdir/co2.service
%_unitdir/co2.timer %_unitdir/co2.timer
%python3_sitelibdir/co2/__pycache__/*.pyc
%changelog %changelog
* Tue Sep 10 2024 Ivan Mazhukin <vanomj@altlinux.org> 1.0.1-alt1 * Tue Dec 16 2025 Ivan Mazhukin <vanomj@altlinux.org> 1.0.2-alt1
- Init build - new version (1.0.2)
- add creds sample
* Tue Dec 16 2025 Ivan Mazhukin <vanomj@altlinux.org> 1.0.1-alt1
- Initial build for ALT Sisyphus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment