rpms/gspca-kmod/devel gspca-kmod.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 Makefile, 1.1, 1.2 sources, 1.1, 1.2

Thorsten Leemhuis thl at rpmfusion.org
Thu Oct 2 19:49:09 CEST 2008


Author: thl

Update of /cvs/free/rpms/gspca-kmod/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv20622

Modified Files:
	.cvsignore Makefile sources 
Added Files:
	gspca-kmod.spec 
Log Message:
initial import to RPM Fusion; also test build for kmod stuff (testing newest hadling in devel branch and ppc/ppc64 building)


--- NEW FILE gspca-kmod.spec ---
# buildforkernels macro hint: when you build a new version or a new release
# that contains bugfixes or other improvements then you must disable the
# "buildforkernels newest" macro for just that build; immediately after
# queuing that build enable the macro again for subsequent builds; that way
# a new akmod package will only get build when a new one is actually needed
%define buildforkernels newest

%define tarball_name gspcav1-20071224

Name:           gspca-kmod
Version:        1.00.20
Release:        30%{?dist}.1
Summary:        gspca Webcam Kernel Module
Group:          System Environment/Kernel
License:        GPLv2+
URL:            http://mxhaard.free.fr/download.html
Source0:        http://mxhaard.free.fr/spca50x/Download/%{tarball_name}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# needed for plague to make sure it builds for i586 and i686
ExclusiveArch:  i586 i686 x86_64 ppc ppc64
# get the needed BuildRequires (in parts depending on what we build for)
BuildRequires:  %{_bindir}/kmodtool
%{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} }
# kmodtool does its magic here
%{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null) }

%description
This RPM contains the gspca binary Linux kernel module build for %{kernel}. It 
provides support for up to 260 different webcams not included in the default
kernel


%prep
# error out if there was something wrong with kmodtool
%{?kmodtool_check}
# print kmodtool output for debugging purposes:
kmodtool  --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null

# go
%setup -q -c -T -a 0
for kernel_version  in %{?kernel_versions}; do
    cp -a %{tarball_name} _kmod_build_${kernel_version%%___*}
done


%build
for kernel_version in %{?kernel_versions}; do
    make V=1 -C "${kernel_version##*___}" SUBDIRS=${PWD}/_kmod_build_${kernel_version%%___*}
done


%install
rm -rf $RPM_BUILD_ROOT
for kernel_version in %{?kernel_versions}; do
    install -D -m 755 _kmod_build_${kernel_version%%___*}/gspca.ko $RPM_BUILD_ROOT%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/gspca.ko
done

%{?akmod_install}


%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Thu Oct 02 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.20-30
- build for rpmfusion

* Sun May 04 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.20-4
- build for f9

* Sat Jan 26 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.20-3
- rebuild for new kmodtools, akmod adjustments

* Sun Jan 20 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.20-2
- build akmods package

* Thu Dec 27 2007 Jonathan Dieter <jdieter at gmail.com> - 1.00.20-1
- Rebase to upstream

* Thu Dec 20 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.18-7
- rebuilt for 2.6.21-2952.fc8xen 2.6.23.9-85.fc8

* Mon Dec 03 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.18-6
- remove leftover from old kmodtool
- add dist

* Mon Dec 03 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.18-5
- rebuilt for 2.6.23.8-63.fc8 2.6.21-2952.fc8xen
- enable debuginfo packages again and build verbosely 

* Sat Nov 10 2007 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.00.18-4
- rebuilt for 2.6.23.1-49.fc8

* Mon Nov  5 2007 Thorsten Leemhuis <fedora [AT] leemhuis.info> - 1.00.18-3
- Fix copy call in prep, as it breaks when building for multiple kernels 
- adjust to recent kmod model in livna devel
- disable debuginfo, as xen build will fail otherwise

* Sun Nov  4 2007 Jonathan Dieter <jdieter at gmail.com> - 1.00.18-2
- Spec file cleanup

* Sun Oct 28 2007 Jonathan Dieter <jdieter at gmail.com> - 1.00.18-1
- Initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/gspca-kmod/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	30 Sep 2008 16:44:58 -0000	1.1
+++ .cvsignore	2 Oct 2008 17:49:08 -0000	1.2
@@ -0,0 +1 @@
+gspcav1-20071224.tar.gz


Index: Makefile
===================================================================
RCS file: /cvs/free/rpms/gspca-kmod/devel/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile	30 Sep 2008 16:44:58 -0000	1.1
+++ Makefile	2 Oct 2008 17:49:08 -0000	1.2
@@ -1,18 +1,18 @@
-# Makefile for source rpm: gspca-kmod
+# Makefile for source rpm: ntfs-kmod
 # $Id$
 NAME := gspca-kmod
 SPECFILE = $(firstword $(wildcard *.spec))
 
 define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+for d in common ../common ../../common ../../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/.svn/entries -a -w $$/Makefile.common ] ; then cd $$d ; svn -q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
 endef
 
-MAKEFILE_COMMON := $(shell $(find-makefile-common))
+MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
 
 ifeq ($(MAKEFILE_COMMON),)
 # attept a checkout
 define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
+test -f .svn/entries && { svn -q checkout $$(svn info |grep '^URL :'|cut -d' ' -f 3|cut -d/ -f -4)/common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' directory module." ; exit -1 ; } >&2
 endef
 
 MAKEFILE_COMMON := $(shell $(checkout-makefile-common))


Index: sources
===================================================================
RCS file: /cvs/free/rpms/gspca-kmod/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	30 Sep 2008 16:44:58 -0000	1.1
+++ sources	2 Oct 2008 17:49:09 -0000	1.2
@@ -0,0 +1 @@
+14853ba1f4edc1e685039fca56e5ebf2  gspcav1-20071224.tar.gz



More information about the rpmfusion-commits mailing list