1 | Summary: Hardware monitoring tools |
---|
2 | Summary(ja): ハードウェア監視ツール集 |
---|
3 | Name: lm-sensors |
---|
4 | Version: 3.5.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | %global ver_str %(echo -n "%{version}" | sed -e 's/\\./-/g') |
---|
8 | |
---|
9 | Group: Applications/System |
---|
10 | License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain |
---|
11 | URL: https://github.com/lm-sensors/lm-sensors |
---|
12 | |
---|
13 | Source0: https://github.com/lm-sensors/lm-sensors/archive/lm_sensors-%{version}.tar.gz#/lm-sensors-%{ver_str}.tar.gz |
---|
14 | Source1: lm_sensors.sysconfig |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildRequires: bison |
---|
18 | BuildRequires: flex |
---|
19 | BuildRequires: gawk |
---|
20 | BuildRequires: kernel-headers >= 2.2.16 |
---|
21 | %if "%{_dist_release}" >= "vl7" |
---|
22 | BuildRequires: libsysfs-devel |
---|
23 | %else |
---|
24 | BuildRequires: sysfsutils-devel |
---|
25 | %endif |
---|
26 | BuildRequires: rrdtool-devel |
---|
27 | |
---|
28 | Requires: perl |
---|
29 | Requires: initscripts |
---|
30 | Requires(post): /sbin/chkconfig |
---|
31 | Requires(preun): /sbin/chkconfig |
---|
32 | |
---|
33 | Vendor: Project Vine |
---|
34 | Distribution: Vine Linux |
---|
35 | Packager: shaolin, owa |
---|
36 | |
---|
37 | %description |
---|
38 | The lm-sensors package includes a collection of modules for general SMBus |
---|
39 | access and hardware monitoring. |
---|
40 | |
---|
41 | %package libs |
---|
42 | Summary: Lm_sensors core libraries |
---|
43 | Summary(ja): Lm_sensors コアライブラリ |
---|
44 | Group: System Environment/Libraries |
---|
45 | |
---|
46 | %description libs |
---|
47 | Core libraries for lm_sensors applications |
---|
48 | |
---|
49 | |
---|
50 | %package devel |
---|
51 | Summary: Development files for programs which will use lm_sensors |
---|
52 | Summary(ja): lm_sensors を使用するプログラムのための開発用ファイル |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: %{name}-libs = %{version}-%{release} |
---|
55 | |
---|
56 | %description devel |
---|
57 | The %{name}-devel package includes a header files and libraries for use |
---|
58 | when building applications that make use of sensor data. |
---|
59 | |
---|
60 | |
---|
61 | %package sensord |
---|
62 | Summary: Daemon that periodically logs sensor readings |
---|
63 | Summary(ja): センサーの読み取り値を定期的に記録するデーモン |
---|
64 | Group: System Environment/Daemons |
---|
65 | Requires: %{name} = %{version}-%{release} |
---|
66 | |
---|
67 | %description sensord |
---|
68 | Daemon that periodically logs sensor readings to syslog or a round-robin |
---|
69 | database, and warns of sensor alarms. |
---|
70 | |
---|
71 | %prep |
---|
72 | %setup -q -n lm-sensors-%{ver_str} |
---|
73 | |
---|
74 | %build |
---|
75 | export CFLAGS="%{optflags}" |
---|
76 | make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} EXLDFLAGS= user |
---|
77 | |
---|
78 | %install |
---|
79 | rm -rf $RPM_BUILD_ROOT |
---|
80 | make user_install \ |
---|
81 | DESTDIR=$RPM_BUILD_ROOT \ |
---|
82 | PREFIX=%{_prefix} \ |
---|
83 | LIBDIR=%{_libdir} \ |
---|
84 | ETCDIR=%{_sysconfdir} \ |
---|
85 | MANDIR=%{_mandir} |
---|
86 | |
---|
87 | ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz |
---|
88 | |
---|
89 | # add initscript from proc/init |
---|
90 | mkdir -p $RPM_BUILD_ROOT%{_initdir} |
---|
91 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sensors.d |
---|
92 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig |
---|
93 | install -m755 prog/init/lm_sensors.init $RPM_BUILD_ROOT%{_initdir}/lm_sensors |
---|
94 | install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lm_sensors |
---|
95 | |
---|
96 | # remove unuse files |
---|
97 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a |
---|
98 | |
---|
99 | %clean |
---|
100 | rm -rf $RPM_BUILD_ROOT |
---|
101 | |
---|
102 | %post |
---|
103 | if [ "$1" = 1 ] ; then |
---|
104 | /sbin/chkconfig --add lm_sensors |
---|
105 | fi |
---|
106 | %{_initdir}/lm_sensors condrestart |
---|
107 | |
---|
108 | %preun |
---|
109 | if [ "$1" = 0 ] ; then |
---|
110 | %{_initdir}/lm_sensors stop > /dev/null 2>&1 |
---|
111 | /sbin/chkconfig --del lm_sensors |
---|
112 | fi |
---|
113 | |
---|
114 | %post libs -p /sbin/ldconfig |
---|
115 | |
---|
116 | %postun libs -p /sbin/ldconfig |
---|
117 | |
---|
118 | |
---|
119 | %files |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %license COPYING |
---|
122 | %doc CHANGES CONTRIBUTORS INSTALL README doc |
---|
123 | %dir %{_sysconfdir}/sensors.d |
---|
124 | %config(noreplace) %{_sysconfdir}/sensors3.conf |
---|
125 | %config(noreplace) %{_sysconfdir}/sysconfig/lm_sensors |
---|
126 | %config %{_initdir}/lm_sensors |
---|
127 | %{_bindir}/sensors |
---|
128 | %{_bindir}/sensors-conf-convert |
---|
129 | %{_sbindir}/fancontrol |
---|
130 | %ifarch %{ix86} x86_64 |
---|
131 | %{_sbindir}/isadump |
---|
132 | %{_sbindir}/isaset |
---|
133 | %endif |
---|
134 | %{_sbindir}/pwmconfig |
---|
135 | %{_sbindir}/sensors-detect |
---|
136 | %{_mandir}/man1/* |
---|
137 | %{_mandir}/man5/* |
---|
138 | %{_mandir}/man8/* |
---|
139 | |
---|
140 | %files libs |
---|
141 | %{_libdir}/lib*.so.* |
---|
142 | |
---|
143 | %files devel |
---|
144 | %{_includedir}/sensors |
---|
145 | %{_libdir}/lib*.so |
---|
146 | %{_mandir}/man3/* |
---|
147 | |
---|
148 | |
---|
149 | %changelog |
---|
150 | * Fri May 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.0-1 |
---|
151 | - updated to 3.5.0. |
---|
152 | |
---|
153 | * Sat Nov 7 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 3.4.0-1 |
---|
154 | - update to 3.4.0 |
---|
155 | |
---|
156 | * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.3.5-1 |
---|
157 | - updated to 3.3.5 |
---|
158 | - built on current VineSeed |
---|
159 | - split libraries to libs subpackage |
---|
160 | |
---|
161 | * Tue Apr 12 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.0-1 |
---|
162 | - new upstrem release 3.3.0 |
---|
163 | |
---|
164 | * Tue Dec 14 2010 Shu KONNO <owa@bg.wakwak.com> 3.2.0-1 |
---|
165 | - updated lm-sensors to 3.2.0 |
---|
166 | - added RQ: initscripts |
---|
167 | |
---|
168 | * Tue Mar 16 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.2-1 |
---|
169 | - updated lm-sensors to 3.1.2 |
---|
170 | |
---|
171 | * Tue Oct 20 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.1.1-2 |
---|
172 | - isadump/isaset only available on ix86/x86_64 archs |
---|
173 | |
---|
174 | * Mon Aug 31 2009 Shu KONNO <owa@bg.wakwak.com> 3.1.1-1 |
---|
175 | - updated lm-sensors to 3.1.1 |
---|
176 | - added japanese summary, spec in utf-8 |
---|
177 | - added %{_initdir}/lm_sensors to %%files |
---|
178 | - added %%post, %%preun, %%postun scripts |
---|
179 | |
---|
180 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.10.7-1vl5 |
---|
181 | - new upstream release |
---|
182 | - applied new versioning policy |
---|
183 | |
---|
184 | * Sun Nov 25 2007 Shu KONNO <owa@bg.wakwak.com> - 2.10.3-0vl2 |
---|
185 | - fixed libdir in Makefile (for support lib64) |
---|
186 | |
---|
187 | * Tue May 29 2007 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.10.3-0vl1 |
---|
188 | - Initial build. |
---|
189 | |
---|