%kmdl ltmodem Summary: A modem driver for Lucent/Agere Winmodems. Name: ltmodem Version: 8.26a9 Release: 10%{?dist} License: GPL Group: System Environment/Kernel URL: http://ltmodem.heby.de/ Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %kmdl_parentdependencies %description This package contains a Linux driver and documentation for so called Winmodems with Lucent Apollo (ISA) and Mars (PCI) chipsets. Lucent AMR modems are not supported by this driver. The core communications code of these kits is the property of Agere Systems, Inc. (formerly known as Microelectronics Group of Lucent Technologies). The driver was developed and is maintained by Soumyendu Sarkar at Agere Systems, the open source parts were modified by Mark Spieth, Marvin Stodolsky and Christoph Hebeisen to implement some additional features. %package -n %kmdl_name %kmdl_dependencies Summary: FIXME Group: System Environment/Kernel %description -n %kmdl_name %kmdl_desc %prep %setup -q tar -zpxf source.tar.gz if grep 'atomic_t count;' %{kmdl_kernelsrcdir}/include/linux/tty.h > /dev/null; then perl -pi -e's,tty->count,atomic_read(&tty->count),g' source/serial-lt-2.4.c fi %build %if %{kmdl_userland} %else %kmdl_config cd source %configure --with-force=yes --with-kernel=%{kmdl_kernelsrcdir} make lt_modem.o lt_serial.o cd .. %endif %install rm -rf %{buildroot} %if %{kmdl_userland} mkdir -p %{buildroot}%{_sysconfdir}/devfs/conf.d install -p source/debian/etc_devfs_conf.d_ltmodem %{buildroot}%{_sysconfdir}/devfs/conf.d/ltmodem %else mkdir -p %{buildroot}%{kmdl_moduledir}/drivers/char install -p source/lt_modem.o source/lt_serial.o %{buildroot}%{kmdl_moduledir}/drivers/char/ %endif %clean rm -rf %{buildroot} %post ln -sf /dev/ltmodem /dev/modem %post -n %kmdl_name %kmdl_install %postun -n %kmdl_name %kmdl_remove %if %{kmdl_userland} %files %defattr(-,root,root,-) %doc 1ST-READ source/CHANGELOG DOCs source/UPDATES-BUGS utils %{_sysconfdir}/devfs/conf.d/ltmodem %else %files -n %kmdl_name %defattr(-,root,root,-) %dir %{kmdl_moduledir}/drivers %{kmdl_moduledir}/drivers/char %attr(-,root,uucp) %dev(c,62,64) /dev/ltmodem %endif %changelog * Tue Sep 23 2003 Axel Thimm - Initial build.