]> git.pld-linux.org Git - packages/needrestart.git/blame - needrestart.spec
generate perl deps
[packages/needrestart.git] / needrestart.spec
CommitLineData
63e98578 1%include /usr/lib/rpm/macros.perl
47ba318e
ER
2Summary: Check which daemons need to be restarted after library upgrades
3Name: needrestart
4Version: 1.2
63e98578 5Release: 0.5
47ba318e
ER
6License: GPL v2
7Group: Applications
8Source0: https://github.com/liske/needrestart/archive/v%{version}/%{name}-%{version}.tar.gz
9# Source0-md5: 9e5ecf1eab10a0a628641a6fed98608b
10URL: https://fiasko-nw.net/~thomas/tag/needrestart.html
63e98578 11BuildRequires: rpm-perlprov >= 4.1-13
47ba318e
ER
12BuildArch: noarch
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16needrestart checks which daemons need to be restarted after library
17upgrades. It is inspired by checkrestart from the debian-goodies
18package.
19
20Features:
21- supports (but does not require) systemd
22- binary blacklisting (i.e. display managers)
23- tries to detect pending kernel upgrades
24- tries to detect required restarts of interpreter based daemons
25 (supports Perl, Python, Ruby)
26- fully integrated into apt/dpkg using hooks
27
28%prep
29%setup -q
30
31%build
32cd perl
33%{__perl} Makefile.PL \
34 INSTALLDIRS=vendor
35%{__make}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39%{__make} install \
40 DESTDIR=$RPM_BUILD_ROOT
41
42%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/NeedRestart/.packlist
43%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
44%ifos Linux
45%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/NeedRestart/Kernel/kFreeBSD.pm
46%endif
47%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hook.d/10-dpkg
48%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hook.d/30-pacman
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc AUTHORS ChangeLog README.* INSTALL NEWS README.Kernel
56%dir %{_sysconfdir}/%{name}
47ba318e 57%dir %{_sysconfdir}/%{name}/hook.d
63e98578 58%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/needrestart.conf
47ba318e
ER
59%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hook.d/20-rpm
60%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hook.d/90-none
61%attr(755,root,root) %{_sbindir}/needrestart
62%{perl_vendorlib}/NeedRestart.pm
63%{perl_vendorlib}/NeedRestart
This page took 0.061888 seconds and 4 git commands to generate.