SPECS: kernel-misc-tifm.spec (NEW) - initial

blues blues at pld-linux.org
Mon Nov 6 21:34:08 CET 2006


Author: blues                        Date: Mon Nov  6 20:34:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   kernel-misc-tifm.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/kernel-misc-tifm.spec
diff -u /dev/null SPECS/kernel-misc-tifm.spec:1.1
--- /dev/null	Mon Nov  6 21:34:08 2006
+++ SPECS/kernel-misc-tifm.spec	Mon Nov  6 21:34:03 2006
@@ -0,0 +1,134 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	smp		# don't build SMP module
+%bcond_with	verbose		# verbose build (V=1)
+
+%define		_rel	0.1
+%define		_module	tifm
+Summary:	Linux driver for TI FlashMedia xx12/xx21 storage controllers
+Name:		kernel-misc-%{_module}
+Version:	0.6b
+Release:	%{_rel}@%{_kernel_ver_str}
+License:	GPL v2
+Group:		Base/Kernel
+Source0:	http://download.berlios.de/tifmxx/%{_module}-%{version}.tar.bz2
+# Source0-md5:	e48d47260cda579362f14a9a81bd75dc
+URL:		http://developer.berlios.de/projects/tifmxx
+%{?with_dist_kernel:BuildRequires:	kernel-module-build >= 3:2.6.7}
+BuildRequires:	rpmbuild(macros) >= 1.217
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_up
+Requires(postun):	%releq_kernel_up
+%endif
+ExclusiveArch:	%{ix86}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project is devoted to the development of the acceptable and free source linux driver for TI FlashMedia family of devices. These devices are found in a vast majority of the modern laptops. Unfortunately, TI refused to publish a complete datasheet for any of the FlashMedia devices rendering them useless anywhere except M$ Windows (not unlike many other hardware vendors).
+
+Windows drivers to the mentioned devices are available from nearly all major computer vendors both for Win32 and Win64 platforms. They support all the expected functionality: SM/xD cards, MMC, SD and SDIO, MemoryStick and MSpro including security/DRM features.
+
+%package -n kernel-smp-misc-%{_module}
+Summary:	Linux SMP driver for TI FlashMedia xx12/xx21 storage controllers
+Release:	%{_rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_smp
+Requires(postun):	%releq_kernel_smp
+%endif
+
+%description -n kernel-smp-misc-%{_module}
+This project is devoted to the development of the acceptable and free source linux driver for TI FlashMedia family of devices. These devices are found in a vast majority of the modern laptops. Unfortunately, TI refused to publish a complete datasheet for any of the FlashMedia devices rendering them useless anywhere except M$ Windows (not unlike many other hardware vendors).
+
+Windows drivers to the mentioned devices are available from nearly all major computer vendors both for Win32 and Win64 platforms. They support all the expected functionality: SM/xD cards, MMC, SD and SDIO, MemoryStick and MSpro including security/DRM features.
+
+%prep
+%setup -q -c
+
+%build
+# kernel module(s)
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+		exit 1
+	fi
+	install -d o/include/linux
+	ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+	ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
+%if %{with dist_kernel}
+	%{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+%else
+	install -d o/include/config
+	touch o/include/config/MARKER
+	ln -sf %{_kernelsrcdir}/scripts o/scripts
+%endif
+	%{__make} -C %{_kernelsrcdir} clean \
+		RCS_FIND_IGNORE="-name '*.ko' -o" \
+		M=$PWD O=$PWD/o KSRC=$PWD/o\
+		%{?with_verbose:V=1}
+	%{__make} -C %{_kernelsrcdir} modules \
+		M=$PWD O=$PWD/o KSRC=$PWD/o\
+		%{?with_verbose:V=1}
+	for mod in tifm_7xx1 tifm_core tifm_sd; do
+		mv $mod{,-$cfg}.ko
+	done
+done
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
+
+install %{_module}_7xx1-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_module}_7xx1.ko
+install %{_module}_core-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_module}_core.ko
+install %{_module}_sd-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_module}_sd.ko
+%if %{with smp} && %{with dist_kernel}
+install %{_module}_7xx1-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_module}_7xx1.ko
+install %{_module}_core-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_module}_core.ko
+install %{_module}_sd-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_module}_sd.ko
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%depmod %{_kernel_ver}
+
+%postun
+%depmod %{_kernel_ver}
+
+%post	-n kernel-smp-misc-%{_module}
+%depmod %{_kernel_ver}smp
+
+%postun -n kernel-smp-misc-%{_module}
+%depmod %{_kernel_ver}smp
+
+%files
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel-smp-misc-%{_module}
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/misc/*.ko*
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/11/06 20:34:03  blues
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list