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