From 77b9584192d08de9e52a7a53734b343f52b546db Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:18:26 +0100 Subject: [PATCH] package created using the webbuild interface [release 20171122git-1mamba;Wed Nov 22 2017] --- README.md | 2 ++ linux-chwhi12.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 linux-chwhi12.spec diff --git a/README.md b/README.md index bf743d8..24c4ff6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # linux-chwhi12 +An effort to get ChuwiHi12 CHT tablet fully functional on linux. + diff --git a/linux-chwhi12.spec b/linux-chwhi12.spec new file mode 100644 index 0000000..fedaaf8 --- /dev/null +++ b/linux-chwhi12.spec @@ -0,0 +1,67 @@ +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 +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 20171122git-1mamba +- package created using the webbuild interface