[packages/linux-fusion] - updated to 9.0.0 - build also One (linux-one-devel, kernel-one)

qboosh qboosh at pld-linux.org
Sat Jan 19 14:44:18 CET 2013


commit 6edb6a11dabf00152f4094f3d9fd3b9d7ea2857e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 19 14:44:47 2013 +0100

    - updated to 9.0.0
    - build also One (linux-one-devel, kernel-one)

 linux-fusion.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 68 insertions(+), 8 deletions(-)
---
diff --git a/linux-fusion.spec b/linux-fusion.spec
index 04fc539..4c984ea 100644
--- a/linux-fusion.spec
+++ b/linux-fusion.spec
@@ -9,16 +9,16 @@
 %undefine	with_dist_kernel
 %endif
 
-Summary:	Fusion Linux kernel module
-Summary(pl.UTF-8):	Moduł Fusion dla jądra Linuksa
+Summary:	Fusion and One Linux kernel modules
+Summary(pl.UTF-8):	Moduły Fusion i One dla jądra Linuksa
 Name:		linux-fusion
-Version:	8.10.4
+Version:	9.0.0
 %define		rel	1
 Release:	%{rel}
 License:	GPL v2+
 Group:		Base/Kernel
 Source0:	http://www.directfb.org/downloads/Core/linux-fusion/%{name}-%{version}.tar.gz
-# Source0-md5:	0afcdfbd3aeaf61eef3100ffc4692417
+# Source0-md5:	4199617ed8ba205da52fedfb862e4507
 URL:		http://www.directfb.org/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:	kernel-module-build >= 3:2.6.20.2}
@@ -28,10 +28,10 @@ BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Fusion Linux kernel module.
+Fusion and One Linux kernel modules.
 
 %description -l pl.UTF-8
-Moduł Fusion dla jądra Linuksa.
+Moduły Fusion i One dla jądra Linuksa.
 
 %package devel
 Summary:	Header file for Fusion device
@@ -45,6 +45,22 @@ Header file for Fusion device.
 %description devel -l pl.UTF-8
 Plik nagłówkowy dla urządzenia Fusion.
 
+%package -n linux-one-devel
+Summary:	Header file for One IPC device
+Summary(pl.UTF-8):	Plik nagłówkowy dla urządzenia IPC One
+Group:		Development/Libraries
+Requires:	linux-libc-headers
+
+%description -n linux-one-devel
+Header file for One IPC device.
+
+Linux One is the new IPC API used by Coma.
+
+%description -n linux-one-devel -l pl.UTF-8
+Plik nagłówkowy dla urządzenia IPC One.
+
+Linux One to nowe API IPC wykorzystywane przez Comę.
+
 %package -n kernel-char-fusion
 Summary:	Fusion module for Linux kernel
 Summary(pl.UTF-8):	Moduł Fusion dla jądra Linuksa
@@ -62,11 +78,34 @@ Fusion module for Linux kernel.
 %description -n kernel-char-fusion -l pl.UTF-8
 Moduł Fusion dla jądra Linuksa.
 
+%package -n kernel-one
+Summary:	One IPC module for Linux kernel
+Summary(pl.UTF-8):	Moduł IPC One dla jądra Linuksa
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_up
+Requires(postun):	%releq_kernel_up
+%endif
+
+%description -n kernel-one
+One IPC module for Linux kernel.
+
+Linux One is the new IPC API used by Coma.
+
+%description -n kernel-one -l pl.UTF-8
+Moduł IPC One dla jądra Linuksa.
+
+Linux One to nowe API IPC wykorzystywane przez Comę.
+
 %prep
 %setup -q
 
-sed -i -e 's/^obj-[^ ]*/obj-m/' linux/drivers/char/fusion/Makefile-2.6
+%{__sed} -i -e 's/^obj-[^ ]*/obj-m/' linux/drivers/char/fusion/Makefile-2.6
+%{__sed} -i -e 's/^obj-[^ ]*/obj-m/' one/Makefile-2.6
 echo "EXTRA_CFLAGS = -I`pwd`/linux/include -I`pwd`/linux/drivers/char/fusion -I`pwd`/linux/drivers/char/fusion/single" >> linux/drivers/char/fusion/Makefile-2.6
+echo "EXTRA_CFLAGS = -I`pwd`/include -I`pwd`/one/single" >> one/Makefile-2.6
 
 %build
 %if %{with kernel}
@@ -74,6 +113,9 @@ cd linux/drivers/char/fusion
 ln -sf Makefile-2.6 Makefile
 # NOTE: build_kernel_modules (as of rpm macros 1.649) doesn't allow line breaking
 %build_kernel_modules -m fusion FUSIONCORE=single
+cd ../../../../one
+ln -sf Makefile-2.6 Makefile
+%build_kernel_modules -m linux-one ONECORE=single
 %endif
 
 %install
@@ -82,11 +124,14 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with userspace}
 install -d $RPM_BUILD_ROOT%{_includedir}/linux
 install linux/include/linux/fusion.h $RPM_BUILD_ROOT%{_includedir}/linux
+install include/linux/one.h $RPM_BUILD_ROOT%{_includedir}/linux
 %endif
 
 %if %{with kernel}
 cd linux/drivers/char/fusion
 %install_kernel_modules -m fusion -d kernel/drivers/char
+cd ../../../../one
+%install_kernel_modules -m linux-one -d kernel
 %endif
 
 %clean
@@ -98,15 +143,30 @@ rm -rf $RPM_BUILD_ROOT
 %postun	-n kernel-char-fusion
 %depmod %{_kernel_ver}
 
+%post	-n kernel-one
+%depmod %{_kernel_ver}
+
+%postun	-n kernel-one
+%depmod %{_kernel_ver}
+
 %if %{with userspace}
 %files devel
 %defattr(644,root,root,755)
-%doc ChangeLog TODO
+%doc ChangeLog README TODO
 %{_includedir}/linux/fusion.h
+
+%files -n linux-one-devel
+%defattr(644,root,root,755)
+%doc README.linux-one TODO.linux-one
+%{_includedir}/linux/one.h
 %endif
 
 %if %{with kernel}
 %files -n kernel-char-fusion
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/kernel/drivers/char/fusion.ko*
+
+%files -n kernel-one
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/linux-one.ko*
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linux-fusion.git/commitdiff/6edb6a11dabf00152f4094f3d9fd3b9d7ea2857e



More information about the pld-cvs-commit mailing list