%global commit 2aff449418e04b16c456aa67fbf60799f85ed189 %global date 20220419 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: rpmdistro-repoquery Version: 0^%{date}git%{shortcommit} Release: 1%{?dist} Summary: Tool to easily do repository queries for different distributions using DNF License: MIT URL: https://pagure.io/%{name} Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildArch: noarch Requires: distribution-gpg-keys Requires: dnf %description This tool utilizes DNF to let you query across several RPM-based Linux distributions. Currently, the tool supports the following distributions: * Fedora * Mageia * openSUSE Leap * openSUSE Tumbleweed * CentOS (with EPEL) * CentOS Stream (with EPEL) * Red Hat Enterprise Linux Universal Base Image (RHEL UBI) * SUSE Linux Enterprise Base Container Image (SLE BCI) %prep %autosetup -p1 -n %{name}-%{shortcommit} %build %install mkdir -p %{buildroot}%{_bindir} install -p rpmdistro-{gendnfconf,repoquery} %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} cp -pr distros %{buildroot}%{_datadir}/%{name}/ %files %license LICENSE %doc README.md %{_bindir}/rpmdistro-gendnfconf %{_bindir}/rpmdistro-repoquery %{_datadir}/%{name} %changelog %autochangelog