%define _bindir /bin
Summary: A utility for configuring serial ports.
Name: setserial
Version: 2.17
Release: 3
Source: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/setserial-%{version}.tar.gz
Patch0: setserial-2.17-fhs.patch
Copyright: GPL
Group: Applications/System
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
%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.
%prep
%setup -q
%patch0 -p1 -b .fhs
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
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc README rc.serial
%{_bindir}/setserial
%{_mandir}/man*/*
%changelog
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
- update to 2.17.
- FHS packaging.
* Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
- compress man pages.
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 2)
* Thu Feb 11 1999 Michael Maher <mike@redhat.com>
- fixed bug #363
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
- built package for 6.0
* Sat Jun 20 1998 Jeff Johnson <jbj@redhat.com>
- upgraded to 2.1.14
* Thu May 07 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
- 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 <drdisk@ds9.au.s.shuttle.de>
- 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.