# drivers that we ship; to be synced with staging-kmod.spec %global stgdrvs AGNX ASUS_OLED EPL ET131X HECI LINE6_USB RT2860 RT2870 RT3070 RTL8187SE SLICOSS W35UND PRISM2_USB VIDEO_GO7007 Name: staging-kmod-addons Version: 2.6.30.8 Release: 2%{?dist} Summary: Documentation and shared parts for the kmod-staging packages Group: System Environment/Kernel License: GPLv2 URL: http://www.kernel.org/ # use the script from Source1 to create this archive; call it like this: # bash $(rpm --eval '%{_sourcedir}')/create-linux-staging-tarball.sh 2.6.30.8 Source0: linux-staging-%{version}.tar.bz2 Source1: create-linux-staging-tarball.sh Provides: staging-kmod-common = %{version}-%{release} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Documentation for some of the kernel modules from linux-staging. %prep %setup -q -n linux-staging-%{version} # docs only for drivers that we ship mkdir .doc for driver in %{stgdrvs} ; do subdirectory="$(grep ${driver} drivers/staging/Makefile | awk '{print $3}')" for file in TODO README ; do if [[ -e "drivers/staging/${subdirectory}${file}" ]] ; then cp -l "drivers/staging/${subdirectory}${file}" .doc/${subdirectory%%/}-$(basename ${subdirectory}${file}) fi done done %build echo "Nothing to build" %install rm -rf $RPM_BUILD_ROOT; mkdir $RPM_BUILD_ROOT echo "Nothing to install" %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING .doc/* %changelog * Fri Oct 23 2009 Thorsten Leemhuis - 2.6.30.8-2 - enable VIDEO_GO7007 * Tue Oct 20 2009 Thorsten Leemhuis - 2.6.30.8-1 - initial package