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