update to 20190709git [release 20190709git-1mamba;Tue Jul 09 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 21:12:34 +01:00
parent 58ff24904d
commit a9a468d2e7
3 changed files with 39 additions and 20 deletions

View File

@ -0,0 +1,5 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "CHPN0001:00"
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection

View File

@ -1,5 +1,5 @@
Name: chipone_ts Name: chipone_ts
Version: 20171121git Version: 20190709git
Release: 1mamba Release: 1mamba
Summary: Touchsreen kernel driver for Chuwi tablets Summary: Touchsreen kernel driver for Chuwi tablets
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
@ -8,14 +8,16 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/Dax89/chuwi-dev URL: https://github.com/Dax89/chuwi-dev
## GITSOURCE https://github.com/Dax89/chuwi-dev.git master ## GITSOURCE https://github.com/Dax89/chuwi-dev.git master
Source: https://github.com/JohnMH/chipone_ts.git/master/chipone_ts-%{version}.tar.bz2 #Source: https://github.com/JohnMH/chipone_ts.git/master/chipone_ts-%{version}.tar.bz2
#Source: https://github.com/Dax89/chuwi-dev.git/master/chuwi-dev-%{version}.tar.bz2 #Source: https://github.com/Dax89/chuwi-dev.git/master/chuwi-dev-%{version}.tar.bz2
Source1: chipone_ts-caliration.conf Source: https://github.com/rozetkinrobot/chipone_ts.git/master/chipone_ts-%{version}.tar.bz2
Source1: chipone_ts-calibration.conf
Source2: chipone_ts-autorotate.conf
Patch0: chipone_ts-20171121git-hi10.patch Patch0: chipone_ts-20171121git-hi10.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires(post): dkms #Requires(post): dkms
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
@ -29,6 +31,8 @@ Touchsreen kernel driver for Chuwi tablets.
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
:<< ___OBSOLETE
# Since 4.19 driver chipone_icn8505 is integrated in kernel and only needs firmware
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version} install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}/ cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}/
@ -47,32 +51,42 @@ REMAKE_INITRD=no
AUTOINSTALL=yes AUTOINSTALL=yes
_EOF _EOF
install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-calibration.conf
___OBSOLETE
install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-calibration.conf.example
install -D -m0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-autorotate.conf
install -D -m0644 icn8505-HAMP0003.fw %{buildroot}/lib/firmware/chipone/icn8505-HAMP0003.fw
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun #% preun
# erase ## erase
if [ $1 -ne 1 ]; then #if [ $1 -ne 1 ]; then
dkms remove -q -m %{name} -v %{version} --all # dkms remove -q -m %{name} -v %{version} --all
fi #fi
: #:
%post #% post
if [ $1 -ge 1 ]; then #if [ $1 -ge 1 ]; then
dkms add -q -m %{name} -v %{version} # dkms add -q -m %{name} -v %{version}
dkms install -q -m %{name} -v %{version} --force # dkms install -q -m %{name} -v %{version} --force
fi #fi
: #:
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_prefix}/src/%{name}-%{version} %{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-autorotate.conf
%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-calibration.conf %{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-calibration.conf.example
%{_prefix}/src/%{name}-%{version}/* /lib/firmware/chipone/icn8505-HAMP0003.fw
#%dir %{_prefix}/src/%{name}-%{version}
#%{_prefix}/src/%{name}-%{version}/*
%changelog %changelog
* Tue Jul 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 20190709git-1mamba
- update to 20190709git
* Tue Nov 21 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20171121git-1mamba * Tue Nov 21 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20171121git-1mamba
- update to 20171121git - update to 20171121git