Author: areq                         Date: Sun Aug 28 11:49:41 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new ISDN stack of the linux kernel version 2.6
- raw PLD spec, NFY

---- Files affected:
SPECS:
   mISDN.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mISDN.spec
diff -u /dev/null SPECS/mISDN.spec:1.1
--- /dev/null   Sun Aug 28 13:49:41 2005
+++ SPECS/mISDN.spec    Sun Aug 28 13:49:36 2005
@@ -0,0 +1,141 @@
+%bcond_without dist_kernel     # allow non-distribution kernel
+%bcond_without smp             # don't build SMP module
+%bcond_with    verbose         # verbose build (V=1)
+
+%define         mISDN_version           CVS-2005-07-06
+
+Summary:       mISDN - modular ISDN
+Name:          mISDN
+Version:       2005.07.06
+%define                _rel    0.1
+Release:       %{_rel}
+License:       GPL
+Group:         Base/Kernel
+Source0:       
ftp://ftp.isdn4linux.de/pub/isdn4linux/CVS-Snapshots/%{name}-%{mISDN_version}.tar.bz2
+# Source0-md5: f8892d49e00e3fa26e65e22084edd472
+URL:           http://www.isdn4linux.de/mISDN/
+%{?with_dist_kernel:BuildRequires:     kernel-module-build >= 2.6.7}
+BuildRequires: rpmbuild(macros) >= 1.217
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+mISDN (modular ISDN) is the new ISDN stack of the linux kernel version 2.6.
+
+%package -n kernel-isdn-mISDN
+Summary:       Linux driver for mISDN
+Summary(pl):   Sterownik dla Linuksa do mISDN
+Release:       [EMAIL PROTECTED]
+Group:         Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_up
+Requires(postun):      %releq_kernel_up
+%endif
+
+%description -n kernel-isdn-mISDN
+This is driver for mISDN for Linux.
+
+This package contains Linux module.
+
+%description -n kernel-isdn-mISDN -l pl
+Sterownik dla Linuksa do mISDN.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%package -n kernel-smp-isdn-mISDN
+Summary:       Linux SMP driver for mISDN
+Summary(pl):   Sterownik dla Linuksa SMP do mISDN
+Release:       [EMAIL PROTECTED]
+Group:         Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel_smp
+Requires(postun):      %releq_kernel_smp
+%endif
+
+%description -n kernel-smp-isdn-mISDN
+This is driver for mISDN for Linux.
+
+This package contains Linux SMP module.
+
+%description -n kernel-smp-isdn-mISDN -l pl
+Sterownik dla Linuksa do mISDN.
+
+Ten pakiet zawiera moduł jądra Linuksa SMP.
+
+%prep
+%setup -q -n %{name}-%{mISDN_version}
+
+mv Makefile.module Makefile
+
+%build
+
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} 
up}%{!?with_dist_kernel:nondist}; do
+       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
+       touch include/config/MARKER
+
+       %{__make} -C %{_kernelsrcdir} clean \
+               RCS_FIND_IGNORE="-name '*.ko' -o" \
+               M=$PWD O=$PWD \
+               %{?with_verbose:V=1}
+       %{__make} -C %{_kernelsrcdir} modules \
+               CC="%{__cc}" CPP="%{__cpp}" \
+               M=$PWD O=$PWD \
+               %{?with_verbose:V=1}
+
+#      mv mISDN{,-$cfg}.ko
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d 
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/drivers/isdn/hardware/mISDN
+install mISDN-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/
+%if %{with smp} && %{with dist_kernel}
+install mISDN-smp.ko \
+       
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/drivers/isdn/hardware/mISDN/
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -n kernel-isdn-mISDN
+%depmod %{_kernel_ver}
+
+%postun        -n kernel-isdn-mISDN
+%depmod %{_kernel_ver}
+
+%post  -n kernel-smp-isdn-mISDN
+%depmod %{_kernel_ver}smp
+
+%postun        -n kernel-smp-isdn-mISDN
+%depmod %{_kernel_ver}smp
+
+%files -n kernel-isdn-mISDN
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/*.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel-smp-isdn-mISDN
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/drivers/isdn/hardware/mISDN/*.ko*
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/08/28 11:49:36  areq
+- new ISDN stack of the linux kernel version 2.6
+- raw PLD spec, NFY
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to