1 |
%define name smeserver-systemd-control |
2 |
%define version 0.1 |
3 |
%define release 2 |
4 |
Summary: Perl module to check systemd services |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://libreswan.org/ |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildRoot: /var/tmp/%{name}-%{version} |
13 |
BuildArchitectures: noarch |
14 |
BuildRequires: e-smith-devtools |
15 |
Requires: e-smith-release >= 10.0 |
16 |
Requires: python3 |
17 |
|
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
This module adds some systemd checks and commands for services |
22 |
https://github.com/NethServer/nethserver-lib/blob/master/lib/perl/NethServer/Service.pm |
23 |
https://raw.githubusercontent.com/NethServer/nethserver-lib/master/lib/perl/NethServer/Service.pm |
24 |
|
25 |
%changelog |
26 |
* Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2.sme |
27 |
- Updated description |
28 |
|
29 |
* Wed Oct 14 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1.sme |
30 |
- Initial build |
31 |
|
32 |
%prep |
33 |
%setup |
34 |
|
35 |
%build |
36 |
perl createlinks |
37 |
|
38 |
%install |
39 |
rm -rf $RPM_BUILD_ROOT |
40 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
41 |
rm -f %{name}-%{version}-filelist |
42 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
43 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
44 |
|
45 |
|
46 |
%clean |
47 |
cd .. |
48 |
rm -rf %{name}-%{version} |
49 |
|
50 |
%files -f %{name}-%{version}-filelist |
51 |
|
52 |
%defattr(-,root,root) |
53 |
|
54 |
%pre |
55 |
%preun |
56 |
%post |
57 |
|
58 |
|
59 |
echo "****************************************" |
60 |
echo "https://wiki.contribs.org/SystemdControl" |
61 |
echo "****************************************" |
62 |
|
63 |
%postun |