%global commit 7a95e396943840d3e421b5e2716128646861350b %global commitdate 20250210 %{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})} # For now, I don't want to make any "releases". The script is # very much a WIP, so we may just as well do a snapshot. Name: fedora-repro-build Version: 0^%{commitdate}g%{shortcommit} Release: %autorelease Summary: Scripts to reproduce builds of Fedora packages License: LGPL-2.1-or-later URL: https://github.com/keszybz/fedora-repro-build Source0: https://github.com/keszybz/fedora-repro-build/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: python3-devel Requires: python3dist(requests) Requires: python3dist(koji) Requires: /usr/bin/rpmdiff BuildArch: noarch %description This package provide the koji-rebuild script which can be used to do a local mock rebuild of build that was previously done in koji. See https://docs.fedoraproject.org/en-US/reproducible-builds/. # Note: upstream repo has additional scripts, but they are not ready # for public consumption yet. %prep %autosetup -p1 -n %{name}-%{commit} %build # nothing to do %install install -D koji_rebuild.py %{buildroot}%{_bindir}/koji-rebuild %py3_shebang_fix %{buildroot}%{_bindir}/koji-rebuild %files %license LICENSE.LGPL2.1 %doc README.md %{_bindir}/koji-rebuild %changelog %autochangelog