# Testing dependencies: deepdiff, flexmock are missing on EPEL 9. Cannot use testing environment %if 0%{?el9} %bcond_with tests %else %bcond_without tests %endif Name: packit Version: 0.75.0 Release: 1.20230512194957650446.pr12%{?dist} Summary: A tool for integrating upstream projects with Fedora operating system License: MIT URL: https://github.com/packit/packit Source0: packit-0.75.0.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(click-man) Requires: python3-packit = %{version}-%{release} %description This project provides tooling and automation to integrate upstream open source projects into Fedora operating system. %package -n python3-packit Summary: %{summary} # new-sources Requires: fedpkg Requires: git # kinit Requires: krb5-workstation # rpmbuild Requires: rpm-build # bumpspec Requires: rpmdevtools # Copying files between repositories Requires: rsync %description -n python3-packit Python library for Packit, check out packit package for the executable. %prep %autosetup -n packitos-0.75.0 %generate_buildrequires # The -w flag is required for EPEL 9's older hatchling %pyproject_buildrequires %{?with_tests:-x testing} %{?el9:-w} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files packit PYTHONPATH="%{buildroot}%{python3_sitelib}" click-man packit --target %{buildroot}%{_mandir}/man1 install -d -m 755 %{buildroot}%{bash_completions_dir} cp files/bash-completion/packit %{buildroot}%{bash_completions_dir}/packit %files %license LICENSE %{_bindir}/packit %{_mandir}/man1/packit*.1* %{bash_completions_dir}/packit %files -n python3-packit -f %{pyproject_files} # Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case %if 0%{?el9} %license LICENSE %endif %doc README.md %changelog * Fri May 12 2023 Packit - 0.75.0-1.20230512194957650446.pr12 - Development snapshot (fe9da95d) * Fri Apr 28 2023 Packit Team - 0.75.0-1 - New upstream release 0.75.0