Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37372496
en ru br
Репозитории ALT

Группа :: Система/Серверы
Пакет: hass

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: hass
Version: 2023.9.2
Release: alt2

Summary: Home automation platform
License: APL
Group: System/Servers
Url: https://www.home-assistant.io/

Source0: %name-%version-%release.tar
Source1: pyproject_deps.json

BuildArch: noarch
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
BuildRequires: python3(atomicwrites)
BuildRequires: python3(awesomeversion)
BuildRequires: python3(black)
BuildRequires: python3(ciso8601)
BuildRequires: python3(dateutil)
BuildRequires: python3(ifaddr)
BuildRequires: python3(jinja2)
BuildRequires: python3(jwt)
BuildRequires: python3(lru)
BuildRequires: python3(numpy)
BuildRequires: python3(orjson)
BuildRequires: python3(slugify)
BuildRequires: python3(tqdm)
BuildRequires: python3(typing_extensions)
BuildRequires: python3(ulid_transform)
BuildRequires: python3(voluptuous)
BuildRequires: python3(voluptuous_serialize)
BuildRequires: python3(yaml)

%package core
Summary: Home automation platform
Group: System/Servers
Requires: python3-module-aiohttp >= 3.8.1
Requires: python3-module-astral >= 2.2
Requires: python3-module-httpcore >= 0.14.5
Requires: python3-module-pip >= 21.0
Requires: python3-module-async-timeout >= 4.0.2
Requires: python3-module-text-unidecode >= 1.3
Requires: python3-module-voluptuous >= 0.13.1
Requires: python3-module-websocket-client >= 0.56.0
Requires: python3-module-yaml >= 6.0
Requires: python3-module-hass-frontend >= 20230503.3

%package -n python3-module-hass
Summary: Home automation platform
Group: System/Servers
AutoReq: no

%define desc Home Assistant is a home automation platform running on Python 3.\
It is able to track and control all devices at home and offer a platform \
for automating control.

%description
%desc

%description core
%desc
This package contains core modules only.

%description -n python3-module-hass
%desc
This package contains most of Home Assistant modules.

%prep
%setup
> .coveragerc
find homeassistant/components -type f -name manifest.json |\
fgrep -vf precious |sed -r 's,[^/]+$,,' |xargs rm -rv
python3 -m script.hassfest
tar x --wildcards --strip-components=1 --file %SOURCE0 '*/homeassistant/components'
python3 -m script.translations develop --all

%build
%pyproject_deps_resync_build
%pyproject_build

%install
%pyproject_install
install -pm0644 -D hass.service %buildroot%_unitdir/hass.service
install -pm0644 -D hass.sysconfig %buildroot%_sysconfdir/sysconfig/hass
mkdir -p %buildroot%_localstatedir/hass

find %buildroot%python3_sitelibdir/homeassistant/components -type f -name manifest.json |\
fgrep -vf precious |sed -re 's,^%buildroot(/.+)/manifest.json,%exclude \1,' > core.files
sed -re 's,%exclude ,,' < core.files > rest.files

%pre core
%_sbindir/groupadd -r -f _hass &> /dev/null
%_sbindir/useradd -r -g _hass -d %_localstatedir/hass -s /dev/null \
-c 'Home Assistant' -n _hass &> /dev/null ||:

%set_python3_req_method strict
%add_python3_req_skip av
%add_python3_req_skip custom_components
%add_python3_req_skip deque

%files core -f core.files
%_sysconfdir/sysconfig/hass
%_unitdir/hass.service
%_bindir/hass

%python3_sitelibdir/homeassistant
%python3_sitelibdir/homeassistant-%version.dist-info

%dir %attr(0770,root,_hass) %_localstatedir/hass

%files -n python3-module-hass -f rest.files

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin