]> git.pld-linux.org Git - packages/digitemp.git/blob - digitemp.spec
90943866e0a2ad749e237381a5f985c712ab1030
[packages/digitemp.git] / digitemp.spec
1 Summary:        Digital thermometer using DS1820 1-wire sensors
2 Summary(pl.UTF-8):      Termometr cyfrowy używający czujników Dallasa DS1820
3 Name:           digitemp
4 Version:        3.5.0
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:  72bda9c8a66b017aa969c19dedb3225b
10 Source1:        http://www.brianlane.com/linux/dthowto.txt
11 # Source1-md5:  313824e3f211c1983971913ce785f4f7
12 Source2:        DS9097_Schematic.gif
13 Patch0:         %{name}-opt.patch
14 URL:            http://www.digitemp.com/
15 BuildRequires:  libusb-devel
16 BuildRequires:  lockdev-devel
17 BuildRequires:  rpm-pythonprov
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 DigiTemp is a simple to use interface to the Dallas Semiconductor
22 DS18S20, DS1822, and DS18B20 1-wire digital temperature sensors. You
23 can use DigiTemp in a wide variety of applications, such as heating
24 control, process monitoring, weather station, indor/outdoor
25 temperature logging, etc. It includes a couple of useful Perl, Python
26 and RRD Tool scripts for crating graphs and dynamic signatures.
27
28 %description -l pl.UTF-8
29 DigiTemp jest prostym interfejsem dla cyfrowych 1-przewodowych
30 czujników temperatury: DS18S20, DS1822 i DS18B20 firmy Dallas
31 Semiconductor. DigiTemp może mieć wiele zastosowań, takich jak
32 kontrola ogrzewania, monitorowanie procesów, stacje meteorologiczne,
33 wewnętrzne/zewnętrzne monitorowanie temperatury. Pakiet zawiera kilka
34 użytecznych skryptów Perla, Pytona i RRD do tworzenia wykresów i
35 dynamicznych wpisów.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 cp %{SOURCE1} %{SOURCE2} .
42
43 %build
44 export OPT="%{rpmcflags}"
45 %{__make} ds9097
46 %{__make} ds9097u
47 %{__make} ds2490
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version},%{_mandir}/man1}
52
53 install digitemp_DS* $RPM_BUILD_ROOT%{_bindir}
54 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
55 cp -rf perl python rrdb $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CREDITS DS9097_S* FAQ README TODO dthowto.txt
63 %attr(755,root,root) %{_bindir}/*
64 %{_examplesdir}/%{name}-%{version}
65 %{_mandir}/man1/*
This page took 0.043557 seconds and 2 git commands to generate.