代码拉取完成,页面将自动刷新
Name: needrestart
Version: 3.8
Release: 1%{?dist}
Summary: Restart daemons after library updates
License: GPLv2+
URL: https://github.com/liske/%{name}
Source0: https://github.com/liske/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: debconf__needrestart.templates
Source2: restart.d__auditd.service
Source3: yum__plugin.py
Source4: dnf__plugin.py
BuildArch: noarch
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: gettext
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: debconf
BuildRequires: po-debconf
BuildRequires: python3-devel
Requires: python3-dnf
Requires: xz
%{?perl_default_filter}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Debconf::Client::ConfModule\\)
%description
needrestart checks which daemons need to be restarted after library
upgrades. It is inspired by checkrestart from the debian-goodies
package.
%prep
%autosetup -n %{name}-%{version} -p 1
%build
%make_build
%install
%make_install
mkdir -p %{buildroot}/%{_mandir}/man1
cp man/needrestart.1 %{buildroot}/%{_mandir}/man1/
%find_lang %{name}
%find_lang needrestart-notify
rm -rf %{buildroot}/%{perl_archlib}
cp %{SOURCE1} %{buildroot}/%{_datadir}/%{name}/needrestart.templates
cp %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/restart.d/auditd.service
chmod a+x %{buildroot}/%{_sysconfdir}/%{name}/restart.d/auditd.service
mkdir -p %{buildroot}/%{_sysconfdir}/dnf/plugins %{buildroot}/%{python3_sitelib}/dnf-plugins
echo -e "[main]\nenabled=1\n" >%{buildroot}/%{_sysconfdir}/dnf/plugins/needrestart.conf
cp %{SOURCE4} %{buildroot}/%{python3_sitelib}/dnf-plugins/needrestart.py
rm %{buildroot}/%{_sysconfdir}/%{name}/hook.d/20-rpm
mkdir -p %{buildroot}/%{_sysconfdir}/default
echo "IUCODE_TOOL_EXTRA_OPTIONS=--ignore-broken" >%{buildroot}/%{_sysconfdir}/default/intel-microcode
%files -f %{name}.lang -f needrestart-notify.lang
%license COPYING
%doc README.md README.batch.md README.Cont.md README.Interp.md README.nagios.md README.uCode.md NEWS ChangeLog
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/default/intel-microcode
%{_sbindir}/%{name}
%{perl_vendorlib}/*
/usr/lib/%{name}
%{_datadir}/%{name}
%{_datadir}/polkit-1
%{_mandir}/man1/needrestart.1*
%config(noreplace) %{_sysconfdir}/dnf/plugins/needrestart.conf
%pycached %{python3_sitelib}/dnf-plugins/needrestart.py
%changelog
* Fri Nov 22 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 3.8-1
- [Type] Security
- [DESC] upgrade to 3.8
- CVE-2024-48992 CVE-2024-11003 CVE-2024-48990 CVE-2024-48991
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 3.6-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。