File netdiag.spec of Package netdiag
#
# spec file for package netdiag (Version 20060324)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: netdiag
Version: 20060324
Release: 104
#
License: GPL v2 or later
Group: Productivity/Networking/Diagnostic
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#
Url: http://www.scyld.com/ethercard_diag.html
Source0: ftp://www.scyld.com/pub/netdiag/netdiag.tar.bz2
Patch0: netdiag-20060315_atlantic_multiline_string.diff
Patch1: netdiag-20060315_optflags.diff
Patch2: netdiag-20060315_tulip-diag_unitialized.diff
Patch3: netdiag-20060315_e21_pointer_size.patch
Patch4: netdiag-20060324_array_bounds.patch
Patch5: netdiag-20060324_signedness_warnings.patch
Patch6: netdiag.unaligned.patch
#
Summary: Hardware Level Diagnostic Tool
ExclusiveArch: %ix86
%description
Enables hardware level diagnostics without booting DOS.
Authors:
--------
becker@cesdis.gsfc.nasa.gov
%prep
%setup -n netdiag
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6 -p1
%build
%{__make} -C diag OPTFLAGS="%{optflags} -fno-strict-aliasing" most
%{__make} -C isa-diag OPTFLAGS="%{optflags} -fno-strict-aliasing" all
%install
%{__install} -Dd -m 0755 %{buildroot}{%{_sbindir},%{_mandir}/man8}
%{__make} -C diag install PREFIX=%{buildroot} MANDIR='$(PREFIX)%{_mandir}'
%{__make} -C isa-diag install instdir=%{buildroot}%{_sbindir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_sbindir}/3c515-diag
%{_sbindir}/3c5x9setup
%{_sbindir}/alta-diag
%{_sbindir}/at1700-diag
%{_sbindir}/atlantic
%{_sbindir}/atp-diag
%{_sbindir}/e21
%{_sbindir}/eepro100-diag
%{_sbindir}/eexpress
%{_sbindir}/epic-diag
%{_sbindir}/ether-wake
%{_sbindir}/hp+
%{_sbindir}/mii-diag
%{_sbindir}/myson-diag
%{_sbindir}/natsemi-diag
%{_sbindir}/ne2k-diag
%{_sbindir}/ne2k-pci-diag
%{_sbindir}/ns820-diag
%{_sbindir}/pci-config
%{_sbindir}/pcnet-diag
%{_sbindir}/rtl8139-diag
%{_sbindir}/starfire-diag
%{_sbindir}/tulip-diag
%{_sbindir}/via-diag
%{_sbindir}/vortex-diag
%{_sbindir}/winbond-diag
%{_sbindir}/yellowfin-diag
%{_sbindir}/hp100vg-diag
%{_mandir}/man8/etherwake.8.gz
%{_mandir}/man8/netdiag.8.gz
%{_mandir}/man8/mii-diag.8.gz
%changelog
* Wed Aug 13 2008 ro@suse.de
- add ExclusiveArch
* Fri Aug 10 2007 olh@suse.de
- remove inclusion of asm/unaligned.h
* Fri Feb 16 2007 mrueckert@suse.de
- added netdiag-20060324_array_bounds.patch (#245560,#238273)
- added netdiag-20060324_signedness_warnings.patch:
fix various other compiler warnings. mainly signedness warnings
and pointer/integer casts.
* Fri Aug 04 2006 mrueckert@suse.de
- resynced with latest files from ftp://www.scyld.com/pub/
* Fri Jun 30 2006 mrueckert@suse.de
- resynced with latest files from ftp://www.scyld.com/pub/
* Thu Mar 16 2006 mrueckert@suse.de
- update to latest files:
o replaces netdiag.dif -> the multistring fixes are upstream.
we only keep netdiag-20060315_atlantic_multiline_string.diff
as the tool disappeared upstream
o address in comments updated
o various fixes and additions
no upstream changelog
- added netdiag-20060315_tulip-diag_unitialized.diff
fixes unitialized variable. (#155947)
- netdiag-20060315_e21_pointer_size.patch
replaced "%%#x" with "%%p" and removed the unneeded cast
(int)*void
- replaced netdiag-optflags.diff with netdiag-20060315_optflags.diff
refreshed the patch for new makefiles
- list all files in %%files explicitly so we see added/removed
files
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 11 2005 mrueckert@suse.de
- Build with -fno-strict-aliasing.
- Fix some more compiler warnings.
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 19 2005 mrueckert@suse.de
- Fix a small compiler warning.
* Thu Jun 30 2005 mmj@suse.de
- use RPM_OPT_FLAGS
* Tue Jan 28 2003 nashif@suse.de
- made compile with gcc 3.3
* Tue Jan 15 2002 nashif@suse.de
- Update to latest revision
- added ISA cards
* Thu Mar 08 2001 nashif@suse.de
- Update to 2.1 and synced with scyld sources and spec
* Fri Feb 16 2001 nashif@suse.de
- Fixed to compile with new headers
* Mon Oct 02 2000 nashif@suse.de
- Updated to sources from ftp.scyld.com
- moved from /sbin to /usr/sbin
* Mon Jan 31 2000 ro@suse.de
- updated from cesdis and fixed to compile
- needs to be revisited
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Mar 09 1999 ro@suse.de
- changed neededforbuild: lx_old -lx_suse
* Mon Jan 11 1999 bs@suse.de
- fixed .changes
* Mon Nov 16 1998 ro@suse.de
- fixed specfile
- fixed includes in at1700, at1700-diag and mii-look for glibc-2.0
* Thu Sep 17 1998 ro@suse.de
- define _GNU_SOURCE when using getopt
- chose proper includes if compiling with GLIBC
- eeprom_delay seems to compile wrong with egcs/ needs to be looked at
* Fri Jul 24 1998 cep@suse.de
- create binaries