%global c9s_commit ce231c10b48cb4ddde860bfc9d6f79c76ba92e0a Name: standalone-repo-configs Version: 0.1.0 Release: %autorelease Summary: Standalone DNF repository configurations for non-system uses License: GPLv2 and MIT URL: https://pagure.io/michel-slm/standalone-repo-configs Source000: https://gitlab.com/redhat/centos-stream/rpms/centos-release/-/raw/%{c9s_commit}/centos.repo#/centos9.repo Source001: https://gitlab.com/redhat/centos-stream/rpms/centos-release/-/raw/%{c9s_commit}/centos.repo#/centos-LICENSE BuildArch: noarch Requires: distribution-gpg-keys %description This repository contains standalone DNF repository configurations, for use by utilities apart from DNF (e.g. for analyzing repository data rather than for installing packages on the current system). %prep mkdir -p centos/stream9 cat %{SOURCE0} \ | sed -e 's|gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial|gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official|g' \ > centos/stream9/centos9.repo cp -p %{SOURCE1} centos-LICENSE %build %install TARGET=%{buildroot}%{_datadir}/standalone-repo-configs mkdir -p ${TARGET} cp -pr centos ${TARGET}/ %files %license centos-LICENSE %{_datadir}/standalone-repo-configs %changelog %autochangelog