SPECS: bcm43xx.spec - build and package fwcutter
sparky
sparky at pld-linux.org
Fri Jan 20 20:37:48 CET 2006
Author: sparky Date: Fri Jan 20 19:37:48 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- build and package fwcutter
---- Files affected:
SPECS:
bcm43xx.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/bcm43xx.spec
diff -u SPECS/bcm43xx.spec:1.3 SPECS/bcm43xx.spec:1.4
--- SPECS/bcm43xx.spec:1.3 Fri Jan 20 19:32:53 2006
+++ SPECS/bcm43xx.spec Fri Jan 20 20:37:42 2006
@@ -22,6 +22,8 @@
Group: Base/Kernel
Source0: http://ftp.berlios.de/pub/bcm43xx/snapshots/bcm43xx/%{name}-%{_snap}.tar.bz2
# Source0-md5: 4294c8a1f8c9c0f3ea71c8262d016cad
+Source1: http://ftp.berlios.de/pub/bcm43xx/snapshots/fwcutter/%{name}-fwcutter-%{_snap}.tar.bz2
+# Source1-md5: bcf4c2cb4a53c3d2b9b2f3a737fd80fc
Patch0: %{name}-local_headers.patch
URL: http://bcm43xx.berlios.de/
%if %{with kernel}
@@ -79,12 +81,19 @@
BCM43xx.
%prep
-%setup -q -n %{name}-%{_snap}
+%setup -q -n %{name}-%{_snap} -a1
%patch0 -p1
cp -rf %{_usr}/src/softmac-include/net .
+mv %{name}-fwcutter-%{_snap}/README README.fwcutter
%build
+%if %{with userspace}
+%{__make} -C %{name}-fwcutter-%{_snap} \
+ CFLAGS="%{rpmcflags} -std=c99 -Wall -pedantic -D_BSD_SOURCE" \
+ CC="%{__cc}"
+%endif
+
%if %{with kernel}
for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
@@ -122,6 +131,11 @@
%install
rm -rf $RPM_BUILD_ROOT
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_bindir}
+install %{name}-fwcutter-%{_snap}/fwcutter $RPM_BUILD_ROOT%{_bindir}
+%endif
+
%if %{with kernel}
install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/drivers/net
install bcm43xx-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
@@ -150,7 +164,8 @@
%if %{with userspace}
%files
%defattr(644,root,root,755)
-%doc README
+%doc README README.fwcutter
+%{_bindir}/fwcutter
%endif
%if %{with kernel}
@@ -171,6 +186,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2006/01/20 19:37:42 sparky
+- build and package fwcutter
+
Revision 1.3 2006/01/20 18:32:53 sparky
- add softmacs symvers to Module.symvers: no more modpost warnings
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bcm43xx.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list