#
-# Replace MODULE_NAME with real module name and MODULE_DIR
-# with required directory name.
+# Replace:
+# MODULE_NAME with real module name
+# MODULE_DIR with required directory name
+# PACKAGE_NAME with package name
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%if %{without kernel}
%undefine with_dist_kernel
%endif
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine with_userspace
+%endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define _enable_debug_packages 0
+%endif
#
# main package.
#
%define rel 0.1
+%define pname PACKAGE_NAME
Summary: -
Summary(pl.UTF-8): -
Name: -
Epoch: 0
#License: - (enter GPL/LGPL/BSD/BSD-like/other license name here)
Group: -
-Source0: %{name}-%{version}.tar.gz
+Source0: %{pname}-%{version}.tar.gz
# Source0-md5: -
#Source1: -
# Source1-md5: -
-#Patch0: %{name}-what.patch
+#Patch0: %{pname}-what.patch
#URL: -
%if %{with kernel}
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
Ten pakiet zawiera moduł jądra Linuksa.
%prep
+%setup -q -n %{pname}-%{version}
+
# prepare makefile:
cat > path/to/dir/Makefile << EOF