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