Author: thl
Update of /cvs/free/rpms/staging-kmod-addons/F-11
In directory se02.es.rpmfusion.net:/tmp/cvs-serv14733
Modified Files:
.cvsignore sources
Added Files:
create-linux-staging-tarball.sh staging-kmod-addons.spec
Log Message:
import, as reviewed in #878
--- NEW FILE create-linux-staging-tarball.sh ---
#! /bin/bash
if [[ ! "${1}" ]]; then
echo "Please give version number as parameter"
exit 1
fi
tmpdir="$(mktemp -td $(basename ${0}).XXXXXXXXX)"
#targetdir="${PWD}"
targetdir="$(rpm --eval %{_sourcedir})"
# fixme:
# * error handling completely missing
# * remove tmpdir on abortion
pushd ${tmpdir}/ > /dev/null
echo downloading
wget --quiet
http://www.kernel.org/pub/linux/kernel/v2.6/linux-${1}.tar.bz2
echo extracing
tar -xjf linux-${1}.tar.bz2 linux-${1}/COPYING linux-${1}/drivers/staging/
echo creating archive
mv linux-${1} linux-staging-${1}
tar -cjf ${targetdir}/linux-staging-${1}.tar.bz2 linux-staging-${1}/COPYING
linux-staging-${1}/drivers/staging/
rm -rf linux-${1}.tar.bz2 linux-staging-${1}/
popd > /dev/null
rmdir ${tmpdir}
echo done: ${targetdir}/linux-staging-${1}.tar.bz2
--- NEW FILE staging-kmod-addons.spec ---
# 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 <fedora [AT] leemhuis [DOT] info> - 2.6.30.8-2
- enable VIDEO_GO7007
* Tue Oct 20 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.6.30.8-1
- initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/staging-kmod-addons/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Nov 2009 14:08:35 -0000 1.1
+++ .cvsignore 1 Nov 2009 14:21:28 -0000 1.2
@@ -0,0 +1 @@
+linux-staging-2.6.30.8.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/free/rpms/staging-kmod-addons/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Nov 2009 14:08:35 -0000 1.1
+++ sources 1 Nov 2009 14:21:28 -0000 1.2
@@ -0,0 +1 @@
+0b5227b7ebf6c33e3a4aeb13b92807aa linux-staging-2.6.30.8.tar.bz2