Blame SPECS/biosdevname.spec

247641
Name:		biosdevname
247641
Version:	0.5.0
8ebaa5
Release:	10%{?dist}
247641
Summary:	Udev helper for naming devices per BIOS names
247641
247641
Group:		System Environment/Base
247641
License:	GPLv2
247641
URL:		http://linux.dell.com/files/%{name}
247641
# SMBIOS only exists on these arches.  It's also likely that other
247641
# arches don't expect the PCI bus to be sorted breadth-first, or of
247641
# so, there haven't been any comments about that on LKML.
247641
ExclusiveArch:	%{ix86} x86_64 ia64
247641
Source0:	http://linux.dell.com/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
247641
247641
BuildRequires:	pciutils-devel, zlib-devel
247641
# to figure out how to name the rules file
247641
BuildRequires:	udev
247641
#To generate the configure script
247641
BuildRequires:	autoconf
247641
BuildRequires:	automake
247641
# for ownership of /etc/udev/rules.d
247641
Requires: udev
247641
247641
Patch0: 0001-Update-help-and-man-to-cover-all-possible-arguments.patch
247641
Patch1: biosdevname-0.5.0-rules.patch
247641
Patch2: 0001-CoverityScan-update.patch
247641
Patch3: 0001-Fix-regression-introduced-by-the-addslot-function.patch
247641
Patch4: 0001-Place-udev-rules-to-usr-lib.patch
8ebaa5
Patch5: 0001-Stop-reading-VPD-data-once-VPD-R-section-has-been-re.patch
8ebaa5
Patch6: 0001-Scan-for-devid-for-Mellanox-cards.patch
8ebaa5
Patch7: 0001-Add-port-structure-to-PCI-device-handle-multiple-por.patch
8ebaa5
Patch8: 0001-Cleanup-SRIOV-scanner-code.patch
8ebaa5
Patch9: 0001-Add-port-code-for-Mellanox-driver.patch
247641
247641
%description
247641
biosdevname in its simplest form takes a kernel device name as an
247641
argument, and returns the BIOS-given name it "should" be.  This is necessary
247641
on systems where the BIOS name for a given device (e.g. the label on
247641
the chassis is "Gb1") doesn't map directly and obviously to the kernel
247641
name (e.g. eth0).
247641
247641
%prep
247641
%setup -q
247641
%patch0 -p1
247641
%patch1 -p1
247641
%patch2 -p1
247641
%patch3 -p1
247641
%patch4 -p1
8ebaa5
%patch5 -p1
8ebaa5
%patch6 -p1
8ebaa5
%patch7 -p1
8ebaa5
%patch8 -p1
8ebaa5
%patch9 -p1
247641
247641
247641
%build
247641
autoreconf -iv
247641
#If configure script doesn't exist generate it with autogen script
247641
[ -e ./configure ] || ./autogen.sh --no-configure
247641
247641
# this is a udev rule, so it needs to live in / rather than /usr
247641
%configure --disable-rpath --prefix=%{_prefix} --sbindir=%{_prefix}/sbin
247641
make %{?_smp_mflags}
247641
247641
247641
%install
247641
make install install-data DESTDIR=%{buildroot}
247641
247641
%files
247641
%defattr(-,root,root,-)
247641
%doc COPYING README
247641
%{_prefix}/sbin/%{name}
247641
# hack for either /etc or /lib rules location
247641
%{_prefix}/lib/udev/rules.d/*.rules
247641
%{_mandir}/man1/%{name}.1*
247641
247641
247641
%changelog
8ebaa5
* Tue Mar 18 2014 Michal Sekletar <msekleta@redhat.com> - 0.5.0-10
8ebaa5
- rename Mellanox card correctly (#1067135)
8ebaa5
8ebaa5
* Thu Mar 06 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-9
8ebaa5
- stop reading VPD data once VPD-R section has been read (#1054414)
8ebaa5
8ebaa5
* Fri Feb 28 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-8
8ebaa5
- remove KERNEL!="eth*", GOTO="netdevicename_end" (#1069817)
8ebaa5
8ebaa5
* Mon Feb 10 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-7
8ebaa5
- Change 71-biosdevname.rules to match rhel6 setup (#1054170)
8ebaa5
8ebaa5
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.0-6
8ebaa5
- Mass rebuild 2013-12-27
8ebaa5
247641
* Fri Sep 20 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-5
247641
- Fix regression introduced by the addslot function
247641
- CoverityScan fixes
247641
- Place udev rules to /usr/lib rather than /lib
247641
Resolves: rhbz#1008899
247641
247641
* Mon Sep 02 2013 Harald Hoyer <harald@redhat.com> 0.5.0-3
247641
- not only NAME KERNEL=="eth*", but every ethernet device
247641
247641
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-2
247641
- Update help and man pages to cover all possible arguments
247641
Resolves: rhbz#949021
247641
247641
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-1
247641
- Updating the sources to 0.5.0 version. Following are the changes:
247641
- Change scan of SMBIOS slot <-> PCI methods, recurse to set SMBIOS slot field
247641
- Save off secondary bus of PCI device for PCI tree traversal
247641
- Add version number to biosdevname
247641
247641
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
247641
247641
* Wed Nov 14 2012 Václav Pavlín <vpavlin@redhat.com> - 0.4.1-3
247641
- Source link update
247641
247641
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
247641
247641
* Wed Jul 18 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.1-1
247641
- Fix autoconfig for Fedora systems
247641
- Make sure that vpd scan only runs on Dell systems, also blacklist Atheros
247641
  wireless cards which hang when vpd is read.
247641
- Add fixes to biosdevname to support cards that export multiple network
247641
  ports per PCI device (chelsio/mellanox).
247641
247641
247641
247641
* Thu May 3 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.0-1
247641
- Create detached signature
247641
- Fix man page to use new naming convention
247641
- Remove unused variables from Stephen Hemminger [shemminger@vyatta.com]
247641
- Use Physical device for slot numbering for embedded SR-IOV cards
247641
- Add tracking of ifindex to eths structure
247641
- Fix naming for add-in network adapters when SMBIOS version is invalid
247641
- Read VPD-R on Dell systems only
247641
247641
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-6
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
247641
247641
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-5
247641
- Added automake as a build dependency
247641
247641
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-4
247641
- Added autoconf as a build dependency
247641
247641
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
247641
- Generating the configure script if it doesn't exist
247641
247641
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
247641
- Fixed the dir structure inside the archive
247641
247641
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
247641
- Updating the sources to 0.3.11 version. Following are the changes:
247641
- Fix man page for PCI slot naming
247641
- Fix clearing of buffer for NPAR/SRIOV naming
247641
- Add --nopirq and --smbios options to manpage.
247641
- Verify length of VPD on network device
247641
- Close file handle on sysfs read
247641
- Fix naming policy for NPAR devices.
247641
  Match each PCI device to its VPD 'physical' device to get correct index
247641
- Exclude  building on ia64 arch
247641
- Add support functions for determining PCIE slot
247641
- Scan full path to parent when getting PCIE slot
247641
- Fix NPAR naming for add-in cards
247641
- Don't display _vf suffix on NPAR devices with single function
247641
- Fix PCIe/PIRQ slot mapping
247641
247641
* Thu Apr 21 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.8-1
247641
- Add changes to parse VPD structure for device mapping on NPAR devices
247641
- Fix pathname
247641
- Cleanup and comment NPAR code
247641
- Fix debian packaging rules to regenerate configure script
247641
- Change pciX to pX for shortened names for PCI add-on devices
247641
- Fix manpage typo
247641
- Delete CR-LF in script
247641
- Change default signing key
247641
- Add command line arguments for checking SMBIOS version and ignore $PIRQ.
247641
247641
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
247641
- drop dump_pirq, suggest use biosdecode instead
247641
- don't use '#' in names, use 'p' instead, by popular demand
247641
- properly look for SMBIOS, then $PIR, then recurse
247641
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
247641
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
247641
- Add 'bonding' and 'openvswitch' to the virtual devices list
247641
- fail PIRQ lookups if device domain is not 0
247641
- Don't suggest names if running in a virtual machine (Xen, KVM,
247641
  VMware tested, but should work on others)
247641
- Typo fixes
247641
247641
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
247641
247641
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
247641
- drop biosdevnameS, it's unused and fails to build on F15
247641
247641
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
247641
- install dump_pirq into /usr/sbin
247641
- fix udev rule, skip running if NAME is already set
247641
- move udev rule to /lib/udev/rules.d by default
247641
247641
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
247641
- drop unnecessary explicit version requirement on udev
247641
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
247641
- bugfix: don't assign names to unknown devices
247641
- bugfix: don't assign duplicate names
247641
247641
* Thu Dec  9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
247641
- add back in use of PCI IRQ Routing Table, if info is not provided by
247641
  sysfs or SMBIOS
247641
247641
* Thu Dec  2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
247641
- fix for multi-port cards with bridges
247641
- removal of code for seriously obsolete systems
247641
247641
* Sun Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
247641
- remove all policies except 'physical' and 'all_ethN'
247641
- handle SR-IOV devices properly
247641
247641
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
247641
- add --policy=loms, make it default
247641
- read index and labels from sysfs if available
247641
247641
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
247641
- fix mmap error checking
247641
247641
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
247641
247641
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
247641
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
247641
247641
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
247641
- use policy=all_names to find breakage
247641
247641
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
247641
- rebuild for gcc43
247641
247641
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
247641
- fix manpage entry in files
247641
 
247641
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
247641
- rebuild with Requires: udev > 115-3.20070920git
247641
247641
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
247641
- coordinate udev rules usage with udev maintainer
247641
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
247641
  line parsing.
247641
247641
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
247641
- eliminate libbiosdevname.*, pre and post scripts
247641
247641
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
247641
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
247641
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
247641
- build static
247641
247641
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
247641
- initial release