6 Star 0 Fork 0

OpenCloudOS Stream/dnf-plugin-flunk_dependent_remove

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dnf-plugin-flunk_dependent_remove.spec 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-05-06 16:25 . package init
%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.23}
%global srcname flunk_dependent_remove
%global _description %{expand:
Do not allow "dnf -y remove" to expand the list of packages to remove to
include packages which require one of the explicitly listed packages.
Fail the request instead. This is implemented via a DNF plugin.}
Name: dnf-plugin-%{srcname}
Version: 1.0
Release: 1%{?dist}
Summary: DNF plugin to prevent removing packages recursively via automation
License: GPLv2
BuildArch: noarch
Source0: %{srcname}.py
Source1: LICENSE
BuildRequires: python3-devel
BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
%description %{_description}
%package -n python3-%{name}
Summary: %{summary}
Requires: python3-dnf >= %{dnf_lowest_compatible}
%description -n python3-%{name} %{_description}
%prep
cp -p %SOURCE1 .
%install
install -D -m0644 %{SOURCE0} \
%{buildroot}/%{python3_sitelib}/dnf-plugins/%{srcname}.py
%files -n python3-%{name}
%license LICENSE
%{python3_sitelib}/dnf-plugins/%{srcname}.py
%{python3_sitelib}/dnf-plugins/__pycache__/*
%changelog
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.0-1
- initial build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/dnf-plugin-flunk_dependent_remove.git
git@gitee.com:opencloudos-stream/dnf-plugin-flunk_dependent_remove.git
opencloudos-stream
dnf-plugin-flunk_dependent_remove
dnf-plugin-flunk_dependent_remove
master

搜索帮助

Cb406eda 1850385 E526c682 1850385