%global desc %{expand: RPMeta is a command-line tool designed to predict RPM build durations and manage related data. It provides a set of commands for training a predictive model, making predictions, fetching data, and serving a REST API endpoint. } Name: rpmeta Version: 0.1 Release: 1.20250212005512486326.main%{?dist} Summary: Estimate duration of RPM package build License: GPL-3.0-or-later URL: https://github.com/fedora-copr/%{name} Source0: rpmeta-0.1.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-rpm-macros Requires: python3-click Requires: python3-joblib Requires: python3-pandas # TODO: separate into subpackages for server, trainer and fetcher? # trainer Recommends: python3-fedora-distro-aliases Recommends: python3-koji Recommends: python3-scikit-learn # copr fetcher Recommends: python3-tqdm # xgboost not in fedora :/ # server Recommends: python3-starlette Recommends: python3-uvicorn %description %{desc} %prep %autosetup -n rpmeta-0.1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{name} %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/%{name} %changelog %autochangelog