SPECS: slmodem.spec - final
Bartosz Swiatek
swiatek w informatik.hu-berlin.de
Wto, 8 Lis 2005, 12:39:12 CET
- builds
Wywaliłem ten bcond snap, jest zbędny. Wszystko powinno już działać dobrze.
Czy może ktoś zbudować to na kernelu dystrybucyjnym ?
Pozdrawiam,
Bartek
_________________________
--- slmodem.spec 2005-11-07 21:24:09.000000000 +0100
+++ slmodem-shad.spec 2005-11-08 12:35:27.000000000 +0100
@@ -13,24 +13,28 @@
%undefine with_smp
%endif
+%define dirrel 20051101
+
#
Summary: Smart Link soft modem drivers
Summary(pl): Sterowniki do modemów programowych Smart Link
Name: slmodem
-Version: 2.9.10
+Version: 2.9.11
%define rel 1
Release: %{rel}
License: BSD almost without source
Vendor: Smart Link Ltd.
Group: Base/Kernel
# ftp://ftp.smlink.com/linux/unsupported/
-Source0: http://www.smlink.com/main/down/%{name}-%{version}.tar.gz
+#Source0: http://www.smlink.com/main/down/%{name}-%{version}.tar.gz
# Source0-md5: cbc4918f2ee9ed4952d3f4309d364b35
+Source0:
http://linmodems.technion.ac.il/packages/smartlink/snapshots/%{name}-%{version}-%{dirrel}.tar.gz
+# Source0-md5: 56bb1ddf621b2fe26caf746aed0ac26f
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 +117,10 @@
pakiet zawiera sterownik dla modemów USB opartych na SmartUSB56. Jądra SMP.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}-%{dirrel}
#NOTFORFTP %patch0 -p1
-%patch1 -p1
-%patch2 -p1
+#%patch1 -p1
+#%patch2 -p1
%build
cd drivers
@@ -125,27 +129,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