From 0db3e85583b8499a42016f5bfc20c249bffee7cf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:29:42 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.2.1-1mamba;Sun Jul 31 2016] --- README.md | 2 ++ gslx680-acpi.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 gslx680-acpi.spec diff --git a/README.md b/README.md index 121bee0..399da9b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # gslx680-acpi +ACPI/x86 compatible driver for Silead GSLx680 touchscreens. + diff --git a/gslx680-acpi.spec b/gslx680-acpi.spec new file mode 100644 index 0000000..dc70c17 --- /dev/null +++ b/gslx680-acpi.spec @@ -0,0 +1,56 @@ +Name: gslx680-acpi +Version: 0.2.1 +Release: 1mamba +Summary: ACPI/x86 compatible driver for Silead GSLx680 touchscreens +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/onitake/gslx680-acpi +## GITSOURCE https://github.com/onitake/gslx680-acpi.git v0.2.1 +Source: https://github.com/onitake/gslx680-acpi.git/v%{version}/gslx680-acpi-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires(post):kernelheaders +Requires(post):dkms +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +ACPI/x86 compatible driver for Silead GSLx680 touchscreens. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version} +cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}/ + +%check +for d in /lib/modules/4.*/build; do + kver=`echo $d|sed "s|/lib/modules/\(.*\)/build.*|\1|"` +%ifnarch arm + [ "${kver/arm}" != "${kver}" ] && continue +%endif kver=`echo $d|sed "s|/lib/modules/\(.*\)/build.*|\1|"` + [ "${kver:0:3}" == "4.0" -o "${kver:0:3}" == "4.1" ] && continue + rm -f *.ko + make all KVER=${kver} KSRC=$d %{_smp_mflags} + [ -e gslx680_ts_acpi.ko ] || exit + make clean KVER=${kver} KSRC=$d +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_prefix}/src/%{name}-%{version} +%{_prefix}/src/%{name}-%{version}/* +%doc LICENSE + +%changelog +* Sun Jul 31 2016 Silvan Calarco 0.2.1-1mamba +- package created using the webbuild interface