This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
brcm_patchram/brcm_patchram.spec

81 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: brcm_patchram
Version: 20130728git
Release: 4mamba
Summary: Patchram files downloader for Broadcom Bluetooth based silicon and combo chips
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://code.google.com/p/broadcom-bluetooth
Source: https://code.google.com/p/broadcom-bluetooth.git/master/broadcom-bluetooth-%{version}.tar.bz2
#Source: brcm_patchram-%{version}.tar.xz
Source1: brcm-patchram-init
Source2: brcm-patchram-sysconfig
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbluetooth-devel
## AUTOBUILDREQ-END
Requires: rfkill
Requires: broadcom-firmware
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This service downloads a patchram files in the HCD format to Broadcom Bluetooth based silicon and combo chips and and other utility functions.
%prep
%setup -q -n broadcom-bluetooth-%{version}
%build
%make
%install
install -D -m0755 brcm_patchram_plus %{buildroot}%{_sbindir}/brcm_patchram_plus
install -D -m0755 brcm_patchram_plus_usb %{buildroot}%{_sbindir}/brcm_patchram_plus_usb
install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/brcm-patchram
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/brcm-patchram
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add brcm-patchram
service brcm-patchram stop
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# uninstall
service brcm-patchram stop
/sbin/chkconfig --del brcm-patchram
fi
exit 0
%files
%defattr(-,root,root)
%{_initrddir}/brcm-patchram
%config %{_sysconfdir}/sysconfig/brcm-patchram
%{_sbindir}/brcm_patchram_plus
%{_sbindir}/brcm_patchram_plus_usb
%changelog
* Tue Sep 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130728git-4mamba
- initscript: update to fix stop timeout with systemd
* Mon Jul 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130728git-3mamba
- require broadcom-firmware
* Mon Jul 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130728git-2mamba
- added support for Samsung Galaxy Note 10.1
* Sun Jul 28 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130728git-1mamba
- update to 20130728git
* Mon Mar 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2-1mamba
- update to 0.2
* Sun Nov 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1-1mamba
- package created by autospec