]> git.pld-linux.org Git - packages/acerhk.git/blobdiff - acerhk.spec
- added patches against newer kernels, rel. 50
[packages/acerhk.git] / acerhk.spec
index 6c7e5e77486da34ced7ab1e4eab846c94c4e6a35..2633bbee68bcba20f58fe8c4e172a59353fa305a 100644 (file)
@@ -2,7 +2,7 @@
 # Conditional build:
 %bcond_without dist_kernel     # without distribution kernel
 #
-%define                rel     31
+%define                rel     50
 Summary:       Linux driver for Acer notebook special Hot Keys
 Summary(pl.UTF-8):     Sterownik dla Linuksa obsługujący specjalne klawisze w notebookach Acer
 Name:          acerhk
@@ -13,12 +13,15 @@ Group:              Base/Kernel
 Source0:       http://www.cakey.de/acerhk/archives/%{name}-%{version}.tar.bz2
 # Source0-md5: 551285657c8ba338f23595af257d21df
 Patch0:                %{name}-2.6.24.patch
+Patch1:                %{name}-2.6.30.patch
+Patch2:                https://launchpadlibrarian.net/63115172/acerhk-source_lp_bug555828-2.6.37.patch
+Patch3:                https://launchpadlibrarian.net/71840570/acerhk-source_lp_bug555828-2.6.38.patch
 URL:           http://www.cakey.de/acerhk/
 BuildRequires: %{kgcc_package}
 %{?with_dist_kernel:BuildRequires:     kernel-module-build >= 3:2.6.20.2}
 BuildRequires: rpmbuild(macros) >= 1.379
 Requires(post,postun): /sbin/depmod
-ExclusiveArch: %{ix86}
+ExclusiveArch: %{x8664} %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define        modules acerhk
@@ -48,6 +51,14 @@ notebookach Acer.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+cat > Makefile << EOF
+obj-m += acerhk.o
+%{?debug:CFLAGS += -DCONFIG_MODULE_NAME_DEBUG=1}
+EOF
 
 %build
 %build_kernel_modules -m %{modules}
This page took 0.061088 seconds and 4 git commands to generate.