source: projects/specs/trunk/l/lm-sensors/lm-sensors-vl.spec @ 588

Revision 588, 3.0 KB checked in by owa, 14 years ago (diff)

updated lm-sensors to 3.1.2

Line 
1Summary: Linux hardware monitoring
2Summary(ja): Linux ハードウェア監視ソフト
3Name: lm-sensors
4Version: 3.1.2
5Release: 1%{?_dist_release}
6License: GPL
7Group: Applications/System
8URL: http://www.lm-sensors.org/
9Source0: http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-%{version}.tar.bz2
10
11Requires: perl
12BuildRequires: sysfsutils-devel
13BuildRequires: bison, flex
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15
16Vendor: Project Vine
17Distribution: Vine Linux
18Packager: shaolin, owa
19
20%description
21The lm-sensors package, version 3, provides user-space support for the
22hardware monitoring drivers in Linux 2.6.5 and later. For older kernel
23versions, you have to use lm-sensors version 2.
24
25Lm-sensors is a hardware health monitoring package for Linux.
26It allows you to access information from temperature, voltage,
27and fan speed sensors. It works with most newer systems.
28
29
30%package devel
31Summary: Development libraries and headers for %{name}
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34
35%description devel
36Development libraries and headers for %{name}.
37
38%prep
39%setup -q -n lm_sensors-%{version}
40
41%build
42make all
43
44%install
45rm -rf %{buildroot}
46make install \
47        PREFIX=%{buildroot}%{_prefix} \
48        LIBDIR=%{buildroot}%{_libdir} \
49        ETCDIR=%{buildroot}%{_sysconfdir} \
50        MANDIR=%{buildroot}%{_mandir}
51
52# add initscript from proc/init
53mkdir -p %{buildroot}%{_initdir}
54install -m755 prog/init/lm_sensors.init %{buildroot}%{_initdir}/lm_sensors
55
56# remove unuse files
57rm -f %{buildroot}/%{_libdir}/*.a
58
59%clean
60rm -rf %{buildroot}
61
62%post
63/sbin/ldconfig
64if [ "$1" = 1 ] ; then
65        /sbin/chkconfig --add lm_sensors
66fi
67%{_initdir}/lm_sensors condrestart
68
69%preun
70if [ "$1" = 0 ] ; then
71        %{_initdir}/lm_sensors stop > /dev/null 2>&1
72    /sbin/chkconfig --del lm_sensors
73fi
74
75%postun
76/sbin/ldconfig
77
78
79%files
80%defattr(-,root,root,-)
81%doc CHANGES CONTRIBUTORS COPYING INSTALL README doc
82%dir %{_sysconfdir}/sensors.d
83%config(noreplace) %{_sysconfdir}/sensors3.conf
84%config %{_initdir}/lm_sensors
85%{_bindir}/sensors
86%{_bindir}/sensors-conf-convert
87%{_sbindir}/fancontrol
88%ifarch %{ix86} x86_64
89%{_sbindir}/isadump
90%{_sbindir}/isaset
91%endif
92%{_sbindir}/pwmconfig
93%{_sbindir}/sensors-detect
94%{_libdir}/libsensors.so*
95%{_mandir}/*/*
96
97%files devel
98%{_includedir}/sensors
99
100%changelog
101* Tue Mar 16 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.2-1
102- updated lm-sensors to 3.1.2
103
104* Tue Oct 20 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.1.1-2
105- isadump/isaset only available on ix86/x86_64 archs
106
107* Mon Aug 31 2009 Shu KONNO <owa@bg.wakwak.com> 3.1.1-1
108- updated lm-sensors to 3.1.1
109- added japanese summary, spec in utf-8
110- added %{_initdir}/lm_sensors to %%files
111- added %%post, %%preun, %%postun scripts
112
113* Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.10.7-1vl5
114- new upstream release
115- applied new versioning policy
116
117* Sun Nov 25 2007 Shu KONNO <owa@bg.wakwak.com> - 2.10.3-0vl2
118- fixed libdir in Makefile (for support lib64)
119
120* Thu May 29 2007 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.10.3-0vl1
121- Initial build.
122
Note: See TracBrowser for help on using the repository browser.