Debian Codegraph @

check_lm_sensors/src/check_lm_sensors.spec

raw
1 %define version 4.1.1
2 %define release 0
3 %define sourcename check_lm_sensors
4 %define packagename nagios-plugins-check-lm-sensors
5 %define nagiospluginsdir %{_libdir}/nagios/plugins
6
7 # No binaries in this package
8 %define debug_package %{nil}
9
10 Summary: A Nagios plugin to monitor sensors values
11 Name: %{packagename}
12 Version: %{version}
13 Obsoletes: check_lm_sensors
14 Release: %{release}%{?dist}
15 License: GPLv3+
16 Packager: Matteo Corti <[email protected]>
17 Group: Applications/System
18 BuildRoot: %{_tmppath}/%{packagename}-%{version}-%{release}-root-%(%{__id_u} -n)
19 Source: https://github.com/matteocorti/check_lm_sensors/releases/download/v4.1.1/check_lm_sensors-4.1.1.tar.gz
20
21 Requires: hddtemp
22
23 # Fedora build requirement (not needed for EPEL{4,5})
24 BuildRequires: perl(ExtUtils::MakeMaker)
25
26 Requires: nagios-plugins
27
28 %description
29 check_lm_sensors is a Nagios plugin to monitor the values of on board sensors and hard
30 disk temperatures on Linux systems
31
32 %prep
33 %setup -q -n %{sourcename}-%{version}
34
35 %build
36 %{__perl} Makefile.PL INSTALLDIRS=vendor \
37 INSTALLSCRIPT=%{nagiospluginsdir} \
38 INSTALLVENDORSCRIPT=%{nagiospluginsdir}
39 make %{?_smp_mflags}
40
41 %install
42 rm -rf %{buildroot}
43 make pure_install PERL_INSTALL_ROOT=%{buildroot}
44 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
45 find %{buildroot} -type f -name "*.pod" -exec rm -f {} \;
46 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
47 %{_fixperms} %{buildroot}/*
48
49 %clean
50 rm -rf %{buildroot}
51
52 %files
53 %defattr(-,root,root,-)
54 %doc AUTHORS Changes NEWS README TODO COPYING COPYRIGHT
55 %{nagiospluginsdir}/%{sourcename}
56 %{_mandir}/man1/%{sourcename}.1*
57
58 %changelog
59 * Fri Jan 7 2016 Matteo Corti <[email protected]> - 4.1.1-0
60 - Updated to 4.1.1
61
62 * Mon Nov 23 2015 Matteo Corti <[email protected]> - 4.1.0-0
63 - Updated to 4.1.0
64
65 * Fri Oct 17 2008 Matteo Corti <[email protected]> - 3.1.1-0
66 - short pause before reading the output of 'sensors'
67
68 * Tue Jun 10 2008 Matteo Corti <[email protected]> - 3.1.0-0
69 - repackaging and cleanup
70
71 * Thu Oct 4 2007 Matteo Corti <[email protected]> - 3.0.1-0
72 - packaged version 3.0.1
73
74 * Wed Oct 3 2007 Matteo Corti <[email protected]> - 3.0.0-2
75 - added the perl-Nagios-Plugin dependency
76
77 * Wed Oct 3 2007 Matteo Corti <[email protected]> - 3.0.0-1
78 - included the updated ChangeLog and NEWS files
79
80 * Wed Oct 3 2007 Matteo Corti <[email protected]> - 3.0.0-0
81 - Upgraded to 3.0.0
82
83 * Tue Jul 10 2007 Matteo Corti <[email protected]> - 2.0-1
84 - updated to 2.0
85
86 * Wed Jun 20 2007 Matteo Corti <[email protected]> - 1.1-4
87 - Requires perl and hddtemp
88
89 * Mon Jun 18 2007 Matteo Corti <[email protected]> - 1.0-0
90 - Initial release