File pullin-bcm43xx-firmware.spec of Package pullin-bcm43xx-firmware

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           pullin-bcm43xx-firmware
Version:        1.0
Release:        0
License:        GPL-2.0
Summary:        download broadcom firmware files
Group:          Hardware/Wifi
Source0:        pullin-bcm43xx-firmware.service
Source1:        install_bcm43xx_firmware_wrapper
BuildRequires:  pciutils
BuildRequires:  systemd
Requires:       b43-fwcutter
Requires:       pciutils
Supplements:    b43-fwcutter
BuildArch:      noarch
Packager: Bernhard M. Wiedemann <dontwritehere@bmw.lsmod.de>

%description
download broadcom firmware files needed for bcm43xx WLAN chips

%prep

%build

%install
install -d %{buildroot}%{_prefix}/lib/systemd/system/
install -p -m 755 %{SOURCE0} %{buildroot}%{_prefix}/lib/systemd/system/
install -d %{buildroot}%{_sbindir}/
install -p -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/

%post
if lspci -nn|grep -q -i broadcom ; then
  systemctl enable %{name}.service
  systemctl start %{name}.service
fi

%files
%defattr(-, root, root, 0755)
%{_sbindir}/install_bcm43xx_firmware_wrapper
%{_prefix}/lib/systemd/system/%{name}.service

%changelog
openSUSE Build Service is sponsored by