public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dnf-plugin-cow] rawhide: Update to 0.2.0; Fixes: RHBZ#2443102
@ 2026-09-28 10:18 Davide Cavalca
  0 siblings, 0 replies; only message in thread
From: Davide Cavalca @ 2026-09-28 10:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/dnf-plugin-cow
Branch : rawhide
Commit : 8a3c35332f3ef2525ef25e8add0eda80143f01cd
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date   : 2026-09-28T10:18:29+00:00
Stats  : +21/-20 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/dnf-plugin-cow/c/8a3c35332f3ef2525ef25e8add0eda80143f01cd?branch=rawhide

Log:
Update to 0.2.0; Fixes: RHBZ#2443102

---
diff --git a/.gitignore b/.gitignore
index 9abeb90..a7c13d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /dnf-plugin-cow-0.0.2.tar.gz
 /dnf-plugin-cow-0.0.4.tar.gz
+/dnf-plugin-cow-0.2.0.tar.gz

diff --git a/dnf-plugin-cow.spec b/dnf-plugin-cow.spec
index 249b540..b8ad40a 100644
--- a/dnf-plugin-cow.spec
+++ b/dnf-plugin-cow.spec
@@ -1,31 +1,31 @@
-%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23}
 Name:    dnf-plugin-cow
-Version: 0.0.4
+Version: 0.2.0
 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
+Source:  %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
-BuildArch: noarch
-BuildRequires: python3-devel
-BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: pkgconfig(libdnf5)
 
 %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}
+%package -n libdnf5-plugin-cow
+Summary: DNF5 plugin to enable Copy on Write in RPM
 # Using recommends to allow the plugin to be installed even if the requirements
 # are not packaged/available yet.
-Recommends: /usr/bin/rpm2extents
+Recommends: /usr/lib/rpm/rpm2extents
 Recommends: rpm-plugin-reflink
+# Drop once F45 is EOL
+Obsoletes:  python3-dnf-plugin-cow < 0.2.0-1
 
-%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
+%description -n libdnf5-plugin-cow
+Installing this package enables a libdnf5 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
@@ -39,17 +39,17 @@ reflink'ing. Today this means btrfs or xfs.
 %autosetup -n %{name}-%{version}
 
 %build
+%cmake
+%cmake_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
+%cmake_install
 
-%files -n python3-%{name}
+%files -n libdnf5-plugin-cow
 %license LICENSE
 %doc README.md
-%config(noreplace) %{_sysconfdir}/dnf/plugins/reflink.conf
-%{python3_sitelib}/dnf-plugins/reflink.py
-%{python3_sitelib}/dnf-plugins/__pycache__/reflink.*
+%config(noreplace) %{_sysconfdir}/dnf/libdnf5-plugins/reflink.conf
+%{_libdir}/libdnf5/plugins/reflink.so
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index d0bf376..4b185e3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (dnf-plugin-cow-0.0.4.tar.gz) = 56c7b70d81c63513207f8f3644785c231cc300e629fd05b3538a57edff1d8d63c3bf32deb370c61b0002bddafd8d503aadb17fb9c8fdd2061c2a6f03c53040ab
+SHA512 (dnf-plugin-cow-0.2.0.tar.gz) = 1ef378700b3c9a8a797e08def41df89c0ba2bc6f8c2ed79ca4258cad426917d20f6bb7d345fbefd866cbc0c489f71758bba6f13181d71d8c30094437297694ed

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-28 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 10:18 [rpms/dnf-plugin-cow] rawhide: Update to 0.2.0; Fixes: RHBZ#2443102 Davide Cavalca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox