Summary: A tool for selecting the serial port your modem is connected to.
Summary(ja): モデムが接続されているシリアルポートを選択するツール。
Name: modemtool
Version: 1.22
Release: 3vl1
Copyright: GPL
Group: Applications/System
Source: modemtool-%{version}.tar.gz
Patch0: modemtool-cua.patch
# added for Vine
Source1: modem-1.22.ja.py
Source2: modemtool.i18n
Patch1: modemtool-ppc.patch
Requires: python, pythonlib
#BuildArchitectures: noarch
BuildRoot: %{_tmppath}/modemtool-root
Vendor: Project Vine
Distribution: Vine Linux

%description
The modemtool is a simple graphical configuration tool for selecting
the serial port to which your modem is connected.

Install modemtool if you use a modem.

%description -l ja
modemtool はモデムが接続されているシリアルポートを選択するシンプルで
グラフィカルな設定ツールです。

モデムを使用するなら modemtool をインストールしてください。

%prep
%setup -q
%patch -p1 -b .cua

cp %{SOURCE1} modem-ja.py
cp %{SOURCE2} modemtool
%ifarch ppc
%patch1 -p1 -b .ppc
%endif

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/rhs/control-panel}

make	PREFIX=$RPM_BUILD_ROOT/usr \
	INSTALLBIN="install -m755" INSTALLDATA="install -m644" \
	install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/bin/modemtool
/usr/lib/rhs/control-panel/modemtool.init
/usr/lib/rhs/control-panel/modemtool.xpm
/usr/lib/rhs/control-panel/python/modem.py

%changelog
* Sat May 12 2001 <sagami@vinelinux.org>
- 1.22-3vl1: follow up with RH 1.22-3

* Mon Feb 21 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- 1.21_jp-2
- added ppc patch extracted from 1.21-6a on LinuxPPC-Dev-Rel-1.1

* Thu Aug 10 1999 Norihito Ohmori <ohmori@flatout.org>
- Japanize
- Japanese %summary and %description added.

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 6)

* Thu Mar 18 1999 Bill Nottingham <notting@redhat.com>
- cua -> ttyS

* Mon Aug 17 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
- made a noarch package
