7 Star 0 Fork 1

OpenCloudOS Stream/needrestart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
needrestart.spec 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
fanjunkong 提交于 2024-11-22 20:15 . upgrade to 3.8
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/needrestart.git
git@gitee.com:opencloudos-stream/needrestart.git
opencloudos-stream
needrestart
needrestart
master

搜索帮助