ltmodem.spec

l00natyk majkl w op.pl
Pon, 24 Sty 2005, 01:11:36 CET


Hola
Przerobiłem ltmodem.spec tak żeby śmigał z kernelem 2.6.8. Ostatni
ruszany był 2003.09 i były tam żródełka dla kernela 2.4 Dodałęm tylko
link do nowych żródełek i zrobiłem tak żeby pakował modoły lt_*.ko oraz
wywaliłem patcha.
U mnie z kernelem 2.6.8-4 działa spox. 
-- 
l00natyk <majkl w op.pl>
Plasticine Revolution Front
-------------- następna część ---------
# $Revision: 1.36 $, $Date: 2003/09/18 16:00:37 $
#
# Conditional build:
# _without_dist_kernel	- without kernel from distribution
#
Summary:	Kernel module for Lucent modems
Summary(de):	Kernmodul für Lucent-Modems
Summary(pl):	Moduł jądra dla modemów Lucent
Name:		ltmodem
Version:	8.31a9
Release:	0.1
License:	GPL
Group:		Base/Kernel
Source0:	http://linmodems.technion.ac.il/packages/ltmodem/archive/source/%{name}-%{version}.tar.gz
# Source0-md5:	a75ae27d40ade3aa698c0b0b290724f4
URL:		http://linmodems.technion.ac.il
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
BuildRequires:	autoconf
%{!?_without_dist_kernel:BuildRequires:	kernel-headers >= 2.3.0}
BuildRequires:	rpmbuild(macros) >= 1.118
ExclusiveArch:	%{ix86}
ExclusiveOS:	Linux

%description
ltmodem is a kernel module supporting Lucent-chip-based modems. These
modems are made available as the /dev/ttyLT0 device.

%description -l de
ltmodem ist ein Kernmodul, der unterstützt Lucent-Chip-basierte
Modems. Diese Modems werden als das /dev/ttyLT0-Gerät gewährt.

%description -l pl
ltmodem jest modułem jądra obsługującym modemy oparte na układach
Lucent. Modemy te udostępniane są jako urządzenie /dev/ttyLT0.

%package -n kernel-char-ltmodem
Summary:	Kernel module for Lucent modems
Summary(de):	Kernmodul für Lucent-Modems
Summary(pl):	Moduł jądra dla modemów Lucent
Release:	%{release}@%{_kernel_ver_str}
Group:		Base/Kernel
%{!?_without_dist_kernel:%requires_releq_kernel_up}
Requires(post,postun):	modutils >= 2.4.6-3
Requires:	dev >= 2.7.7-9
Conflicts:	ppp < 2.4.0
Obsoletes:	ltmodem
Obsoletes:	kernel-net-ltmodem

%description -n kernel-char-ltmodem
ltmodem is a kernel module supporting Lucent-chip-based modems. These
modems are made available as the /dev/ttyLT0 device.

%description -n kernel-char-ltmodem -l de
ltmodem ist ein Kernmodul, der unterstützt Lucent-Chip-basierte
Modems. Diese Modems werden als das /dev/ttyLT0-Gerät gewährt.

%description -n kernel-char-ltmodem -l pl
ltmodem jest modułem jądra obsługującym modemy oparte na układach
Lucent. Modemy te udostępniane są jako urządzenie /dev/ttyLT0.

%package -n kernel-smp-char-ltmodem
Summary:	Kernel module for Lucent modems
Summary(de):	Kernmodul für Lucent-Modems
Summary(pl):	Moduł jądra dla modemów Lucent
Release:	%{release}@%{_kernel_ver_str}
Group:		Base/Kernel
%{!?_without_dist_kernel:%requires_releq_kernel_smp}
Requires(post,postun):	modutils >= 2.4.6-3
Requires:	dev >= 2.7.7-9
Conflicts:	ppp < 2.4.0
Obsoletes:	ltmodem
Obsoletes:	kernel-smp-net-ltmodem

%description -n kernel-smp-char-ltmodem
ltmodem is a kernel module supporting Lucent-chip-based modems. These
modems are made available as the /dev/ttyLT0 device.

%description -n kernel-smp-char-ltmodem -l de
ltmodem ist ein Kernmodul, der unterstützt Lucent-Chip-basierte
Modems. Diese Modems werden als das /dev/ttyLT0-Gerät gewährt.

%description -n kernel-smp-char-ltmodem -l pl
ltmodem jest modułem jądra obsługującym modemy oparte na układach
Lucent. Modemy te udostępniane są jako urządzenie /dev/ttyLT0.

%prep
%setup -q
tar xzf source.tar.gz

%build
cd source
%{__autoconf}

CFLAGS="%{rpmcflags} -I%{_kernelsrcdir}/include"
%configure \
	--with-force=yes \
	--with-kernel=%{_kernelsrcdir}
%{__make}
mv lt_*.ko ..

%if 0
CFLAGS="$CFLAGS -D__KERNEL_SMP=1"
%configure \
	--with-force=yes \
	--with-kernel=%{_kernelsrcdir}
%{__make}
%endif

%install
rm -rf $RPM_BUILD_ROOT
install -dD $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
cp -f lt_*.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
%if 0
cp -f source/lt_*.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
%endif

rm -rf DOCs/Installers

%clean
rm -rf $RPM_BUILD_ROOT

%post	-n kernel-char-ltmodem
%depmod %{_kernel_ver}

%postun	-n kernel-char-ltmodem
%depmod %{_kernel_ver}

%post	-n kernel-smp-char-ltmodem
%depmod %{_kernel_ver}smp

%postun	-n kernel-smp-char-ltmodem
%depmod %{_kernel_ver}smp

%files -n kernel-char-ltmodem
%defattr(644,root,root,755)
%doc 1ST-READ DOCs/* source/{CHANGELOG,UPDATES-BUGS}
/lib/modules/%{_kernel_ver}/*/*

%if 0
%files -n kernel-smp-char-ltmodem
%defattr(644,root,root,755)
%doc 1ST-READ DOCs/* source/{CHANGELOG,UPDATES-BUGS}
/lib/modules/%{_kernel_ver}smp/*/*
%endif

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: ltmodem.spec,v $

Revision 1.37  2005/01/23 21:52:37  l00natyk
- updated to 8.31a9
  (this version works with kernel 2.6.8)

Revision 1.36  2003/09/18 16:00:37  pius
- updated to 8.26a9
  (this version also works with kernel compiled with gcc3)

Revision 1.35  2003/07/10 13:49:49  trojan
- added using depmod macro

Revision 1.34  2003/05/28 12:59:38  malekith
- massive attack: source-md5

Revision 1.33  2003/05/25 05:50:18  misi3k
- massive attack s/pld.org.pl/pld-linux.org/

Revision 1.32  2003/05/16 08:53:05  trojan
- fixed depmod in %%post and %%postun when build with _without_dist_kernel

Revision 1.31  2003/05/14 14:42:44  qboosh
- added depmod options so modules can be installed for kernel other than running

Revision 1.30  2003/04/11 10:01:37  qboosh
- standardized kernel modules perms (644,root,root)

Revision 1.29  2003/03/13 13:23:49  qboosh
- Obsoletes for old names

Revision 1.28  2003/03/03 14:57:11  adamg
- package are now named kernel{-smp}-char-ltmodem-*

Revision 1.27  2002/11/27 21:10:42  juandon
- new %%doc

Revision 1.26  2002/05/21 23:14:06  kloczek
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
             s/^automake -a -c -f/\%\{__automake\}/; \
	     s/^autoconf/\%\{__autoconf\}/"

Revision 1.25  2002/05/14 15:46:12  ankry
- fixed URL

Revision 1.24  2002/04/14 11:43:13  saq
- "SMP kernels are not supported with this driver", so %%if 0 SMP building
- pass kernel include dir manually, configure.in won't do this
- STBR on nest and test it

Revision 1.23  2002/04/14 11:31:56  saq
- introduce current module building scheme ({SM,U}P in one pass}
- cleanups
- NFY, need to fix SMP building

Revision 1.22  2002/04/14 10:30:53  filon
- updated to 6.00c2
- removed unneded docs

Revision 1.21  2002/04/07 07:22:49  filon
- updated to 6.00b14

Revision 1.20  2002/03/15 17:34:22  dzimi
- back revision 1.18, my fault with commit my workdir :/

Revision 1.18  2002/02/22 23:29:14  kloczek
- removed all Group fields translations (oure rpm now can handle translating
  Group field using gettext).

Revision 1.17  2002/01/18 02:13:45  kloczek
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"

Revision 1.16  2001/10/16 10:41:42  qboosh
- added empty base package to remove junk from .src.rpm name

Revision 1.15  2001/09/19 21:47:08  saq
- new module naming scheme
- s/-/_/g in @... suffix

Revision 1.14  2001/09/13 08:35:22  saq
- updated for 6.00a

Revision 1.13  2001/08/24 22:40:45  saq
- s/install -m644/cp/
- adapterized

Revision 1.12  2001/08/15 20:29:29  saq
- use %%_kernelsrcdir
- cleanups
- STB

Revision 1.11  2001/08/10 20:45:55  saq
- smp conditional build

Revision 1.10  2001/07/26 16:50:25  saq
- don't use macros not available in standard rpm. Define them in the spec.
(_kernel_ver, _kernel24)

Revision 1.9  2001/07/23 22:22:52  saq
A group commit:
- %define _kernel_ver and _kernel24 removed (already in rpm.macros)
- kernel modules get a @%{_kernel_ver} release suffix and conflict wrong
kernel version
- other packages get a @%{_kernel_series} release suffix and conflict
wrong kernel series
- need a rebuilt RPM to build these

Revision 1.8  2001/06/03 18:40:35  kloczek
- release 2.

Revision 1.7  2001/06/03 18:36:19  saq
- conflicts with kernel < 2.4.0 (incompatible new serial driver)
- STB

Revision 1.6  2001/05/30 05:54:55  kloczek
- simplifications in %install.

Revision 1.5  2001/05/28 19:12:18  saq
- updated to 5.99b
- won't work with PLD kernel

Revision 1.4  2001/03/19 22:22:51  saq
- removed /dev/* (went to dev.spec)

Revision 1.3  2001/03/19 17:22:17  saq
- upgrade to 5.78e

Revision 1.2  2000/12/04 17:27:02  saq
- update to 5.78
- a specific kernel's no longer required

Revision 1.1  2000/10/19 22:53:50  saq
- initial release
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: ltmodem.spec.diff
Type: text/x-patch
Size: 2026 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20050124/01a36786/ltmodem.spec.bin


Więcej informacji o liście dyskusyjnej pld-devel-pl