packages: rtl8192se/rtl8192se.spec - build pld way, cleanup, needs moooore
zbyniu
zbyniu at pld-linux.org
Mon Aug 9 14:30:52 CEST 2010
Author: zbyniu Date: Mon Aug 9 12:30:52 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- build pld way, cleanup, needs moooore
---- Files affected:
packages/rtl8192se:
rtl8192se.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: packages/rtl8192se/rtl8192se.spec
diff -u packages/rtl8192se/rtl8192se.spec:1.8 packages/rtl8192se/rtl8192se.spec:1.9
--- packages/rtl8192se/rtl8192se.spec:1.8 Mon Aug 9 14:02:53 2010
+++ packages/rtl8192se/rtl8192se.spec Mon Aug 9 14:30:47 2010
@@ -1,39 +1,32 @@
# $Revision$, $Date$
+#
+# TODO:
+# - package firmware, install, CLEANUPS
+#
+# Conditional build:
+%bcond_without dist_kernel # allow non-distribution kernel
+%bcond_without kernel # don't build kernel modules
+%bcond_without userspace # don't build userspace module
+%bcond_with verbose # verbose build (V=1)
+
+%if %{without kernel}
+%undefine with_dist_kernel
+%endif
-# PLEASE READ FOLLOWING MESSAGES:
-# http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2010-August/021751.html
-# http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2010-August/021752.html
-# http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2010-August/021753.html
-
-# Besides that, please:
-# 1) subscribe to at least one of developers mailing lists
-# 2) don't use interia for @pld-linux.org forward. interia checks SPF, so it
-# will rejected most forwarded e-mails. Use gmail or some other mail
-# service that does not check SPF.
-
-%define kernel 2.6.33.5-1
%define pname rtl8192se
%define ver %{version}
Summary: Firmware for the RTL8192SE chipset
Name: rtl8192se
Version: 0017.0507.2010
-Release: 0
+Release: 0.1
License: GPL
Group: Base/Kernel
-
#rtl8192se_linux_2.6.0017.0507.2010.tar.gzProblems in TW local tar.gz
#Source0: ftp://WebUser:pGL7E6v@202.134.71.21/cn/wlan/rtl8192se_linux_2.6.%{version}.tar.gz
Source0: http://pld.skibi.eu/%{name}_linux_2.6.%{version}.tar.gz
-
# Source0-md5: 0c904bb2433699bc0e2f1d86c45a6b22
-
-#kernel scripts for %{kernel}
-Source1: http://pld.skibi.eu/kernel_compile.tar.gz
-# Source1-md5: 30f890430a2220151cf2d439546a7db1
-
-
URL: http://www.realtek.com/products/productsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=226
-BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.33.0}
+BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.33
BuildRequires: rpmbuild(macros) >= 1.153
#BuildArch: noarch
@@ -49,14 +42,11 @@
Ten pakiet zawiera modul + firmware dla sterownika rtl8192se pci.
%prep
-%setup -qc
-cp %{SOURCE1} .
-tar -zxf kernel_compile.tar.gz -C %{_prefix}/src --overwrite-dir
-
-mv rtl8192se_linux_2.6.%{ver} mod
-cd mod
-%patch0 -p1
-%{__make} all
+%setup -q -n %{name}_linux_2.6.%{version}
+
+%build
+cd HAL/rtl8192
+%build_kernel_modules -m r8192se_pci
%install
rm -rf $RPM_BUILD_ROOT
@@ -75,6 +65,12 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%depmod %{_kernel_ver}
+
+%postun
+%depmod %{_kernel_ver}
+
%files
%defattr(644,root,root,755)
%doc mod/firmware/RTL8192SE/Realtek-Firmware-License.txt
@@ -82,20 +78,16 @@
/lib/firmware/%{kernel}/*
/lib/modules/%{kernel}/kernel/drivers/net/wireless/*
%{_sysconfdir}/realtek/*
-%post
-%depmod %{kernel}
-
-%postun
-%depmod %{kernel}
-
%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.9 2010/08/09 12:30:47 zbyniu
+- build pld way, cleanup, needs moooore
+
Revision 1.8 2010/08/09 12:02:53 skibi
- Source corect unfinished
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rtl8192se/rtl8192se.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list