]>
Commit | Line | Data |
---|---|---|
3d480897 | 1 | Summary: Digital thermometer using DS1820 1-wire sensors |
da1b0c6d | 2 | Summary(pl.UTF-8): Termometr cyfrowy używający czujników Dallasa DS1820 |
3d480897 | 3 | Name: digitemp |
0736aef9 | 4 | Version: 3.5.0 |
6ca920e2 | 5 | Release: 2 |
2a9401ce | 6 | License: GPL v2 |
3d480897 | 7 | Group: Applications/System |
2a9401ce | 8 | Source0: http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz |
0736aef9 | 9 | # Source0-md5: 72bda9c8a66b017aa969c19dedb3225b |
bbfa125d | 10 | Source1: DS9097_Schematic.gif |
2a9401ce | 11 | Patch0: %{name}-opt.patch |
12 | URL: http://www.digitemp.com/ | |
be2972c0 | 13 | BuildRequires: libusb-devel |
ecf31fd4 | 14 | BuildRequires: lockdev-devel |
174c9536 | 15 | BuildRequires: rpm-pythonprov |
3d480897 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | DigiTemp is a simple to use interface to the Dallas Semiconductor | |
20 | DS18S20, DS1822, and DS18B20 1-wire digital temperature sensors. You | |
21 | can use DigiTemp in a wide variety of applications, such as heating | |
22 | control, process monitoring, weather station, indor/outdoor | |
23 | temperature logging, etc. It includes a couple of useful Perl, Python | |
24 | and RRD Tool scripts for crating graphs and dynamic signatures. | |
25 | ||
483c94d5 | 26 | %description -l pl.UTF-8 |
09f41fa6 | 27 | DigiTemp jest prostym interfejsem dla cyfrowych 1-przewodowych |
483c94d5 JR |
28 | czujników temperatury: DS18S20, DS1822 i DS18B20 firmy Dallas |
29 | Semiconductor. DigiTemp może mieć wiele zastosowań, takich jak | |
30 | kontrola ogrzewania, monitorowanie procesów, stacje meteorologiczne, | |
31 | wewnętrzne/zewnętrzne monitorowanie temperatury. Pakiet zawiera kilka | |
32 | użytecznych skryptów Perla, Pytona i RRD do tworzenia wykresów i | |
33 | dynamicznych wpisów. | |
09f41fa6 | 34 | |
3d480897 | 35 | %prep |
36 | %setup -q | |
2a9401ce | 37 | %patch0 -p1 |
3d480897 | 38 | |
bbfa125d | 39 | install %{SOURCE1} . |
3d480897 | 40 | |
41 | %build | |
bbfa125d AM |
42 | %{__make} ds9097 ds9097u ds2490 \ |
43 | CC="%{__cc}" \ | |
44 | OPT="%{rpmcflags}" | |
3d480897 | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
ecf31fd4 | 48 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version},%{_mandir}/man1} |
3d480897 | 49 | |
59165c88 | 50 | install digitemp_DS* $RPM_BUILD_ROOT%{_bindir} |
2a9401ce | 51 | install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
ecf31fd4 | 52 | cp -rf perl python rrdb $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3d480897 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
bbfa125d | 59 | %doc CREDITS DS9097_S* FAQ README TODO |
2a9401ce | 60 | %attr(755,root,root) %{_bindir}/* |
ecf31fd4 | 61 | %{_examplesdir}/%{name}-%{version} |
2a9401ce | 62 | %{_mandir}/man1/* |