## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: mass-prebuild Version: 1.7.0 Release: %autorelease Summary: A set of tools to massively pre-build reverse dependencies for an RPM package License: GPL-2.0-or-later URL: https://gitlab.com/fedora/packager-tools/mass-prebuild Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-dnf BuildRequires: rubygem(asciidoctor) BuildRequires: make BuildRequires: mock Requires: copr-cli Requires: (python3-libdnf or python3-libdnf5) Requires: fedpkg Requires: mock Provides: mpb = %{version}-%{release} Provides: mpb-whatrequires = %{version}-%{release} Provides: mpb-failedconf = %{version}-%{release} Provides: mpb-copr-edit = %{version}-%{release} Provides: mpb-report = %{version}-%{release} %description The mass pre-builder tool is a set of helper tools that for the user to build a package using COPR, calculate a list of reverse dependencies for this package, build these reverse dependencies against the new version of the main package and give a report on failures to be manually assessed. %prep %autosetup -p1 -n %{name}-v%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel mkdir -p bash_completion.d echo "$(register-python-argcomplete mpb)" > bash_completion.d/mpb.bash echo "$(register-python-argcomplete mpb-copr-edit)" > bash_completion.d/mpb-copr-edit.bash echo "$(register-python-argcomplete mpb-failedconf)" > bash_completion.d/mpb-failedconf.bash echo "$(register-python-argcomplete mpb-report)" > bash_completion.d/mpb-report.bash echo "$(register-python-argcomplete mpb-whatrequires)" > bash_completion.d/mpb-whatrequires.bash pushd man %make_build popd %install %pyproject_install install -d %{buildroot}%{bash_completions_dir} install -pm0644 bash_completion.d/* %{buildroot}%{bash_completions_dir} mkdir -p %{buildroot}%{_sysconfdir}/mpb cp -r examples/*.conf.d %{buildroot}%{_sysconfdir}/mpb mkdir -p %{buildroot}%{_mandir}/man1 cp -r man/*.1 %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man5 cp -r man/*.5 %{buildroot}%{_mandir}/man5 mkdir -p %{buildroot}%{_mandir}/man7 cp -r man/*.7 %{buildroot}%{_mandir}/man7 %pyproject_save_files -l mass_prebuild %check # MPB is a tool using DNF/Koji/Copr-cli: # There is no meaningful test that could be executed without internet access. %{py3_test_envvars} mpb --version %{py3_test_envvars} mpb-whatrequires --version %{py3_test_envvars} mpb-failedconf --version %{py3_test_envvars} mpb-copr-edit --version %{py3_test_envvars} mpb-report --version %files -f %{pyproject_files} %dir %{_sysconfdir}/mpb %dir %{_sysconfdir}/mpb/*.conf.d %config(noreplace) %{_sysconfdir}/mpb/*.conf.d/* %{bash_completions_dir}/mpb* %doc README.md examples %{_mandir}/man1/mpb*.1* %{_mandir}/man5/mpb*.5* %{_mandir}/man7/mass-prebuild.7* %{_bindir}/mpb %{_bindir}/mpb-whatrequires %{_bindir}/mpb-failedconf %{_bindir}/mpb-copr-edit %{_bindir}/mpb-report %changelog ## START: Generated by rpmautospec * Tue Oct 28 2025 Frédéric Bérat - 1.7.0-1 - Update to version 1.7.0 * Wed Sep 24 2025 Frédéric Bérat - 1.6.1-3 - Declare subdirectory as %%dir in %%files * Mon Sep 22 2025 Frédéric Bérat - 1.6.1-2 - Refine spec file configuration and dependencies - Remove python3-pip from BuildRequires - Use %%make_build macro in %%build section - Mark conf.d directory as noreplace config * Fri Sep 12 2025 Frédéric Bérat - 1.6.1-1 - Update to version 1.6.1 - Import new upstream tarball - Switched to autorelease and autochangelog - Remove obsolete patches - Drop several build and runtime dependencies - Refine summary description - Clean up build definitions and file manifest * Tue Aug 05 2025 Frédéric Bérat - 1.6.0-3 - Automatically generate BuildRequires * Mon Aug 04 2025 Frédéric Bérat - 1.6.0-2 - Update GPLv2 Licence text to its latest version - Migrate to pyproject-rpm-macros * Fri Feb 07 2025 Frédéric Bérat - 1.6.0-1 - New upstream release * Mon Dec 02 2024 Frédéric Bérat - 1.5.0-4 - Fix patch list - Decrease log level for some copr failures * Fri Nov 29 2024 Frédéric Bérat - 1.5.0-3 - Fix `--rebuild` command behavior * Fri Oct 11 2024 Frédéric Bérat - 1.5.0-2 - Fix Changelog - Fix errors in documentation - Fix copr failure when using gssapi, and improve logging - Fix c8s/c9s support and improve testing * Wed Aug 07 2024 Frédéric Bérat - 1.5.0-1 - New upstream release * Mon Jun 10 2024 Frédéric Bérat - 1.4.0-3 - Fix centos-stream patch to support all arches. - Fix CI for mock builds. * Fri Jun 07 2024 Frédéric Bérat - 1.4.0-2 - Update centos-stream configuration file. * Mon Apr 29 2024 Frédéric Bérat - 1.4.0-1 - New upstream release * Fri Dec 15 2023 Frédéric Bérat - 1.3.1-2 - Rebase setuptools patch * Fri Dec 15 2023 Frederic Berat - 1.3.1-1 - New upstream release * Tue Dec 12 2023 Frederic Berat - 1.3.0-1 - New upstream release * Thu Sep 28 2023 Frederic Berat - 1.2.0-1 - New upstream release - Migrate to SPDX licenses * Mon Aug 28 2023 Frederic Berat - 1.1.0-2 - Require either DNF or DNF5 * Mon Jul 24 2023 Frederic Berat - 1.1.0-1 - New upstream release * Tue Apr 04 2023 Frederic Berat - 1.0.0-5 - Fix EPEL8 support * Tue Apr 04 2023 Frederic Berat - 1.0.0-4 - Fix: wake-up checker worker when there is no build to watch * Wed Mar 29 2023 Frederic Berat - 1.0.0-3 - Fix support for checker specific options * Mon Mar 06 2023 Frederic Berat - 1.0.0-2 - Source full path is wrongly stored in source type field (#76) * Fri Mar 03 2023 Frederic Berat - 1.0.0-1 - New upstream release - Adding new mpb-report tool - Add man-pages - Add command completion * Fri Feb 10 2023 Frederic Berat - 0.6.0-2 - Don't use python3.6 incompatible constructs * Fri Feb 10 2023 Frederic Berat - 0.6.0-1 - New upstream release * Thu Nov 17 2022 Frederic Berat - 0.5.0-2 - Fix: Checker build never got started * Thu Nov 10 2022 Frederic Berat - 0.5.0-1 - New upstream release * Tue Nov 08 2022 Frederic Berat - 0.4.0-3 - Fix: Get build by build ID first - Reset false positive unconfirmed failure due to previous bug * Thu Nov 03 2022 Frederic Berat - 0.4.0-2 - Fix infinite loop. * Thu Oct 27 2022 Frederic Berat - 0.4.0-1 - New upstream release * Thu Oct 13 2022 Frederic Berat - 0.3.0-1 - New upstream release * Fri Sep 30 2022 Frederic Berat - 0.2.0-2 - Hotfix for c9s koji address * Mon Sep 05 2022 Frederic Berat - 0.2.0-1 - New upstream release * Tue Aug 23 2022 Frederic Berat - 0.1.1-2 - Add new koji requirement * Tue Aug 23 2022 Frederic Berat - 0.1.1-1 - New upstream release 0.1.1 * Tue Aug 09 2022 Frederic Berat - 0.1.0~alpha1-5 - Fix packaging review * Mon Aug 01 2022 Frederic Berat - 0.1.0~alpha1-4 - Adding support for EPEL8 * Mon Aug 01 2022 Frederic Berat - 0.1.0~alpha1-3 - rebuilt * Mon Jul 04 2022 Frederic Berat - 0.1.0~alpha1-2 - Adding "mpb-whatrequires" tool in the package ## END: Generated by rpmautospec