rpms/staging-kmod-addons/devel create-linux-staging-tarball.sh, NONE, 1.1 staging-kmod-addons.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thorsten Leemhuis thl at rpmfusion.org
Sun Nov 1 15:42:50 CET 2009


Author: thl

Update of /cvs/free/rpms/staging-kmod-addons/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16712

Modified Files:
	.cvsignore sources 
Added Files:
	create-linux-staging-tarball.sh staging-kmod-addons.spec 
Log Message:
build for devel (import as reviewed was done for F-11)


--- 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.31.5
Release:       1%{?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
* Sun Nov 01 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.6.31.5-1
- update to 2.6.31.5

* 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/devel/.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:42:50 -0000	1.2
@@ -0,0 +1 @@
+linux-staging-2.6.31.5.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/free/rpms/staging-kmod-addons/devel/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:42:50 -0000	1.2
@@ -0,0 +1 @@
+881ae9192aff3fdc3e27639d580d5279  linux-staging-2.6.31.5.tar.bz2



More information about the rpmfusion-commits mailing list