From b2117c8410a08de448cf3545df1e2cd924e83af0 Mon Sep 17 00:00:00 2001 From: Matthew Almond Date: Wed, 20 Jan 2021 12:57:36 -0800 Subject: [PATCH] Renamed package (again) to dnf-plugin-cow Using sub-package for python3 based DNF plugin. The goal is to eventually replace this with libdnf-plugin-cow. See https://github.com/facebookincubator/dnf-plugin-cow/issues/1 for rationale Use Recommends instead of Requires to allow the package to be installed without complementary changes for rpm and librepo. This is intended to be temporary until Fedora Rawhide includes the changes. Fixed the date in an old changelog. Probably was working past midnight and got the day of week/date mixed up. --- dnf-plugin-cow.spec | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/dnf-plugin-cow.spec b/dnf-plugin-cow.spec index 99572a9..89e883f 100644 --- a/dnf-plugin-cow.spec +++ b/dnf-plugin-cow.spec @@ -3,11 +3,11 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # -%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.4.3} -Name: python3-dnf-plugin-cow +%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23} +Name: dnf-plugin-cow Version: 0.0.1 -Release: 1%{?dist} -Summary: DNF plugin to enable Copy on Write +Release: 3%{?dist} +Summary: DNF plugin to enable Copy on Write in RPM URL: https://github.com/facebookincubator/dnf-plugin-cow License: MIT @@ -17,23 +17,28 @@ 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} -Requires: /usr/bin/rpm2extents -Requires: rpm-plugin-reflink +# 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 -Enables Copy On Write for dnf/rpm +%description -n python3-%{name} +Enables Copy On Write in DNF and RPM. %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 +install -D -p reflink.conf %{buildroot}%{_sysconfdir}/dnf/plugins/reflink.conf +install -D -p reflink.py %{buildroot}%{python3_sitelib}/dnf-plugins/reflink.py -%files +%files -n python3-%{name} %license LICENSE %doc README.md %config(noreplace) %{_sysconfdir}/dnf/plugins/reflink.conf @@ -41,8 +46,13 @@ install -D -p reflink.py %{buildroot}/%{python3_sitelib}/dnf-plugins/reflink.py %{python3_sitelib}/dnf-plugins/__pycache__/reflink.* %changelog +* Wed Jan 20 2021 Matthew Almond 0.0.1-3 +- Seperated package into top level "dnf-plugin-cow" concep 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 -* Tue Dec 23 2020 Matthew Almond 0.0.1-1 +* Wed Dec 23 2020 Matthew Almond 0.0.1-1 - Initial version