## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23} Name: dnf-plugin-cow Version: 0.0.4 Release: %autorelease Summary: DNF plugin to enable Copy on Write in RPM URL: https://github.com/facebookincubator/dnf-plugin-cow License: MIT Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-dnf >= %{dnf_lowest_compatible} %description Source package for DNF plugin to enable Copy on Write in DNF and RPM. %package -n python3-%{name} Summary: DNF plugin to enable Copy on Write in RPM - Python3 Requires: python3-dnf >= %{dnf_lowest_compatible} # Using recommends to allow the plugin to be installed even if the requirements # are not packaged/available yet. Recommends: /usr/bin/rpm2extents Recommends: rpm-plugin-reflink %description -n python3-%{name} Installing this package enables a DNF plugin which changes the behaviour of librepo. Instead of downloading rpm files directly into cache before installation they will be "transcoded" into "extent based" rpms which contain all the constituent files of the rpm already uncompressed. This package depends on a version of rpm which includes /usr/bin/rpm2extents and the sub-package rpm-plugin-reflink which understands these "extent based" rpms and can install files without copying the underlying data. This package broadly assumes the root filesystem supports copy on write / reflink'ing. Today this means btrfs or xfs. %prep %autosetup -n %{name}-%{version} %build %install install -D -p reflink.conf %{buildroot}%{_sysconfdir}/dnf/plugins/reflink.conf install -D -p reflink.py %{buildroot}%{python3_sitelib}/dnf-plugins/reflink.py %files -n python3-%{name} %license LICENSE %doc README.md %config(noreplace) %{_sysconfdir}/dnf/plugins/reflink.conf %{python3_sitelib}/dnf-plugins/reflink.py %{python3_sitelib}/dnf-plugins/__pycache__/reflink.* %changelog ## START: Generated by rpmautospec * Wed Jan 24 2024 Fedora Release Engineering - 0.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 0.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.0.4-3 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jan 14 2023 Michel Alexandre Salim - 0.0.4-1 - Update to 0.0.4 * Thu Jul 21 2022 Fedora Release Engineering - 0.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 0.0.2-5 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 0.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.0.2-2 - Rebuilt for Python 3.10 * Fri Jan 22 2021 Matthew Almond 0.0.2-1 - Minor version bump. * Wed Jan 20 2021 Matthew Almond 0.0.1-3 - Separated package into top level "dnf-plugin-cow" concept with implementation "python3-dnf-plugin-cow". This allows for "libdnf-plugin-cow" later without renaming this package. * Tue Jan 19 2021 Matthew Almond 0.0.1-2 - Prefixed name with python3- to follow guidelines * Wed Dec 23 2020 Matthew Almond 0.0.1-1 - Initial version ## END: Generated by rpmautospec