e61f04
Name:		biosdevname
e61f04
Version:	0.7.3
e61f04
Release:	2%{?dist}
e61f04
Summary:	Udev helper for naming devices per BIOS names
e61f04
e61f04
Group:		System Environment/Base
e61f04
License:	GPLv2
e61f04
URL:		http://linux.dell.com/files/%{name}
e61f04
# SMBIOS only exists on these arches.  It's also likely that other
e61f04
# arches don't expect the PCI bus to be sorted breadth-first, or of
e61f04
# so, there haven't been any comments about that on LKML.
e61f04
ExclusiveArch:	%{ix86} x86_64
e61f04
Source0:	http://linux.dell.com/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
e61f04
e61f04
BuildRequires:  autoconf
e61f04
BuildRequires:  automake
e61f04
BuildRequires:  pciutils-devel
e61f04
BuildRequires:  zlib-devel
e61f04
e61f04
Patch0001:      0001-Add-support-for-ExaNIC-network-cards-5.patch
e61f04
Patch0002:      0002-Prevent-infinite-recursion-in-dmidecode.c-smbios_set.patch
e61f04
Patch0003:      0003-Netronome-biosdevname-support-8.patch
e61f04
e61f04
Patch0999:      0999-Place-udev-rules-to-usr-lib.patch
e61f04
Patch1000:      1000-rules-disable-pirq-and-force-minimal-smbios-version.patch
e61f04
Patch1001:      1001-rules-disable-biosdevname-by-default.patch
e61f04
e61f04
%description
e61f04
biosdevname in its simplest form takes a kernel device name as an
e61f04
argument, and returns the BIOS-given name it "should" be.  This is necessary
e61f04
on systems where the BIOS name for a given device (e.g. the label on
e61f04
the chassis is "Gb1") doesn't map directly and obviously to the kernel
e61f04
name (e.g. eth0).
e61f04
e61f04
%prep
e61f04
%setup -q
e61f04
%autopatch -p1
e61f04
e61f04
%build
e61f04
autoreconf -fiv
e61f04
%configure --prefix=%{_prefix}
e61f04
make %{?_smp_mflags}
e61f04
e61f04
%install
e61f04
make install install-data DESTDIR=%{buildroot}
e61f04
e61f04
%files
e61f04
%defattr(-,root,root,-)
e61f04
%doc COPYING README
e61f04
%{_sbindir}/%{name}
e61f04
%{_prefix}/lib/udev/rules.d/*.rules
e61f04
%{_mandir}/man1/%{name}.1*
e61f04
e61f04
%changelog
e61f04
* Mon Dec 17 2018 Michal Sekletár <msekleta@redhat.com> - 0.7.3-2
e61f04
- make biosdevname optional even on Dell servers (#1623621)
e61f04
- prevent infinite recursion in smbios_setslot() (#1499458)
e61f04
- Netronome biosdevname support (#1649036)
e61f04
e61f04
* Fri Mar 23 2018 Michal Sekletar <msekleta@redhat.com> - 0.7.3-1
e61f04
- rebase to biosdevname 0.7.3
e61f04
e61f04
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e61f04
e61f04
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e61f04
e61f04
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e61f04
e61f04
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e61f04
e61f04
* Fri Jun 26 2015 Michal Sekletar <msekleta@redhat.com> - 0.6.2-1
e61f04
- Rebase to 0.6.2
e61f04
e61f04
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e61f04
e61f04
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e61f04
e61f04
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e61f04
e61f04
* Mon Sep 02 2013 Harald Hoyer <harald@redhat.com> 0.5.0-2
e61f04
- not only NAME KERNEL=="eth*", but every ethernet device
e61f04
e61f04
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-1
e61f04
- Updating the sources to 0.5.0 version. Following are the changes:
e61f04
- Change scan of SMBIOS slot <-> PCI methods, recurse to set SMBIOS slot field
e61f04
- Save off secondary bus of PCI device for PCI tree traversal
e61f04
- Add version number to biosdevname
e61f04
e61f04
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e61f04
e61f04
* Wed Nov 14 2012 Václav Pavlín <vpavlin@redhat.com> - 0.4.1-3
e61f04
- Source link update
e61f04
e61f04
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e61f04
e61f04
* Wed Jul 18 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.1-1
e61f04
- Fix autoconfig for Fedora systems
e61f04
- Make sure that vpd scan only runs on Dell systems, also blacklist Atheros
e61f04
  wireless cards which hang when vpd is read.
e61f04
- Add fixes to biosdevname to support cards that export multiple network
e61f04
  ports per PCI device (chelsio/mellanox).
e61f04
e61f04
e61f04
e61f04
* Thu May 3 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.0-1
e61f04
- Create detached signature
e61f04
- Fix man page to use new naming convention
e61f04
- Remove unused variables from Stephen Hemminger [shemminger@vyatta.com]
e61f04
- Use Physical device for slot numbering for embedded SR-IOV cards
e61f04
- Add tracking of ifindex to eths structure
e61f04
- Fix naming for add-in network adapters when SMBIOS version is invalid
e61f04
- Read VPD-R on Dell systems only
e61f04
e61f04
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-6
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e61f04
e61f04
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-5
e61f04
- Added automake as a build dependency
e61f04
e61f04
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-4
e61f04
- Added autoconf as a build dependency
e61f04
e61f04
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
e61f04
- Generating the configure script if it doesn't exist
e61f04
e61f04
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
e61f04
- Fixed the dir structure inside the archive
e61f04
e61f04
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
e61f04
- Updating the sources to 0.3.11 version. Following are the changes:
e61f04
- Fix man page for PCI slot naming
e61f04
- Fix clearing of buffer for NPAR/SRIOV naming
e61f04
- Add --nopirq and --smbios options to manpage.
e61f04
- Verify length of VPD on network device
e61f04
- Close file handle on sysfs read
e61f04
- Fix naming policy for NPAR devices.
e61f04
  Match each PCI device to its VPD 'physical' device to get correct index
e61f04
- Exclude  building on ia64 arch
e61f04
- Add support functions for determining PCIE slot
e61f04
- Scan full path to parent when getting PCIE slot
e61f04
- Fix NPAR naming for add-in cards
e61f04
- Don't display _vf suffix on NPAR devices with single function
e61f04
- Fix PCIe/PIRQ slot mapping
e61f04
e61f04
* Thu Apr 21 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.8-1
e61f04
- Add changes to parse VPD structure for device mapping on NPAR devices
e61f04
- Fix pathname
e61f04
- Cleanup and comment NPAR code
e61f04
- Fix debian packaging rules to regenerate configure script
e61f04
- Change pciX to pX for shortened names for PCI add-on devices
e61f04
- Fix manpage typo
e61f04
- Delete CR-LF in script
e61f04
- Change default signing key
e61f04
- Add command line arguments for checking SMBIOS version and ignore $PIRQ.
e61f04
e61f04
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
e61f04
- drop dump_pirq, suggest use biosdecode instead
e61f04
- don't use '#' in names, use 'p' instead, by popular demand
e61f04
- properly look for SMBIOS, then $PIR, then recurse
e61f04
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
e61f04
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
e61f04
- Add 'bonding' and 'openvswitch' to the virtual devices list
e61f04
- fail PIRQ lookups if device domain is not 0
e61f04
- Don't suggest names if running in a virtual machine (Xen, KVM,
e61f04
  VMware tested, but should work on others)
e61f04
- Typo fixes
e61f04
e61f04
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e61f04
e61f04
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
e61f04
- drop biosdevnameS, it's unused and fails to build on F15
e61f04
e61f04
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
e61f04
- install dump_pirq into /usr/sbin
e61f04
- fix udev rule, skip running if NAME is already set
e61f04
- move udev rule to /lib/udev/rules.d by default
e61f04
e61f04
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
e61f04
- drop unnecessary explicit version requirement on udev
e61f04
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
e61f04
- bugfix: don't assign names to unknown devices
e61f04
- bugfix: don't assign duplicate names
e61f04
e61f04
* Thu Dec  9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
e61f04
- add back in use of PCI IRQ Routing Table, if info is not provided by
e61f04
  sysfs or SMBIOS
e61f04
e61f04
* Thu Dec  2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
e61f04
- fix for multi-port cards with bridges
e61f04
- removal of code for seriously obsolete systems
e61f04
e61f04
* Sun Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
e61f04
- remove all policies except 'physical' and 'all_ethN'
e61f04
- handle SR-IOV devices properly
e61f04
e61f04
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
e61f04
- add --policy=loms, make it default
e61f04
- read index and labels from sysfs if available
e61f04
e61f04
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
e61f04
- fix mmap error checking
e61f04
e61f04
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e61f04
e61f04
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
e61f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e61f04
e61f04
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
e61f04
- use policy=all_names to find breakage
e61f04
e61f04
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
e61f04
- rebuild for gcc43
e61f04
e61f04
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
e61f04
- fix manpage entry in files
e61f04
e61f04
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
e61f04
- rebuild with Requires: udev > 115-3.20070920git
e61f04
e61f04
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
e61f04
- coordinate udev rules usage with udev maintainer
e61f04
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
e61f04
  line parsing.
e61f04
e61f04
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
e61f04
- eliminate libbiosdevname.*, pre and post scripts
e61f04
e61f04
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
e61f04
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
e61f04
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
e61f04
- build static
e61f04
e61f04
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
e61f04
- initial release