SPECS: hsfmodem.spec - upgrade - build .ko files in %build not aft...

hunter hunter at pld-linux.org
Sun Oct 2 19:44:15 CEST 2005


Author: hunter                       Date: Sun Oct  2 17:44:15 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- upgrade
- build .ko files in %build not after installing rpm
- separate kernel-* package
- stbr svp

---- Files affected:
SPECS:
   hsfmodem.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/hsfmodem.spec
diff -u SPECS/hsfmodem.spec:1.4 SPECS/hsfmodem.spec:1.5
--- SPECS/hsfmodem.spec:1.4	Fri Oct 29 16:04:43 2004
+++ SPECS/hsfmodem.spec	Sun Oct  2 19:44:10 2005
@@ -1,14 +1,18 @@
 # $Revision$, $Date$
-Summary:	Conexant HSF controllerless modem driver
-Summary(pl):	Sterownik do winmodemów HSF firmy Conexant
+Summary:	Conexant HSF controllerless modem driver userspace utils
+Summary(pl):	Narzędzia do sterownika winmodemów HSF firmy Conexant
 Name:		hsfmodem
-Version:	6.03.00lnxt03091800free
-%define	_rel	0.1
+Version:	7.18.00.06full
+%define	_rel	1
 Release:	%{_rel}@%{_kernel_ver_str}
-License:	Custom Licence by LinuxAnt.com
+License:	Custom Licence by (c) 2003-2004 Linuxant inc. All rights reserved.
 Group:		Base/Kernel
-Source0:	http://www.linuxant.com/drivers/hsf/free/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	aa85060185dba1bd090c2d02ef1c9c8a
+Source0:	http://www.linuxant.com/drivers/hsf/full/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	2d725bd8e484a4037daefec6208ba28b
+Source1:	http://www.linuxant.com/drivers/hsf/full/archive/hsfmodem-7.18.00.06full/100498D_RM_HxF_Released.pdf
+# Source1-md5:	e6d8fea8f5f641d7bb4dfb33c6f478e7
+Source2:	http://www.linuxant.com/drivers/files/listmodem_app_linux.tar.gz
+# Source2-md5:	516f3825014eb460a0c16cbd927a80d1
 URL:		http://www.linuxant.com/
 %{!?_without_dist_kernel:BuildRequires:	kernel-source}
 BuildRequires:	%{kgcc_package}
@@ -20,34 +24,68 @@
 %description
 Conexant HSF controllerless modem driver for Linux.
 This package contains only free version of the drivers (limited to
-14kbps). Full version is available at linuxant.com.
+14kbps and no fax). Full version is available at linuxant.com.
 
 %description -l pl
-Sterownik do winmodemów HSF firmy Conexant dla Linuksa.
-Ten pakiet zawiera tylko darmową wersję sterowników, która ogranicza
-transfer do 14kbps. Pełna wersja dostępna jest na linuxant.com.
+Sterownik do winmodemów HSF firmy Conexant dla Linuksa.  Ten pakiet 
+zawiera tylko darmową wersję sterowników, która ogranicza transfer 
+do 14kbps i użycie faxu. Pełna wersja dostępna jest na linuxant.com.
+
+%package -n kernel-char-hsf
+Summary:	Conexant HSF controllerless modem driver 
+Summary(pl):	Sterownik do winmodemów HSF firmy Conexant
+Release:	%{_rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+%{?with_dist_kernel:%requires_releq_kernel_smp}
+Requires(post,postun):	/sbin/depmod
+%{?with_dist_kernel:Requires(postun):	kernel-smp}
+
+%description -n kernel-char-hsf
+This is a Linux driver for Conexant HSF controllerless modem driver 
+
+%description -n kernel-char-hsf -l pl
+Sterownik dla Linuksa do winmodemów HSF firmy Conexant
 
 %prep
 %setup -q
 
 %build
 %{__make} all KERNELSRC=%{_kernelsrcdir}
+%{__make} --quiet --no-print-directory CNXT_KERNELSRC=%{_kernelsrcdir} DISTRO_CFLAGS="-D__MODULE_KERNEL_%{_target_cpu}=1" CNXT_MODS_DIR=binaries/linux-genetic clean all modules
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,-smp}/misc
 %{__make} install \
 	ROOT=$RPM_BUILD_ROOT \
 	KERNELSRC=%{_kernelsrcdir}
 
+install modules/*.ko  $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
+#{,-smp}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/hsfconfig --auto
+#%{_sbindir}/hsfconfig --auto
+%depmod %{_kernel_ver}
 
 %preun
-%{_sbindir}/hsfconfig --remove
+#%{_sbindir}/hsfconfig --remove
+
+%postun
+%depmod %{_kernel_ver}
+
+%post -n kernel-char-hsf
+%depmod %{_kernel_ver}
+
+%postun -n kernel-char-hsf
+%depmod %{_kernel_ver}
+
+%files -n kernel-char-hsf
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
 
 %files
 %defattr(644,root,root,755)
@@ -55,6 +93,8 @@
 %attr(755,root,root) %{_sbindir}/*
 %dir /etc/hsfmodem
 %dir /etc/hsfmodem/nvm
+/etc/hsfmodem/package
+/usr/lib/hsfmodem/rchsf
 %config /etc/hsfmodem/nvm/*
 %dir %{_libdir}/hsfmodem
 %config %{_libdir}/hsfmodem/config.mak
@@ -69,6 +109,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/10/02 17:44:10  hunter
+- upgrade
+- build .ko files in %build not after installing rpm
+- separate kernel-* package
+- stbr svp
+
 Revision 1.4  2004/10/29 14:04:43  paladine
 - spelling fixes, unifications
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/hsfmodem.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list