Accepting request 294294 from home:pluskalm:branches:Base:System

- Use url for source
- Cleanup spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/294294
OBS-URL: https://build.opensuse.org/package/show/Base:System/biosdevname?expand=0&rev=48
This commit is contained in:
Marcus Meissner 2015-04-09 08:04:58 +00:00 committed by Git OBS Bridge
parent 546512e1ee
commit bc40ac0526
4 changed files with 28 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a295b8d876bb0d75be1b575c414197c629ef132c00b386e2226a7b6324f0bf51
size 160908

3
biosdevname-0.6.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b43580589a3f40afc836afbff9bcd837224c710b75a4d0b576f2e4d44ec158cc
size 195604

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 3 08:56:16 UTC 2015 - mpluskal@suse.com
- Use url for source
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Sat Feb 21 22:49:47 UTC 2015 - meissner@suse.com

View File

@ -16,6 +16,7 @@
#
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
Name: biosdevname
Version: 0.6.1
Release: 0
@ -23,30 +24,28 @@ Summary: Udev helper for naming devices per BIOS names
License: GPL-2.0
Group: System/Base
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
Source0: %{name}-%{version}.tar.bz2
Source0: http://linux.dell.com/files/biosdevname/biosdevname-%{version}/%{name}-%{version}.tar.gz
Patch1: ignore-broken-BIOSes
Patch2: whitelist-dell
Patch3: udev-rule-path.patch
Patch4: biosdevname-pic.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
# to figure out how to name/location of the rules file
BuildRequires: libudev-devel
BuildRequires: pciutils-devel
BuildRequires: pkgconfig
BuildRequires: sed
BuildRequires: zlib-devel
# to figure out how to name/location of the rules file
BuildRequires: libudev-devel
BuildRequires: suse-module-tools
BuildRequires: zlib-devel
# for ownership of /usr/lib/udev/rules.d
Requires: udev
Supplements: modalias(dmi:*svnDell*)
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# 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
%description
biosdevname in its simplest form takes an kernel name name as an
@ -67,12 +66,16 @@ You can enable/disable usage of biosdevname with boot option
%build
sed -i -e 's#@@BIOSDEVNAME_RULEDEST@@#'%{_udevrulesdir}'/71-biosdevname.rules#' configure.ac
autoreconf
%configure --disable-rpath --prefix=/ --bindir=/bin --sbindir=/sbin
autoreconf -fi
%configure \
--disable-rpath \
--prefix=/ \
--bindir=/bin \
--sbindir=/sbin
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm %{buildroot}/sbin/%{name}S || :
%files
@ -87,8 +90,7 @@ rm %{buildroot}/sbin/%{name}S || :
/sbin/ldconfig
%{?regenerate_initrd_post}
%postun
/sbin/ldconfig
%postun -p /sbin/ldconfig
%posttrans
%{?regenerate_initrd_posttrans}