2024-01-05 21:12:33 +01:00
|
|
|
Name: chipone_ts
|
2024-01-05 21:12:34 +01:00
|
|
|
Version: 20190709git
|
2024-01-05 21:12:33 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 21:12:33 +01:00
|
|
|
Summary: Touchsreen kernel driver for Chuwi tablets
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/Dax89/chuwi-dev
|
|
|
|
## GITSOURCE https://github.com/Dax89/chuwi-dev.git master
|
2024-01-05 21:12:34 +01:00
|
|
|
#Source: https://github.com/JohnMH/chipone_ts.git/master/chipone_ts-%{version}.tar.bz2
|
2024-01-05 21:12:33 +01:00
|
|
|
#Source: https://github.com/Dax89/chuwi-dev.git/master/chuwi-dev-%{version}.tar.bz2
|
2024-01-05 21:12:34 +01:00
|
|
|
Source: https://github.com/rozetkinrobot/chipone_ts.git/master/chipone_ts-%{version}.tar.bz2
|
|
|
|
Source1: chipone_ts-calibration.conf
|
|
|
|
Source2: chipone_ts-autorotate.conf
|
2024-01-05 21:12:33 +01:00
|
|
|
Patch0: chipone_ts-20171121git-hi10.patch
|
2024-01-05 21:12:33 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 21:12:34 +01:00
|
|
|
#Requires(post): dkms
|
2024-01-05 21:12:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Touchsreen kernel driver for Chuwi tablets.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 21:12:33 +01:00
|
|
|
%setup -q
|
2024-01-05 21:12:33 +01:00
|
|
|
%patch0 -p1
|
2024-01-05 21:12:33 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 21:12:34 +01:00
|
|
|
:<< ___OBSOLETE
|
|
|
|
# Since 4.19 driver chipone_icn8505 is integrated in kernel and only needs firmware
|
2024-01-05 21:12:33 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
|
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}/
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_prefix}/src/%{name}-%{version}/orig_firmware
|
2024-01-05 21:12:33 +01:00
|
|
|
|
|
|
|
cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF
|
|
|
|
PACKAGE_NAME=%{name}
|
|
|
|
PACKAGE_VERSION=%{version}
|
|
|
|
MAKE="KCPPFLAGS=\"-DCONFIG_HI10=1\" KDIR=\"\${kernel_source_dir}\" make hi10"
|
|
|
|
CLEAN="make KSRC=\"\${kernel_source_dir}\" clean"
|
|
|
|
BUILT_MODULE_NAME=chipone_ts
|
|
|
|
BUILT_MODULE_LOCATION=.
|
|
|
|
DEST_MODULE_LOCATION=/kernel/drivers/input/touchscreen
|
|
|
|
REMAKE_INITRD=no
|
|
|
|
AUTOINSTALL=yes
|
|
|
|
_EOF
|
|
|
|
|
2024-01-05 21:12:34 +01:00
|
|
|
|
|
|
|
___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
|
2024-01-05 21:12:33 +01:00
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:12:34 +01:00
|
|
|
#% preun
|
|
|
|
## erase
|
|
|
|
#if [ $1 -ne 1 ]; then
|
|
|
|
# dkms remove -q -m %{name} -v %{version} --all
|
|
|
|
#fi
|
|
|
|
#:
|
2024-01-05 21:12:33 +01:00
|
|
|
|
2024-01-05 21:12:34 +01:00
|
|
|
#% post
|
|
|
|
#if [ $1 -ge 1 ]; then
|
|
|
|
# dkms add -q -m %{name} -v %{version}
|
|
|
|
# dkms install -q -m %{name} -v %{version} --force
|
|
|
|
#fi
|
|
|
|
#:
|
2024-01-05 21:12:33 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:12:34 +01:00
|
|
|
%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-autorotate.conf
|
|
|
|
%{_sysconfdir}/X11/xorg.conf.d/99-chipone_ts-calibration.conf.example
|
|
|
|
/lib/firmware/chipone/icn8505-HAMP0003.fw
|
|
|
|
#%dir %{_prefix}/src/%{name}-%{version}
|
|
|
|
#%{_prefix}/src/%{name}-%{version}/*
|
2024-01-05 21:12:33 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:12:34 +01:00
|
|
|
* Tue Jul 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 20190709git-1mamba
|
|
|
|
- update to 20190709git
|
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
* Tue Nov 21 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20171121git-1mamba
|
|
|
|
- update to 20171121git
|
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
* Tue Feb 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170125git-4mamba
|
|
|
|
- require dkms in post
|
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
* Fri Feb 24 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170125git-3mamba
|
|
|
|
- patch to increase IIC_RETRY_NUM to fix setting resolution on HI10
|
|
|
|
|
2024-01-05 21:12:33 +01:00
|
|
|
* Tue Jan 31 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170125git-2mamba
|
|
|
|
- add %preun and %post code for dkms support
|
|
|
|
|
|
|
|
* Wed Jan 25 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170125git-1mamba
|
|
|
|
- package created using the webbuild interface
|