[packages/needrestart] new, version 1.2

glen glen at pld-linux.org
Tue Dec 2 22:15:24 CET 2014


commit 47ba318ec0d10130cada75391b494b9c75b0fc3b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Dec 2 23:15:04 2014 +0200

    new, version 1.2

 needrestart.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/needrestart.spec b/needrestart.spec
new file mode 100644
index 0000000..e9331c7
--- /dev/null
+++ b/needrestart.spec
@@ -0,0 +1,61 @@
+Summary:	Check which daemons need to be restarted after library upgrades
+Name:		needrestart
+Version:	1.2
+Release:	0.4
+License:	GPL v2
+Group:		Applications
+Source0:	https://github.com/liske/needrestart/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	9e5ecf1eab10a0a628641a6fed98608b
+URL:		https://fiasko-nw.net/~thomas/tag/needrestart.html
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+needrestart checks which daemons need to be restarted after library
+upgrades. It is inspired by checkrestart from the debian-goodies
+package.
+
+Features:
+- supports (but does not require) systemd
+- binary blacklisting (i.e. display managers)
+- tries to detect pending kernel upgrades
+- tries to detect required restarts of interpreter based daemons
+  (supports Perl, Python, Ruby)
+- fully integrated into apt/dpkg using hooks
+
+%prep
+%setup -q
+
+%build
+cd perl
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/NeedRestart/.packlist
+%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+%ifos Linux
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/NeedRestart/Kernel/kFreeBSD.pm
+%endif
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hook.d/10-dpkg
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hook.d/30-pacman
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README.* INSTALL NEWS README.Kernel
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/needrestart.conf
+%dir %{_sysconfdir}/%{name}/hook.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hook.d/20-rpm
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hook.d/90-none
+%attr(755,root,root) %{_sbindir}/needrestart
+%{perl_vendorlib}/NeedRestart.pm
+%{perl_vendorlib}/NeedRestart
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/needrestart.git/commitdiff/47ba318ec0d10130cada75391b494b9c75b0fc3b



More information about the pld-cvs-commit mailing list