added systemd post and preun scripts [release 20170127git-2mamba;Fri Mar 03 2017]
This commit is contained in:
parent
2648d91e34
commit
ba758734a8
@ -1,6 +1,6 @@
|
|||||||
Name: rtl8723bs_bt
|
Name: rtl8723bs_bt
|
||||||
Version: 20170127git
|
Version: 20170127git
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Bluetooth Code for RTL8723bs
|
Summary: Bluetooth Code for RTL8723bs
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -14,6 +14,7 @@ License: GPL
|
|||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
%systemd_requires
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -38,6 +39,19 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rtl8723bs_bt.service
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post rtl8723bs_bt
|
||||||
|
systemctl -q daemon-reload
|
||||||
|
:
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun rtl8723bs_bt
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun rtl8723bs_bt
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /lib/firmware/rtl_bt
|
%dir /lib/firmware/rtl_bt
|
||||||
@ -48,5 +62,8 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rtl8723bs_bt.service
|
|||||||
%{_sbindir}/rtk_hciattach
|
%{_sbindir}/rtk_hciattach
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 03 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-2mamba
|
||||||
|
- added systemd post and preun scripts
|
||||||
|
|
||||||
* Fri Jan 27 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-1mamba
|
* Fri Jan 27 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-1mamba
|
||||||
- package created using the webbuild interface
|
- package created using the webbuild interface
|
||||||
|
Loading…
Reference in New Issue
Block a user