[ltp] .spec file for mwavem-20010315.tar.gz
Fabrice Bellet
linux-thinkpad@www.bm-soft.com
Thu, 22 Mar 2001 02:33:46 +0100
--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hello,
I made a quick spec file to generate RPM from the latest
mwavem sources. You just have to adapt the kversion variable.
Fabrice
--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mwavem.spec"
%define kversion 2.2.18-7.ext3
Name: mwavem
Version: 20010315
Release: 1
Summary: mwavem - Mwave modem application and libraries.
Vendor: International Business Machines Corp. (IBM)
Copyright: GPL, (C) Copyright International Business Machines Corp. 1999. All Rights Reserved.
URL: http://oss.software.ibm.com/developer/opensource/linux/projects/mwave
Source: mwavem-%{version}.tar.gz
Packager: Fabrice Bellet <fabrice@gnu.org>
Group: Applications/Communications
Requires: mwavedd
BuildRoot: /var/tmp/mwavem-%{version}-root
%description
The Mwave Modem for Linux is a WinModem. It is composed of a
loadable kernel module and a user level application. Together
these components support direct attachment to public
switched telephone networks (PSTNs) and supports selected
world wide countries.
%package -n mwavedd
Version: 2.2.18_20010315
Group: Applications/Communications
Summary: mwavedd - Mwave modem device driver.
%description -n mwavedd
The Mwave Modem for Linux is a WinModem. It is composed of a
loadable kernel module and a user level application. Together
these components support direct attachment to public
switched telephone networks (PSTNs) and supports selected
world wide countries.
%prep
%setup
%build
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/lib/modules/%{kversion}/misc
install -m 644 drivers/mwavedd.o $RPM_BUILD_ROOT/lib/modules/%{kversion}/misc
mkdir -p $RPM_BUILD_ROOT/usr/local/lib
install -m 644 manager/libmwave.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 meio/libmeio.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 mwmutil/libmwmutil.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 mwwtt32/libmwwtt32.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 mwmlw32/libmwmlw32.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 mwmpw32/libmwmpw32.a $RPM_BUILD_ROOT/usr/local/lib
install -m 644 mwmbl/libmwmbl.a $RPM_BUILD_ROOT/usr/local/lib
mkdir -p $RPM_BUILD_ROOT/usr/local/share/mwave
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 644 mwave/*.dsp $RPM_BUILD_ROOT/usr/local/share/mwave
install -m 644 mwave/*.prf $RPM_BUILD_ROOT/usr/local/share/mwave
install -m 644 mwave/*.wtt $RPM_BUILD_ROOT/usr/local/share/mwave
install -m 755 mwavem $RPM_BUILD_ROOT/usr/local/bin
install -m 644 mwavem.conf $RPM_BUILD_ROOT/etc
install -m 755 mwaved $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/dev/modems
mknod --mode=660 $RPM_BUILD_ROOT/dev/modems/mwave c 10 219
%post -n mwavedd
depmod -a %{kversion}
%files
%attr(-,root,root) %doc LICENSE MWAVE-HOWTO MWAVE-HOWTO-SOURCE README
%attr(-,root,root) %config /etc/rc.d/init.d/*
%attr(-,root,root) %config /etc/mwavem.conf
/usr/local/bin/mwavem
/usr/local/lib/*
/usr/local/share/mwave/*
%files -n mwavedd
%attr(-,root,root) %doc LICENSE MWAVE-HOWTO MWAVE-HOWTO-SOURCE README
%attr(-,root,root) /lib/modules/%{kversion}/misc/*.o
/dev/modems/mwave
%changelog
* Thu Mar 22 2001 Fabrice Bellet <fabrice@gnu.org>
- update to version 20010315.
* Fri Oct 27 2000 Paul Schroeder <paulsch@us.ibm.com>
- First build of mwavem RPM.
--4Ckj6UjgE2iN1+kY--
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html