~ubuntu-branches/ubuntu/saucy/biosdevname/saucy-proposed

« back to all changes in this revision

Viewing changes to biosdevname.spec.suse

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-02-23 17:58:36 UTC
  • Revision ID: james.westby@ubuntu.com-20110223175836-4f0cbcno9zm0lmdu
Tags: upstream-0.3.7
ImportĀ upstreamĀ versionĀ 0.3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           biosdevname
 
2
Version:        0.3.7
 
3
Release:        1%{?dist}
 
4
Summary:        Udev helper for naming devices per BIOS names
 
5
 
 
6
Group:          System Environment/Base
 
7
License:        GPLv2
 
8
URL:            http://linux.dell.com/files/%{name}
 
9
# SMBIOS only exists on these arches.  It's also likely that other
 
10
# arches don't expect the PCI bus to be sorted breadth-first, or of
 
11
# so, there haven't been any comments about that on LKML.
 
12
ExclusiveArch:  %{ix86} x86_64 ia64
 
13
Source0:        http://linux.dell.com/files/%{name}/permalink/%{name}-%{version}.tar.gz
 
14
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
15
BuildRequires:  pciutils-devel, zlib-devel
 
16
# to figure out how to name the rules file
 
17
BuildRequires:  udev
 
18
# for ownership of /etc/udev/rules.d
 
19
Requires: udev
 
20
 
 
21
 
 
22
%description
 
23
biosdevname in its simplest form takes a kernel device name as an
 
24
argument, and returns the BIOS-given name it "should" be.  This is necessary
 
25
on systems where the BIOS name for a given device (e.g. the label on
 
26
the chassis is "Gb1") doesn't map directly and obviously to the kernel
 
27
name (e.g. eth0).
 
28
 
 
29
%prep
 
30
%setup -q
 
31
 
 
32
%build
 
33
# this is a udev rule, so it needs to live in / rather than /usr
 
34
%configure --disable-rpath --prefix=/ --sbindir=/sbin
 
35
make %{?_smp_mflags}
 
36
 
 
37
 
 
38
%install
 
39
rm -rf %{buildroot}
 
40
make install DESTDIR=%{buildroot}
 
41
 
 
42
%clean
 
43
rm -rf %{buildroot}
 
44
 
 
45
%files
 
46
%defattr(-,root,root,-)
 
47
%doc COPYING README
 
48
/sbin/%{name}
 
49
# hack for either /etc or /lib rules location
 
50
/*/udev/rules.d/*.rules
 
51
%{_mandir}/man1/%{name}.1*
 
52
 
 
53
 
 
54
%changelog
 
55
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
 
56
- drop dump_pirq, suggest use biosdecode instead
 
57
- don't use '#' in names, use 'p' instead, by popular demand
 
58
- properly look for SMBIOS, then $PIR, then recurse
 
59
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
 
60
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
 
61
- Add 'bonding' and 'openvswitch' to the virtual devices list
 
62
- fail PIRQ lookups if device domain is not 0
 
63
- Don't suggest names if running in a virtual machine (Xen, KVM,
 
64
  VMware tested, but should work on others)
 
65
- Typo fixes
 
66
 
 
67
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
 
68
- drop biosdevnameS, it's unused and fails to build on F15
 
69
 
 
70
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
 
71
- install dump_pirq into /usr/sbin
 
72
- fix udev rule, skip running if NAME is already set
 
73
- move udev rule to /lib/udev/rules.d by default
 
74
 
 
75
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
 
76
- drop unnecessary explicit version requirement on udev
 
77
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
 
78
- bugfix: don't assign names to unknown devices
 
79
- bugfix: don't assign duplicate names
 
80
 
 
81
* Thu Dec  9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
 
82
- add back in use of PCI IRQ Routing Table, if info is not provided by
 
83
  sysfs or SMBIOS
 
84
 
 
85
* Thu Dec  2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
 
86
- fix for multi-port cards with bridges
 
87
- removal of code for seriously obsolete systems
 
88
 
 
89
* Mon Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
 
90
- remove all policies except 'physical' and 'all_ethN'
 
91
- handle SR-IOV devices properly
 
92
 
 
93
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
 
94
- add --policy=loms, make it default
 
95
- read index and labels from sysfs if available
 
96
 
 
97
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
 
98
- fix mmap error checking
 
99
 
 
100
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
 
101
- coordinate udev rules usage with udev maintainer
 
102
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
 
103
  line parsing.
 
104
 
 
105
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
 
106
- eliminate libbiosdevname.*, pre and post scripts
 
107
 
 
108
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
 
109
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
 
110
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
 
111
- build static
 
112
 
 
113
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
 
114
- initial release