%global commit fd1a5a5dd2e9462c626e366220d8add7a36d7b81 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global checkout 20181107git%{shortcommit} Name: dnf-plugin-ovl Version: 0.0.2 Release: 1.%{checkout}%{?dist} Summary: DNF plugin to work around overlayfs issues URL: https://github.com/FlorianLudwig/dnf-plugin-ovl License: GPLv2+ Source0: https://github.com/FlorianLudwig/dnf-plugin-ovl/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python3-devel Requires: python3-dnf %description Workaround to run dnf on overlayfs. A port of yum-plugin-ovl to dnf. %prep %autosetup -n %{name}-%{commit} %build %install install -D -p ovl.py %{buildroot}/%{python3_sitelib}/dnf-plugins/ovl.py %files %license LICENSE %doc README.md %{python3_sitelib}/dnf-plugins/ovl.py %{python3_sitelib}/dnf-plugins/__pycache__/ovl.* %{python3_sitelib}/dnf-plugins/__pycache__/ovl.* %changelog * Wed Nov 07 2018 Till Hofmann - 0.0.2-1.20181107gitfd1a5a5d - Update to 0.0.2 - Use git snapshot to include latest upstream fixes - Install license file * Mon Nov 05 2018 Till Hofmann - 0.0.1-2 - Add missing Requires and BuildRequires - Make package noarch * Sun Feb 25 2018 Florian Ludwig - 0.0.1-1 - Initial package