%define _bindir /bin Summary: A utility for configuring serial ports. Summary(ja): シリアルポートを設定するユーティリティ Name: setserial Version: 2.17 Release: 14%{?_dist_release} Source: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/setserial-%{version}.tar.gz Patch0: setserial-2.17-fhs.patch Patch1: setserial-2.17-rc.patch Patch2: setserial-2.17-readme.patch Patch3: setserial-2.17-spelling.patch License: GPL Group: Applications/System Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-root ExcludeArch: s390 s390x URL: http://setserial.sourceforge.net/ %description Setserial is a basic system utility for displaying or setting serial port information. Setserial can reveal and allow you to alter the I/O port and IRQ that a particular serial device is using, and more. You should install setserial because you may find it useful for detecting and/or altering device information. %description -l ja setserial はシリアルポートの状態を表示したり設定したりする 基本的なシステムユーティリティです.setserial を使って I/O ポートの変更や,特定のシリアルデバイスが使う IRQ を設定したり することが出来ます. デバイス情報を検出したり変更したり出来るのは非常に便利なので setserial をインストールして下さい. %prep %setup -q %patch0 -p1 -b .fhs %patch1 -p1 -b .rc %patch2 -p1 -b .readme %patch3 -p1 -b .spelling rm -f config.cache %build %configure make %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 %makeinstall STRIP=: %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc README rc.serial %{_bindir}/setserial %{_mandir}/man*/* %changelog * Sat Oct 11 2008 Shu KONNO 2.17-14vl5 - applied new versioning policy, spec in utf-8 * Fri Jul 18 2003 Ryoichi INAGAKI 2.17-13vl1 - rebuild with new toolchains - s/Copyright/License/ - based on 2.17-13 from Rawhide - Fri Jan 10 2003 Tim Waugh 2.17-11 - Fix spelling mistake (bug #80896). - Mon Apr 22 2002 Tim Waugh 2.17-7 - Don't strip binaries explicitly (bug #62566). - Tue Sep 11 2001 Tim Waugh 2.17-5 - Fix init script (bug #52862). - Avoid temporary file vulnerability in init script. - Update README: it's --add, not -add. - Tue Jun 19 2001 Florian La Roche 2.17-4 - add ExcludeArch: s390 s390x * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji - 2.17-2vl1 - based on 2.17-2 from Rawhide - added Japanese summary and description * Wed Jul 12 2000 Prospector - automatic rebuild * Wed Jun 14 2000 Jeff Johnson - update to 2.17. - FHS packaging. * Mon Feb 7 2000 Jeff Johnson - compress man pages. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Thu Feb 11 1999 Michael Maher - fixed bug #363 * Thu Dec 17 1998 Michael Maher - built package for 6.0 * Sat Jun 20 1998 Jeff Johnson - upgraded to 2.1.14 * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Thu Oct 23 1997 Donnie Barnes - pulled into distribution - used setserial-2.12_CTI.tgz instead of setserial-2.12.tar.gz (former is all that sunsite has) - not sure what the difference is. * Thu Sep 25 1997 Christian 'Dr. Disk' Hechelmann - added %attr's - added sanity check for RPM_BUILD_ROOT - setserial is now installed into /bin, where util-linux puts it and all startup scripts expect it.