SPECS: slmodem.spec
Bartosz Swiatek
swiatek w informatik.hu-berlin.de
Pon, 7 Lis 2005, 22:24:16 CET
- builds on non-dist kernels
Ktoś może przetestować tą wersję na kernelu dystrybucyjnym ?
________
--- slmodem.spec 2005-11-07 21:24:09.000000000 +0100
+++ slmodem-shad.spec 2005-11-07 22:20:48.000000000 +0100
@@ -8,29 +8,44 @@
%bcond_without smp # don't build SMP module
%bcond_without userspace # don't build userspace module
%bcond_with verbose # verbose build (V=1)
+%bcond_with snap # snap version
%if %{without dist_kernel}
%undefine with_smp
%endif
+%if %{with snap}
+%define ver 2.9.11
+%define dirrel 20051101
+%define sver _20051101
+%else
+%define ver 2.9.10
+%define sver %{nil}
+%endif
+
#
Summary: Smart Link soft modem drivers
Summary(pl): Sterowniki do modemów programowych Smart Link
Name: slmodem
-Version: 2.9.10
+Version: %{ver}%{sver}
%define rel 1
Release: %{rel}
License: BSD almost without source
Vendor: Smart Link Ltd.
Group: Base/Kernel
# ftp://ftp.smlink.com/linux/unsupported/
+%if %{with snap}
Source0: http://www.smlink.com/main/down/%{name}-%{version}.tar.gz
# Source0-md5: cbc4918f2ee9ed4952d3f4309d364b35
+%else
+Source0:
http://linmodems.technion.ac.il/packages/smartlink/snapshots/%{name}-%{version}-%{dirrel}.tar.gz
+# Source0-md5: 56bb1ddf621b2fe26caf746aed0ac26f
+%endif
Source1: %{name}.init
Source2: %{name}.sysconfig
-Patch0: %{name}-new-kernel-workaround.patch
-Patch1: %{name}-%{version}-abby.patch
-Patch2: %{name}-gcc4.patch
+#Patch0: %{name}-new-kernel-workaround.patch
+#Patch1: %{name}-%{version}-abby.patch
+#Patch2: %{name}-gcc4.patch
URL: http://www.smlink.com/
%{?with_dist_kernel:BuildRequires: kernel-module-build}
BuildRequires: %{kgcc_package}
@@ -113,10 +128,10 @@
pakiet zawiera sterownik dla modemów USB opartych na SmartUSB56. Jądra SMP.
%prep
-%setup -q
+%setup -q -n %{name}-%{ver}-%{dirrel}
#NOTFORFTP %patch0 -p1
-%patch1 -p1
-%patch2 -p1
+#%patch1 -p1
+#%patch2 -p1
%build
cd drivers
@@ -125,27 +140,28 @@
%if %{with kernel}
# 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
+ #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}/.config .config
+ ln -sf %{_kernelsrcdir}/include/linux/autoconf.h
include/linux/autoconf.h
ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
- ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
+ ln -sf %{_kernelsrcdir}/Module.symvers Module.symvers
touch include/config/MARKER
# patching/creating makefile(s) (optional)
- %{__make} -C %{_kernelsrcdir} clean \
- RCS_FIND_IGNORE="-name '*.ko' -o" \
- M=$PWD O=$PWD \
- %{?with_verbose:V=1}
- ln -sf ../amrlibs.o amrlibs.o
- %{__make} -C %{_kernelsrcdir} modules \
- CC="%{__cc}" CPP="%{__cpp}" \
- M=$PWD O=$PWD \
- %{?with_verbose:V=1}
+ #%{__make} -C %{_kernelsrcdir} clean \
+ # RCS_FIND_IGNORE="-name '*.ko' -o" \
+ # M=$PWD O=$PWD \
+ # %{?with_verbose:V=1}
+ #ln -sf ../amrlibs.o amrlibs.o
+ #%{__make} -C %{_kernelsrcdir} modules \
+ # CC="%{__cc}" CPP="%{__cpp}" \
+ # M=$PWD O=$PWD \
+ # %{?with_verbose:V=1}
+ %{__make} all
for mod in *.ko; do
mod=$(echo "$mod" | sed -e 's#\.ko##g')
mv $mod.ko ../$mod-$cfg.ko
Więcej informacji o liście dyskusyjnej pld-devel-pl