]> git.pld-linux.org Git - packages/digitemp.git/blobdiff - digitemp.spec
- schematic of DS9097 pasive 1-wire adapter for digitemp
[packages/digitemp.git] / digitemp.spec
index c0caf049af1ccf8a94b79046ba66c3bfe6264c40..6e3b3df3ad1b3c38604d3a97ba748f50c395aa63 100644 (file)
@@ -2,17 +2,18 @@ Summary:      Digital thermometer using DS1820 1-wire sensors
 Summary(pl):   Termometr cyfrowy u¿ywaj±cy czujników Dallasa DS1820
 Name:          digitemp
 Version:       3.3.2
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Applications/System
 Source0:       http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz
 # Source0-md5: 0b6cfb36d198767836de54d9fb11bbdb
 Source1:       http://www.brianlane.com/linux/dthowto.txt
 # Source1-md5: 31f67f7dba103988d10478566599cb3e
+Source2:       DS9097_Schematic.gif
 Patch0:                %{name}-opt.patch
 URL:           http://www.digitemp.com/
 BuildRequires:  libusb-devel
-BuildRequires: lockdev
+BuildRequires: lockdev-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,7 +37,7 @@ dynamicznych wpis
 %setup -q
 %patch0 -p1
 
-cp %{SOURCE1} .
+cp %{SOURCE1} %{SOURCE2} .
 
 %build
 export OPT="%{rpmcflags}"
@@ -46,18 +47,18 @@ export OPT="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version},%{_mandir}/man1}
 
 install digitemp_DS* $RPM_BUILD_ROOT%{_bindir}
 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
-cp -rf perl python rrdb $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -rf perl python rrdb $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CREDITS FAQ README TODO dthowto.txt
+%doc CREDITS DS9097_S* FAQ README TODO dthowto.txt
 %attr(755,root,root) %{_bindir}/*
-%{_examplesdir}/*
+%{_examplesdir}/%{name}-%{version}
 %{_mandir}/man1/*
This page took 0.103811 seconds and 4 git commands to generate.