%global debug_package %{nil} %global githash 593e9cc48c2b475dacbc3dbdebe2f5136bef8efa Name: changedetection.io Version: 0.60.7 Release: 7%{?dist} Summary: changedetection License: Apache-2.0 URL: https://github.com/dgtlmoon/%{name} Source0: %{url}/archive/%{githash}.tar.gz Source1: %{name}-packages.tar.gz Source2: cdio.service Patch1: cdio-multixpathmatch.patch Patch2: cdio-fixbrokenhtml.patch BuildRequires: python3 >= 3.8 python3-devel python3-wheel python3-hatchling python3-poetry-core BuildRequires: python3-cryptography python3-flask python3-psutil python3-gunicorn python3-flask python3-selenium python3-babel Requires: python3-cryptography python3-flask python3-psutil python3-gunicorn python3-flask python3-selenium python3-gunicorn BuildRequires: python3-babel python3-flask python3-jinja2 python3-pytz python3-werkzeug python3-six python3-itsdangerous python3-blinker python3-click python3-requests python3-attrs python3-charset-normalizer python3-idna python3-urllib3 python3-wsproto python3-h11 python3-apprise python3-linkify-it-py python3-dateutil python3-requests python3-requests-oauthlib python3-click python3-markdown python3-certifi python3-uc-micro-py python3-appdirs python3-importlib-metadata python3-tqdm python3-urllib3 python3-zipp python3-typing-extensions python3-six python3-charset-normalizer python3-idna python3-oauthlib python3-aiohappyeyeballs python3-pytest python3-flask python3-werkzeug python3-hatchling python3-jinja2 python3-tomlkit python3-packaging python3-pathspec python3-pluggy python3-trove-classifiers python3-iniconfig python3-blinker python3-click python3-itsdangerous python3-lxml python3-numpy python3-loguru python3-pydantic python3-chardet python3-brotli python3-soupsieve python3-beautifulsoup4 Requires: python3-babel python3-flask python3-jinja2 python3-pytz python3-werkzeug python3-six python3-itsdangerous python3-blinker python3-click python3-requests python3-attrs python3-charset-normalizer python3-idna python3-urllib3 python3-wsproto python3-h11 python3-apprise python3-linkify-it-py python3-dateutil python3-requests python3-requests-oauthlib python3-click python3-markdown python3-certifi python3-uc-micro-py python3-appdirs python3-importlib-metadata python3-tqdm python3-urllib3 python3-zipp python3-typing-extensions python3-six python3-charset-normalizer python3-idna python3-oauthlib python3-aiohappyeyeballs python3-pytest python3-flask python3-werkzeug python3-hatchling python3-jinja2 python3-tomlkit python3-packaging python3-pathspec python3-pluggy python3-trove-classifiers python3-iniconfig python3-blinker python3-click python3-itsdangerous python3-lxml python3-numpy python3-loguru python3-pydantic python3-chardet python3-brotli python3-soupsieve python3-beautifulsoup4 BuildRequires: systemd-rpm-macros Requires(pre): shadow-utils AutoReqProv: no %{?systemd_requires} %description cdio %prep %autosetup -n %{name}-%{githash} -p1 tar -zxf %{SOURCE1} -C %{_builddir}/%{name}-%{githash} %build %install %{__mkdir_p} %{buildroot}/opt/%{name} %{__mkdir_p} %{buildroot}/etc/%{name} %{__mkdir_p} %{buildroot}/var/lib/%{name} cp -r %{_builddir}/%{name}-%{githash}/* %{buildroot}/opt/%{name}/ python3 -m venv --system-site-packages %{buildroot}/opt/%{name}/venv source %{buildroot}/opt/%{name}/venv/bin/activate pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir setuptools==78.1.1 pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir flit_core pip install --no-cache-dir --no-build-isolation --no-index --use-deprecated=legacy-resolver --find-links=%{_builddir}/%{name}-%{githash}/packages_dir pytest-flask pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir flask-babel flask-login timeago flask_cors flask_restful flask_wtf diff_match_patch panzi-json-logic flask_paginate bidict flask_socketio validators inscriptis price-parser puremagic tzdata pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir feedgen jsonpath-ng linkify-it-py elementpath pyppeteer-ng pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir lxml uv-dynamic-versioning aiohappyeyeballs pip install --no-cache-dir --no-build-isolation --no-index --find-links=%{_builddir}/%{name}-%{githash}/packages_dir rank-bm25 pyppeteerstealth pip uninstall -y setuptools flit-core deactivate rm -fr %{buildroot}/opt/%{name}/packages_dir for f in ../pyvenv.cfg activate activate.csh activate.fish pip pip3 pip3.12 puremagic inscript inscriptis-api jsonpath_ng dunamai uv-dynamic-versioning pyppeteer-install; do sed -i "s|%{buildroot}||g" %{buildroot}/opt/%{name}/venv/bin/$f; done rm -f %{buildroot}/opt/%{name}/{Dockerfile,requirements*.txt,docker-*,runtime.txt,babel.cfg,*.md,*.in,docs/.gitignore} install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/cdio.service %pre getent group cdio >/dev/null || groupadd -r cdio getent passwd cdio >/dev/null || useradd -r -g cdio -d /etc/%{name} -s /sbin/nologin -c "cdio" cdio exit 0 %post %systemd_post cdio.service %preun %systemd_preun cdio.service %postun %systemd_postun_with_restart cdio.service %files %defattr(-,root,root,-) /opt/%{name} %dir %attr(0750, root, cdio) /etc/%{name} %dir %attr(0700, cdio, cdio) /var/lib/%{name} %{_unitdir}/cdio.service %changelog * Fri Oct 2 2026 Release 7 - Initial package release