7f43ae5adb
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/biosdevname?expand=0&rev=11
99 lines
2.9 KiB
RPMSpec
99 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package biosdevname
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
|
|
Name: biosdevname
|
|
Version: 0.2.4
|
|
Release: 70
|
|
Summary: Udev helper for naming devices per BIOS names
|
|
Group: System/Base
|
|
License: GPLv2
|
|
Url: http://linux.dell.com/files/biosdevname/
|
|
# SMBIOS and PCI IRQ Routing Tables only exist on these arches. It's
|
|
# also likely that other arches don't expect the PCI bus to be sorted
|
|
# breadth-first, or of so, there haven't been any comments about that
|
|
# on LKML.
|
|
ExclusiveArch: %{ix86} x86_64 ia64
|
|
Source0: http://linux.dell.com/files/%{name}/%{name}-%{version}.tar.bz2
|
|
Source1: setup-biosdevname.sh
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pciutils-devel zlib-devel
|
|
# to figure out how to name the rules file
|
|
BuildRequires: udev
|
|
# because of mkinitrd_setup in %post and %postun
|
|
PreReq: mkinitrd
|
|
# for ownership of /etc/udev/rules.d
|
|
Requires: udev
|
|
Patch0: %{name}-delete-unused-function.diff
|
|
Patch1: %{name}-policy-all_names.diff
|
|
Patch2: biosdevname-0.2.4-wronglinking.patch
|
|
|
|
%description
|
|
biosdevname in its simplest form takes an kernel name name as an
|
|
argument, and returns the BIOS-given name it "should" be. This is
|
|
necessary on systems where the BIOS name for a given device (e.g. the
|
|
label on the chassis is "Gb1") doesn't map directly and obviously to
|
|
the kernel name (e.g. eth0).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Matt Domsch <Matt_Domsch@dell.com>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
# this is a udev rule, so it needs to live in / rather than /usr
|
|
%configure --disable-rpath --libdir=/%{_lib} --prefix=/ --bindir=/bin --sbindir=/sbin
|
|
make %{?_smp_mflags}
|
|
cp %{S:1} .
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
rm %{buildroot}/sbin/%{name}S || :
|
|
mkdir -p $RPM_BUILD_ROOT/lib/mkinitrd/scripts
|
|
install -m 0755 setup-biosdevname.sh \
|
|
$RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-biosdevname.sh
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING README
|
|
/sbin/%{name}
|
|
%config(noreplace) %{_sysconfdir}/udev/rules.d/*%{name}.rules
|
|
%{_mandir}/man1/*
|
|
/lib/mkinitrd/scripts/setup-biosdevname.sh
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
mkinitrd_setup
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
mkinitrd_setup
|
|
|
|
%changelog
|