%define rel 2 %define subrel 1 Summary: Digital thermometer using DS1820 1-wire sensors Name: digitemp Version: 3.6.0 Release: %mkrel %{rel} License: GPLv2+ Group: Monitoring URL: http://www.digitemp.com/ Source0: http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz Source1: http://www.brianlane.com/linux/dthowto.txt Source2: DS9097_Schematic.gif Patch0: %{name}-opt.patch Patch1: %{name}-str_fmt.patch BuildRequires: libusb-devel #BuildRequires: lockdev-devel BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description DigiTemp is a simple to use interface to the Dallas Semiconductor DS18S20, DS1822, and DS18B20 1-wire digital temperature sensors. You can use DigiTemp in a wide variety of applications, such as heating control, process monitoring, weather station, indor/outdoor temperature logging, etc. It includes a couple of useful Perl, Python and RRD Tool scripts for crating graphs and dynamic signatures. %prep %setup -q %patch0 -p1 %patch1 -p1 cp %{SOURCE1} %{SOURCE2} . %build export OPT="%{optflags}" %make ds9097 %make clean %make ds9097u %make clean %make ds2490 %install rm -rf %{buildroot} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man1 install digitemp_DS* %{buildroot}%{_bindir}/ install %{name}.1 %{buildroot}%{_mandir}/man1/ %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc CREDITS DS9097_S* FAQ README TODO dthowto.txt perl python rrdb %attr(0755,root,root) %{_bindir}/* %{_mandir}/man1/* %changelog * Tue Nov 23 2010 Jani Välimaa <wally@mandriva.org> 3.6.0-2.1mdv2010.1 + Revision: 600246 - run 'make clean' after each make to build all binaries correctly (fedora bug #517284) * Sun Jan 17 2010 Oden Eriksson <oeriksson@mandriva.com> 3.6.0-2mdv2010.1 + Revision: 492813 - rebuild * Mon Jun 01 2009 Jani Välimaa <wally@mandriva.org> 3.6.0-1mdv2010.0 + Revision: 381921 - New version 3.6.0 - Added format-security patch * Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 3.5.0-4mdv2009.0 + Revision: 244336 - rebuild * Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 3.5.0-2mdv2008.1 + Revision: 136365 - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Tue Sep 04 2007 Oden Eriksson <oeriksson@mandriva.com> 3.5.0-2mdv2008.0 + Revision: 79232 - rebuild * Tue Jan 02 2007 Oden Eriksson <oeriksson@mandriva.com> 3.5.0-1mdv2007.0 + Revision: 103115 - 3.5.0 * Fri Dec 22 2006 Oden Eriksson <oeriksson@mandriva.com> 3.4.0-1mdv2007.1 + Revision: 101640 - Import digitemp * Thu Jul 27 2006 Oden Eriksson <oeriksson@mandriva.com> 3.4.0-1mdk - initial Mandriva package (PLD import)