File bcm20702a1-firmware.spec of Package bcm20702a1-firmware

#
# spec file for package bcm20702a1-firmware
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%define			buildversion 12.0.1.1012

Name:           bcm20702a1-firmware
Version:        12011012
Release:        0
Summary:        Firmware for many BCM20702A1 based devices
License:        MIT
Group:          Hardware/Wifi
Url:			http://www.catalog.update.microsoft.com/Search.aspx?q=Broadcom+bluetooth
#Url:            https://github.com/winterheart/broadcom-bt-firmware/blob/master/brcm

Source0:        %{name}-%{buildversion}.zip
Source1:        %{name}-rpmlintrc
BuildRequires:  kernel-firmware
Requires:       kernel-firmware
Requires(post): bluez
Requires(post): coreutils
Requires(post): unzip
Requires(post): wget
# Expand with more hardware if found
BuildRoot:      %{_tmppath}/%{name}-%{buildversion}-build
BuildArch:      noarch

%description
Firmware for many Broadcom BCM20702A1 based Bluetooth-Devices present in various Sticks and
Laptops ways over USB Bridge.

For Devices see:
/lib/firmware/brcm/DEVICES.broadcom_bcm20702

For more Instructions see:
/lib/firmware/brcm/README.broadcom_bcm20702
or
https://github.com/winterheart/broadcom-bt-firmware

%prep
%setup -q -n %{name}-%{buildversion}

%build


%install
mkdir -p %{buildroot}/lib/firmware/brcm/
cp -avf %{_builddir}/%{name}-%{buildversion}/brcm/* %{buildroot}/lib/firmware/brcm/
cp -avf %{_builddir}/%{name}-%{buildversion}/LICENSE.broadcom_bcm20702 %{buildroot}/lib/firmware/LICENSE.broadcom_bcm20702
cp -avf %{_builddir}/%{name}-%{buildversion}/LICENSE.MIT.txt %{buildroot}/lib/firmware/LICENSE.MIT.broadcom_bcm20702
cp -avf %{_builddir}/%{name}-%{buildversion}/DEVICES.md %{buildroot}/lib/firmware/brcm/DEVICES.broadcom_bcm20702
cp -avf %{_builddir}/%{name}-%{buildversion}/README.md %{buildroot}/lib/firmware//brcm/README.broadcom_bcm20702



%files
%files
%defattr(0644,root,root,0755)
/lib/firmware/brcm/BCM*
/lib/firmware/brcm/*.broadcom_bcm20702
/lib/firmware/LICENSE.broadcom_bcm20702
/lib/firmware/LICENSE.MIT.broadcom_bcm20702

%changelog
openSUSE Build Service is sponsored by