diff --git a/.cvsignore b/.cvsignore index e69de29..53d2257 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +setserial-2.17.tar.gz diff --git a/setserial-2.17-fhs.patch b/setserial-2.17-fhs.patch new file mode 100644 index 0000000..c6ef2d3 --- /dev/null +++ b/setserial-2.17-fhs.patch @@ -0,0 +1,24 @@ +--- setserial-2.17/Makefile.in.fhs Wed Jun 14 15:42:39 2000 ++++ setserial-2.17/Makefile.in Wed Jun 14 15:44:25 2000 +@@ -3,6 +3,8 @@ + + srcdir = @srcdir@ + VPATH = @srcdir@ ++bindir = @bindir@ ++mandir = @bindir@ + + VERSION = @RELEASE_VERSION@ + INSTALL = @INSTALL@ +@@ -26,9 +28,9 @@ + nroff -man setserial.8 > setserial.cat + + install: setserial setserial.8 +- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin +- $(STRIP) $(DESTDIR)/bin/setserial +- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8 ++ $(INSTALL_PROGRAM) setserial $(DESTDIR)$(bindir) ++ $(STRIP) $(DESTDIR)$(bindir)/setserial ++ $(INSTALL_DATA) setserial.8 $(DESTDIR)$(mandir)/man8 + + clean: + $(RM) setserial setserial.o setserial.cat *~ diff --git a/setserial.spec b/setserial.spec new file mode 100644 index 0000000..b708705 --- /dev/null +++ b/setserial.spec @@ -0,0 +1,83 @@ +%define _bindir /bin + +Summary: A utility for configuring serial ports. +Name: setserial +Version: 2.17 +Release: 2 +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 +- 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. diff --git a/sources b/sources index e69de29..d15d80f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c4867d72c41564318e0107745eb7a0f2 setserial-2.17.tar.gz