|
|
3ef2576 |
%global with_libusb 1
|
|
|
1672f9a |
|
|
|
1672f9a |
Summary: Dallas Semiconductor 1-wire device reading console application
|
|
|
1672f9a |
Name: digitemp
|
|
|
bc738ff |
Version: 3.6.0
|
|
|
4e1cbd7 |
Release: 18%{?dist}
|
|
|
b260ae7 |
License: GPLv2+
|
|
|
1672f9a |
Group: Applications/System
|
|
|
1672f9a |
URL: http://www.digitemp.com/
|
|
|
1672f9a |
Source0: http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz
|
|
|
1672f9a |
Source1: dthowto.txt
|
|
|
1672f9a |
Source2: DS9097_Schematic.gif
|
|
|
bc738ff |
Patch0: digitemp-3.6.0-cflags.patch
|
|
|
3560b55 |
Patch1: digitemp-3.6.0-format-security.patch
|
|
|
1672f9a |
%if %{with_libusb}
|
|
|
1672f9a |
BuildRequires: libusb-devel
|
|
|
1672f9a |
%endif
|
|
|
1672f9a |
|
|
|
1672f9a |
%description
|
|
|
1672f9a |
DigiTemp is a simple to use console application for reading values from
|
|
|
1672f9a |
Dallas Semiconductor 1-wire devices. Its main use is for reading temperature
|
|
|
1672f9a |
sensors, but it also reads counters and understands the 1-wire hubs with
|
|
|
1672f9a |
devices on different branches of the network. DigiTemp now supports the
|
|
|
1672f9a |
following 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20, DS1822,
|
|
|
1672f9a |
the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters, DS2409
|
|
|
1672f9a |
MicroLAN Coupler (used in 1-wire hubs) and the AAG TAI-8540 humidity sensor.
|
|
|
1672f9a |
|
|
|
1672f9a |
%prep
|
|
|
1672f9a |
%setup -q
|
|
|
1672f9a |
%patch0 -p1 -b .cflags
|
|
|
3560b55 |
%patch1 -p1 -b .format-security
|
|
|
bc738ff |
cp -pf %{SOURCE1} %{SOURCE2} .
|
|
|
1672f9a |
|
|
|
1672f9a |
%build
|
|
|
1672f9a |
make ds9097 %{?_smp_mflags}
|
|
|
48c3797 |
make clean
|
|
|
1672f9a |
make ds9097u %{?_smp_mflags}
|
|
|
1672f9a |
%if %{with_libusb}
|
|
|
48c3797 |
make clean
|
|
|
1672f9a |
make ds2490 %{?_smp_mflags}
|
|
|
1672f9a |
%endif
|
|
|
1672f9a |
|
|
|
1672f9a |
%install
|
|
|
1672f9a |
rm -rf $RPM_BUILD_ROOT
|
|
|
1672f9a |
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
|
|
|
1672f9a |
install -m 755 digitemp_DS9097 digitemp_DS9097U $RPM_BUILD_ROOT%{_bindir}
|
|
|
1672f9a |
%if %{with_libusb}
|
|
|
1672f9a |
install -m 755 digitemp_DS2490 $RPM_BUILD_ROOT%{_bindir}
|
|
|
1672f9a |
%endif
|
|
|
bc738ff |
install -p -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
|
|
|
1672f9a |
|
|
|
bc738ff |
# Convert everything to UTF-8
|
|
|
bc738ff |
iconv -f iso-8859-1 -t utf-8 -o ChangeLog.utf8 ChangeLog
|
|
|
bc738ff |
touch -c -r ChangeLog ChangeLog.utf8; mv -f ChangeLog.utf8 ChangeLog
|
|
|
1672f9a |
|
|
|
1672f9a |
%files
|
|
|
1672f9a |
%doc ChangeLog COPYING COPYRIGHT CREDITS FAQ README TODO
|
|
|
1672f9a |
%doc dthowto.txt DS9097_Schematic.gif
|
|
|
1672f9a |
%{_bindir}/%{name}*
|
|
|
1672f9a |
%{_mandir}/man1/%{name}.*
|
|
|
1672f9a |
|
|
|
1672f9a |
%changelog
|
|
|
4e1cbd7 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-18
|
|
|
4e1cbd7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4e1cbd7 |
|
|
|
41f0ee9 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-17
|
|
|
41f0ee9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
41f0ee9 |
|
|
|
ee95707 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-16
|
|
|
ee95707 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
ee95707 |
|
|
|
ff28aa0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-15
|
|
|
ff28aa0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ff28aa0 |
|
|
|
8050122 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-14
|
|
|
8050122 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8050122 |
|
|
|
ee05b7b |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-13
|
|
|
ee05b7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ee05b7b |
|
|
|
5b31551 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-12
|
|
|
5b31551 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
5b31551 |
|
|
|
010d275 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-11
|
|
|
010d275 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
010d275 |
|
|
|
3560b55 |
* Sun Dec 08 2013 Robert Scheck <robert@fedoraproject.org> 3.6.0-10
|
|
|
3560b55 |
- Solved build failures with "-Werror=format-security" (#1037039)
|
|
|
3560b55 |
|
|
|
e1c487f |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-9
|
|
|
e1c487f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e1c487f |
|
|
|
bf188eb |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-8
|
|
|
bf188eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
bf188eb |
|
|
|
48efb2e |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-7
|
|
|
48efb2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
48efb2e |
|
|
|
6538c0a |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-6
|
|
|
6538c0a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
6538c0a |
|
|
|
6035502 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-5
|
|
|
6035502 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
6035502 |
|
|
|
48c3797 |
* Thu Aug 13 2009 Robert Scheck <robert@fedoraproject.org> 3.6.0-4
|
|
|
48c3797 |
- Run 'make clean' after each make for working USB (#517284)
|
|
|
48c3797 |
|
|
|
eaf262b |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-3
|
|
|
eaf262b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
eaf262b |
|
|
|
b2b62fb |
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 3.6.0-2
|
|
|
b2b62fb |
- Rebuilt against gcc 4.4 and rpm 4.6
|
|
|
b2b62fb |
|
|
|
bc738ff |
* Sun Jan 25 2009 Robert Scheck <robert@fedoraproject.org> 3.6.0-1
|
|
|
bc738ff |
- Upgrade to 3.6.0
|
|
|
bc738ff |
|
|
|
adaf3f7 |
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 3.5.0-3
|
|
|
adaf3f7 |
- Rebuilt against gcc 4.3
|
|
|
adaf3f7 |
|
|
|
b260ae7 |
* Tue Aug 28 2007 Robert Scheck <robert@fedoraproject.org> 3.5.0-2
|
|
|
b260ae7 |
- Updated the license tag according to the guidelines
|
|
|
b260ae7 |
|
|
|
1672f9a |
* Sun Jan 07 2007 Robert Scheck <robert@fedoraproject.org> 3.5.0-1
|
|
|
1672f9a |
- Upgrade to 3.5.0
|
|
|
1672f9a |
- Initial spec file for Fedora and Red Hat Enterprise Linux
|