File cdfs.spec of Package cdfs

#
# spec file for package cdfs
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name:           cdfs
Version:        2.6.27
Release:	0
Summary:	Kernel filesystem to show CD tracks as files
License:	GPL-2.0+
Group:          System/Kernel
Url:		http://users.elis.ugent.be/~mronsse/cdfs/
#Freecode-URL:	http://freecode.com/projects/cdfs/

Source:		http://users.elis.ugent.be/~mronsse/cdfs/download/%name-%version.tar.bz2
Patch1:		cdfs-3.3.diff
Patch2:		cdfs-3.7.diff
BuildRequires:  kernel-devel >= 3.7, kernel-syms >= 3.7, modutils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%kernel_module_package -p %name-preamble

%description
CDfs is a file system for Linux systems that "exports" all tracks and
boot images on a CD as normal files. These files can then be mounted
(e.g. for ISO and boot images), copied, played (audio and VideoCD
tracks). Accessing old ISO tracks on multisession CDs is supported.

Red Book (audio), Yellow Book Mode 1 (data), Green/White Book Mode 2 /
XA Form 1 and Green/White Book Mode 2 / XA Form 2 (data) tracks are
exported.

%package KMP
Summary:        Kernel filesystem to show CD tracks as files
Group:          System/Kernel

%description KMP
CDfs is a file system for Linux systems that "exports" all tracks and
boot images on a CD as normal files. These files can then be mounted
(e.g. for ISO and boot images), copied, played (audio and VideoCD
tracks). Accessing old ISO tracks on multisession CDs is supported.

Red Book (audio), Yellow Book Mode 1 (data), Green/White Book Mode 2 /
XA Form 1 and Green/White Book Mode 2 / XA Form 2 (data) tracks are
exported.

%prep
%setup -q
%patch -P 1 -P 2 -p1

%build
for flavor in %flavors_to_build; do
	cp -a . "../obj-$flavor";
	pushd "../obj-$flavor/";
	make KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \
		%{?_smp_mflags};
	popd;
done;

%install
export INSTALL_MOD_PATH="%buildroot";

for flavor in %flavors_to_build; do
	pushd "../obj-$flavor/";
	make KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" \
		modules_install;
	popd;
done;

%changelog
openSUSE Build Service is sponsored by