Blame dnf-plugin-cow.spec

ba85c1
%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23}
ba85c1
Name:    dnf-plugin-cow
ba85c1
Version: 0.0.3
ba85c1
Release: 1.fb1%{?dist}
ba85c1
Summary: DNF plugin to enable Copy on Write in RPM
ba85c1
URL:     https://github.com/facebookincubator/dnf-plugin-cow
ba85c1
License: MIT
ba85c1
ba85c1
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
ba85c1
ba85c1
BuildArch: noarch
ba85c1
BuildRequires: python3-devel
ba85c1
BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
ba85c1
ba85c1
%description
ba85c1
Source package for DNF plugin to enable Copy on Write in DNF and RPM.
ba85c1
ba85c1
%package -n python3-%{name}
ba85c1
Summary: DNF plugin to enable Copy on Write in RPM - Python3
ba85c1
Requires: python3-dnf >= %{dnf_lowest_compatible}
ba85c1
# Using recommends to allow the plugin to be installed even if the requirements
ba85c1
# are not packaged/available yet.
ba85c1
Recommends: /usr/bin/rpm2extents
ba85c1
Recommends: rpm-plugin-reflink
ba85c1
ba85c1
%description -n python3-%{name}
ba85c1
Installing this package enables a DNF plugin which changes the behaviour of
ba85c1
librepo. Instead of downloading rpm files directly into cache before
ba85c1
installation they will be "transcoded" into "extent based" rpms which contain
ba85c1
all the constituent files of the rpm already uncompressed. This package
ba85c1
depends on a version of rpm which includes /usr/bin/rpm2extents and the
ba85c1
sub-package rpm-plugin-reflink which understands these "extent based" rpms
ba85c1
and can install files without copying the underlying data.
ba85c1
ba85c1
This package broadly assumes the root filesystem supports copy on write /
ba85c1
reflink'ing. Today this means btrfs or xfs.
ba85c1
ba85c1
%prep
ba85c1
%autosetup -n %{name}-%{version}
ba85c1
ba85c1
%build
ba85c1
ba85c1
%install
ba85c1
install -D -p reflink.conf %{buildroot}%{_sysconfdir}/dnf/plugins/reflink.conf
ba85c1
install -D -p reflink.py %{buildroot}%{python3_sitelib}/dnf-plugins/reflink.py
ba85c1
ba85c1
%files -n python3-%{name}
ba85c1
%license LICENSE
ba85c1
%doc README.md
ba85c1
%config(noreplace) %{_sysconfdir}/dnf/plugins/reflink.conf
ba85c1
%{python3_sitelib}/dnf-plugins/reflink.py
ba85c1
%{python3_sitelib}/dnf-plugins/__pycache__/reflink.*
ba85c1
ba85c1
%changelog
ba85c1
* Tue May 11 2021 Matthew Almond <malmond@fb.com> 0.0.3-1.fb1
ba85c1
- New release including PR #3 directly.
ba85c1
ba85c1
* Wed May 05 2021 Matthew Almond <malmond@fb.com> 0.0.2-1.fb1
ba85c1
- Pulled spec from Fedora
ba85c1
- Applying PR #3 fix
ba85c1
ba85c1
* Fri Jan 22 2021 Matthew Almond <malmond@fb.com> 0.0.2-1
ba85c1
- Minor version bump.
ba85c1
ba85c1
* Wed Jan 20 2021 Matthew Almond <malmond@fb.com> 0.0.1-3
ba85c1
- Separated package into top level "dnf-plugin-cow" concept with implementation
ba85c1
  "python3-dnf-plugin-cow". This allows for "libdnf-plugin-cow" later without
ba85c1
  renaming this package.
ba85c1
ba85c1
* Tue Jan 19 2021 Matthew Almond <malmond@fb.com> 0.0.1-2
ba85c1
- Prefixed name with python3- to follow guidelines
ba85c1
ba85c1
* Wed Dec 23 2020 Matthew Almond <malmond@fb.com> 0.0.1-1
ba85c1
- Initial version