SPECS: unicorn.spec - merged update to 0.9.3 by Irek Slonina
qboosh
qboosh at pld-linux.org
Fri Apr 27 12:57:43 CEST 2007
Author: qboosh Date: Fri Apr 27 10:57:43 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- merged update to 0.9.3 by Irek Slonina
---- Files affected:
SPECS:
unicorn.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/unicorn.spec
diff -u SPECS/unicorn.spec:1.6 SPECS/unicorn.spec:1.7
--- SPECS/unicorn.spec:1.6 Mon Feb 12 23:09:18 2007
+++ SPECS/unicorn.spec Fri Apr 27 12:57:38 2007
@@ -2,8 +2,6 @@
#
# TODO
# - optflags
-# - usb driver doesn't build
-# - pci dirver doesn't with 2.6.14.6 (skb_unlink changed in kernel)
# - bewan_adsl_status is linked with gtk+, maybe subpackage
# - rc-scripts support?
#
@@ -18,13 +16,13 @@
Summary: Unicorn ADSL modem software
Summary(pl.UTF-8): Oprogramowanie do modemów ADSL Unicorn
Name: unicorn
-Version: 0.9.0
+Version: 0.9.3
%define _rel 0.1
Release: %{_rel}
License: GPL v2
Group: Base/Kernel
-Source0: http://www.bewan.com/bewan/drivers/bast-%{version}.tgz
-# Source0-md5: 8b4f880e79d9d23029cc8f85e2f6478a
+Source0: http://www.bewan.com/bewan/drivers/A1012-A1006-A904-A888-A983-%{version}.tgz
+# Source0-md5: ff9829f03168279a079d05aea780ee99
URL: http://www.bewan.com/
BuildRequires: gtk+-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -79,22 +77,32 @@
if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
exit 1
fi
- rm -rf include
- install -d include/{linux,config}
- ln -sf %{_kernelsrcdir}/config-$cfg .config
- ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
- ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
- ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
- touch include/config/MARKER
+ 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} -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 \
+ KERNEL_SOURCES="$PWD/o" \
+ RCS_FIND_IGNORE="-name '*.ko' -o -name nv-kernel.o -o" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
%{?with_verbose:V=1}
%{__make} -C %{_kernelsrcdir} modules \
- HOSTCC="%{__cc}" \
- CPP="%{__cpp}" \
- M=$PWD O=$PWD \
+ KERNEL_SOURCES="$PWD/o" \
+ CC="%{__cc}" CPP="%{__cpp}" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
%{?with_verbose:V=1}
+
mv unicorn_pci_atm{,-$cfg}.ko
mv unicorn_pci_eth{,-$cfg}.ko
done
@@ -105,23 +113,31 @@
if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
exit 1
fi
- rm -rf include
- install -d include/{linux,config}
- ln -sf %{_kernelsrcdir}/config-$cfg .config
- ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
- ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
- ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
- touch include/config/MARKER
+ 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} -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 \
+ RCS_FIND_IGNORE="-name '*.ko' -o -name nv-kernel.o -o" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
%{?with_verbose:V=1}
%{__make} -C %{_kernelsrcdir} modules \
- HOSTCC="%{__cc}" \
- CPP="%{__cpp}" \
- M=$PWD O=$PWD \
+ CC="%{__cc}" CPP="%{__cpp}" \
+ SYSSRC=%{_kernelsrcdir} \
+ SYSOUT=$PWD/o \
+ M=$PWD O=$PWD/o \
%{?with_verbose:V=1}
-# mv unicorn_usb{,-$cfg}.ko
+ mv unicorn_usb_atm{,-$cfg}.ko
+ mv unicorn_usb_eth{,-$cfg}.ko
done
%endif
%endif
@@ -142,9 +158,17 @@
for mods in atm eth ; do
install unicorn_pci/unicorn_pci_$mods-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/unicorn_pci_$mods.ko
+%if %{with usb}
+install unicorn_usb/unicorn_usb_$mods-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/unicorn_usb_$mods.ko
+%endif
%if %{with smp} && %{with dist_kernel}
install unicorn_pci/unicorn_pci_$mods-smp.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/unicorn_pci_$mods.ko
+%if %{with usb}
+install unicorn_usb/unicorn_usb_$mods-smp.ko \
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/unicorn_usb_$mods.ko
+%endif
%endif
done
%endif
@@ -190,6 +214,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2007/04/27 10:57:38 qboosh
+- merged update to 0.9.3 by Irek Slonina
+
Revision 1.6 2007/02/12 22:09:18 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/unicorn.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list