Skip to content

Commit

Permalink
Renamed package (again) to dnf-plugin-cow
Browse files Browse the repository at this point in the history
Using sub-package for python3 based DNF plugin. The goal is to
eventually replace this with libdnf-plugin-cow. See
#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.
  • Loading branch information
malmond77 committed Jan 20, 2021
1 parent 523f514 commit b2117c8
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions dnf-plugin-cow.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -17,32 +17,42 @@ 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
%{python3_sitelib}/dnf-plugins/reflink.py
%{python3_sitelib}/dnf-plugins/__pycache__/reflink.*

%changelog
* Wed Jan 20 2021 Matthew Almond <[email protected]> 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 <[email protected]> 0.0.1-2
- Prefixed name with python3- to follow guidelines

* Tue Dec 23 2020 Matthew Almond <[email protected]> 0.0.1-1
* Wed Dec 23 2020 Matthew Almond <[email protected]> 0.0.1-1
- Initial version

0 comments on commit b2117c8

Please sign in to comment.