68 lines
1.9 KiB
RPMSpec
68 lines
1.9 KiB
RPMSpec
|
Name: linux-chwhi12
|
||
|
Version: 20171122git
|
||
|
Release: 1mamba
|
||
|
Summary: An effort to get ChuwiHi12 CHT tablet fully functional on linux
|
||
|
Group: System/Kernel and hardware
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/kernins/linux-chwhi12
|
||
|
Source: https://github.com/kernins/linux-chwhi12.git/master/linux-chwhi12-%{version}.tar.bz2
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
An effort to get ChuwiHi12 CHT tablet fully functional on linux.
|
||
|
|
||
|
%package -n alsa-ucm-bytcht-es8316
|
||
|
Group: System/Libraries
|
||
|
Summary: UCM configuration for Bytrail/Cherrytrail ES8316 sound codec
|
||
|
|
||
|
%description -n alsa-ucm-bytcht-es8316
|
||
|
UCM configuration for Bytrail/Cherrytrail ES8316 sound codec.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n linux-chwhi12-%{version}
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -D -m0644 configs/audio/asound.conf %{buildroot}%{_sysconfdir}/asound.conf.bytcht-es8316
|
||
|
|
||
|
install -d -m0755 %{buildroot}%{_datadir}/alsa/ucm
|
||
|
cp -a configs/audio/ucm/bytcht-es8316 %{buildroot}%{_datadir}/alsa/ucm/
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
/sbin/ldconfig
|
||
|
if [ $1 -ge 1 ]; then
|
||
|
/usr/sbin/alternatives --install \
|
||
|
/etc/asound.conf asound.conf /etc/asound.conf.bytcht-es8316 15
|
||
|
/usr/sbin/alternatives --auto asound.conf
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%postun
|
||
|
/sbin/ldconfig
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
/usr/sbin/update-alternatives --remove asound.conf /etc/asound.conf.bytcht-es8316
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%files -n alsa-ucm-bytcht-es8316
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/asound.conf.bytcht-es8316
|
||
|
%dir %{_datadir}/alsa/ucm/bytcht-es8316
|
||
|
%{_datadir}/alsa/ucm/bytcht-es8316/*
|
||
|
|
||
|
%changelog
|
||
|
* Wed Nov 22 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20171122git-1mamba
|
||
|
- package created using the webbuild interface
|