]> git.pld-linux.org Git - packages/digitemp.git/blob - digitemp.spec
- added BR: libusb-devel for building of usb adapter
[packages/digitemp.git] / digitemp.spec
1 Summary:        Digital thermometer using DS1820 1-wire sensors
2 Summary(pl):    Termometr cyfrowy u¿ywaj±cy czujników Dallasa DS1820
3 Name:           digitemp
4 Version:        3.3.2
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz
9 # Source0-md5:  0b6cfb36d198767836de54d9fb11bbdb
10 Source1:        http://www.brianlane.com/linux/dthowto.txt
11 # Source1-md5:  31f67f7dba103988d10478566599cb3e
12 Patch0:         %{name}-opt.patch
13 URL:            http://www.digitemp.com/
14 BuildRequires:  libusb-devel
15 BuildRequires:  lockdev
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
26 %description -l pl
27 DigiTemp jest prostym interfejsem dla cyfrowych 1-przewodowych
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 metorologiczne,
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.
34
35 %prep
36 %setup -q
37 %patch0 -p1
38
39 cp %{SOURCE1} .
40
41 %build
42 export OPT="%{rpmcflags}"
43 %{__make} ds9097
44 %{__make} ds9097u
45 %{__make} ds2490 
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name},%{_mandir}/man1}
50
51 install digitemp_DS* $RPM_BUILD_ROOT%{_bindir}
52 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
53 cp -rf perl python rrdb $RPM_BUILD_ROOT%{_examplesdir}/%{name}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc CREDITS FAQ README TODO dthowto.txt
61 %attr(755,root,root) %{_bindir}/*
62 %{_examplesdir}/*
63 %{_mandir}/man1/*
This page took 0.044114 seconds and 3 git commands to generate.