# This specfile is licensed under: # # Copyright (C) 2022 Maxwell G # SPDX-License-Identifier: MIT # License text: https://spdx.org/licenses/MIT.html %bcond libdnf5 %[0%{?fedora} >= 38] Name: fedrq Version: 1.3.0^26.20241101.a988460 Release: 1%{?dist} Summary: A tool to query the Fedora and EPEL repositories # - code is GPL-2.0-or-later # - the data and config files in fedrq/data are UNLICENSEed # - Embeded repo defs are MIT. # - PSF-2.0 code copied from Cpython 3.11 for older Python versions License: GPL-2.0-or-later AND Unlicense AND MIT AND PSF-2.0 URL: https://fedrq.gtmx.me %global furl https://git.sr.ht/~gotmax23/fedrq Source0: fedrq-1.3.0^26.20241101.a988460.tar.gz BuildArch: noarch BuildRequires: python3-devel # Test deps BuildRequires: createrepo_c BuildRequires: distribution-gpg-keys BuildRequires: python3-argcomplete BuildRequires: python3-dnf %if %{with libdnf5} BuildRequires: python3-libdnf5 %endif # Manpage BuildRequires: scdoc Requires: (python3-dnf or python3-libdnf5) Suggests: (python3-libdnf5 if dnf5) Requires: distribution-gpg-keys Recommends: fedora-repos-rawhide Recommends: python3-argcomplete # fedrq config --dump Recommends: python3-tomli-w %description fedrq is a tool to query the Fedora and EPEL repositories. %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %py3_shebang_fix contrib/api_examples/*.py %pyproject_wheel scdoc fedrq.1 scdoc fedrq.5 register-python-argcomplete --shell bash fedrq >fedrq.bash register-python-argcomplete --shell fish fedrq >fedrq.fish %install %pyproject_install %pyproject_save_files fedrq install -Dpm 0644 fedrq.1 -t %{buildroot}%{_mandir}/man1/ install -Dpm 0644 fedrq.5 -t %{buildroot}%{_mandir}/man5/ install -Dpm 0644 fedrq.bash %{buildroot}%{bash_completions_dir}/fedrq install -Dpm 0644 fedrq.fish %{buildroot}%{fish_completions_dir}/fedrq.fish %check bash -x ./tests/test_data/build.sh # Use python3 -m to ensure the current directory is part of sys.path so the # tests can import from its own package. FEDRQ_BACKEND=dnf %{py3_test_envvars} \ %{python3} -m pytest -v -m "not no_rpm_mock" %if %{with libdnf5} # Some tests are failing only in mock and only with Python 3.12 # RuntimeError: Failed to download metadata %if v"0%{?python3_version}" >= v"3.12" %global skips %{shrink: not test_smartcache_not_used and not test_smartcache_config and not test_baseurl_repog } %endif FEDRQ_BACKEND=libdnf5 %{py3_test_envvars} \ %{python3} -m pytest -v -m "not no_rpm_mock" %{?skips:-k '%{skips}'} %endif %files -f %{pyproject_files} # Licenses are included in the wheel %license %{_licensedir}/fedrq/ %doc README.md CONTRIBUTING.md NEWS.md contrib/api_examples %{_bindir}/fedrq* %{bash_completions_dir}/fedrq %{fish_completions_dir}/fedrq.fish %{_mandir}/man1/fedrq.1* %{_mandir}/man5/fedrq.5* %changelog * Fri Nov 01 2024 Maxwell G - 1.3.0^26.20241101.a988460-1 - data: add koji{,-src} aliases to epel and epel-next releases * Fri Nov 01 2024 Maxwell G - 1.3.0^25.20241101.6764694-1 - ci: update locked dependencies * Fri Nov 01 2024 Maxwell G - 1.3.0^24.20241101.fd9264f-1 - packaging: fix pytest invocation * Thu Oct 31 2024 Maxwell G - 1.3.0^23.20241031.dcb0f86-1 - tests integration: skip network tests when running in mock * Wed Oct 30 2024 Maxwell G - 1.3.0^22.20241030.76e2a6b-1 - ci main: add python3-libdnf5 dependency * Wed Oct 30 2024 Maxwell G - 1.3.0^21.20241030.460b392-1 - doc API: add note about experimental code * Wed Oct 30 2024 Maxwell G - 1.3.0^20.20241030.b6b7c18-1 - lint doc API: use semantic line breaks * Wed Oct 30 2024 Maxwell G - 1.3.0^19.20241030.1df6911-1 - doc API: remove outdated note about beta status * Wed Oct 30 2024 Maxwell G - 1.3.0^18.20241030.2a223fc-1 - experimental: add warning about stability to exp. code * Wed Oct 30 2024 Maxwell G - 1.3.0^17.20241030.fcf5b2b-1 - data: clean up CentOS Stream release configs * Wed Oct 30 2024 Michel Lind - 1.3.0^16.20241030.f3fdb0e-1 - data: adjust releases.toml for new EPEL 10+ branching model * Sun Sep 22 2024 Maxwell G - 1.3.0^15.20240922.a2dc598-1 - backends: add experimental support for comps * Sun Sep 22 2024 Maxwell G - 1.3.0^14.20240922.e095cab-1 - lint: add initial basedpyright config * Sat Sep 21 2024 Maxwell G - 1.3.0^13.20240921.cabc49b-1 - ci: include tags in Github mirror * Fri Sep 20 2024 Maxwell G - 1.3.0^12.20240920.4490d3c-1 - ci: update locked dependencies * Fri Sep 20 2024 Maxwell G - 1.3.0^11.20240920.0170758-1 - nox: add mkdocs to default sessions * Fri Sep 20 2024 Maxwell G - 1.3.0^10.20240920.b87dd70-1 - RQConfig: add get_dnf_rq and get_libdnf5_rq methods * Fri Sep 20 2024 Maxwell G - 1.3.0^9.20240920.96dadb4-1 - nox testa: don't run coverage * Fri Sep 20 2024 Maxwell G - 1.3.0^8.20240920.1d17685-1 - nox: add missing editable=True * Fri Sep 20 2024 Maxwell G - 1.3.0^7.20240920.6777199-1 - fixup! dev: add Github mirror for discoverability * Fri Sep 20 2024 Maxwell G - 1.3.0^6.20240920.dd6bcd8-1 - dev: add Github mirror for discoverability * Thu Sep 12 2024 Maxwell G - 1.3.0^5.20240912.10a5dac-1 - base: add RepoqueryAlias for typing RepoqueryBase objects * Sat Sep 07 2024 Maxwell G - 1.3.0^4.20240907.5088c18-1 - config get_rq: ensure backend_mod and backend properties are synced * Wed Sep 04 2024 Maxwell G - 1.3.0^3.20240904.27d718a-1 - ci: update locked dependencies * Wed Aug 28 2024 Maxwell G - 1.3.0^2.20240828.d7be60e-1 - doc API: clarify docstring references * Tue Aug 27 2024 Maxwell G - 1.3.0^1.20240827.599daff-1 - Post release version bump * Tue Aug 27 2024 Maxwell G - 1.3.0-1 - Release 1.3.0. * Sat Aug 03 2024 Maxwell G - 1.2.0-1 - Release 1.2.0. * Wed May 01 2024 Maxwell G - 1.1.0-1 - Release 1.1.0. * Mon Apr 01 2024 Maxwell G - 1.0.0-1 - Release 1.0.0. * Tue Feb 13 2024 Maxwell G - 0.15.0-1 - Release 0.15.0. * Wed Feb 07 2024 Maxwell G - 0.14.0-1 - Release 0.14.0. * Mon Dec 18 2023 Maxwell G - 0.13.0-1 - Release 0.13.0. * Mon Sep 11 2023 Maxwell G - 0.12.0-1 - Release 0.12.0. * Thu Aug 31 2023 Maxwell G - 0.11.0-1 - Release 0.11.0. * Wed Jul 12 2023 Maxwell G - 0.10.0-1 - Release 0.10.0. * Thu Jun 29 2023 Maxwell G - 0.9.0-1 - Release 0.9.0. * Wed Jun 21 2023 Maxwell G - 0.8.0-1 - Release 0.8.0. * Wed May 31 2023 Maxwell G - 0.7.1-1 - Release 0.7.1. * Tue May 30 2023 Maxwell G - 0.7.0-1 - Release 0.7.0. * Sat Apr 08 2023 Maxwell G - 0.6.0-1 - Release 0.6.0 * Sat Mar 18 2023 Maxwell G - 0.5.0-1 - Release 0.5.0 * Tue Mar 14 2023 Maxwell G - 0.4.1-1 - Release 0.4.1 * Tue Feb 21 2023 Maxwell G - 0.4.0-1 - Release 0.4.0 * Mon Feb 13 2023 Maxwell G - 0.3.0-1 - Release 0.3.0 * Sat Jan 14 2023 Maxwell G - 0.2.0-1 - Release 0.2.0 * Tue Jan 03 2023 Maxwell G 0.1.0-1 - Release 0.1.0 * Tue Dec 20 2022 Maxwell G 0.0.2-1 - Release 0.0.2 * Tue Dec 20 2022 Maxwell G 0.0.1-1 - Release 0.0.1