d94afd
%define	_bindir	/bin
d94afd
d94afd
Summary: A utility for configuring serial ports
d94afd
Name: setserial
d94afd
Version: 2.17
d94afd
Release: 45%{?dist}
d94afd
Source: https://sourceforge.net/projects/setserial/files/setserial/%{version}/%{name}-%{version}.tar.gz
d94afd
Patch0: setserial-2.17-fhs.patch
d94afd
Patch1: setserial-2.17-rc.patch
d94afd
Patch2: setserial-2.17-readme.patch
d94afd
Patch3: setserial-2.17-spelling.patch
d94afd
Patch4: setserial-hayesesp.patch
d94afd
Patch5: setserial-aarch64.patch
d94afd
License: GPL+
d94afd
Group: Applications/System
d94afd
URL: http://setserial.sourceforge.net/
d94afd
ExcludeArch: s390 s390x
d94afd
d94afd
BuildRequires: groff
d94afd
d94afd
%description
d94afd
Setserial is a basic system utility for displaying or setting serial
d94afd
port information. Setserial can reveal and allow you to alter the I/O
d94afd
port and IRQ that a particular serial device is using, and more.
d94afd
d94afd
%prep
d94afd
%setup -q
d94afd
# Use FHS directory layout.
d94afd
%patch0 -p1 -b .fhs
d94afd
d94afd
# Fixed initscript.
d94afd
%patch1 -p1 -b .rc
d94afd
d94afd
# Corrected readme file.
d94afd
%patch2 -p1 -b .readme
d94afd
d94afd
# Fixed spelling in help output.
d94afd
%patch3 -p1 -b .spelling
d94afd
d94afd
# Don't require hayesesp.h (bug #564947).
d94afd
%patch4 -p1 -b .hayesesp
d94afd
rm -f config.cache
d94afd
d94afd
# Support aarch64 (bug #926522).
d94afd
%patch5 -p1 -b .aarch64
d94afd
d94afd
%build
d94afd
%set_build_flags
d94afd
# Makefile expects CFLAGS to contain linker flags.
d94afd
CFLAGS="$CFLAGS $LDFLAGS"
d94afd
%configure
d94afd
make %{?_smp_mflags}
d94afd
d94afd
%install
d94afd
rm -rf ${RPM_BUILD_ROOT}
d94afd
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
d94afd
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
d94afd
make install DESTDIR=${RPM_BUILD_ROOT}
d94afd
d94afd
%files
d94afd
%defattr(-,root,root,-)
d94afd
%doc README rc.serial
d94afd
%{_bindir}/setserial
d94afd
%{_mandir}/man*/*
d94afd
d94afd
%changelog
d94afd
* Thu Jul 05 2018 Than Ngo <than@redhat.com> - 2.17-45
d94afd
- fixed typo
d94afd
d94afd
* Thu Jul 05 2018 Than Ngo <than@redhat.com> - 2.17-44
d94afd
- fixed source url
d94afd
d94afd
* Sun Feb 25 2018 Florian Weimer <fweimer@redhat.com> - 2.17-43
d94afd
- Use LDFLAGS from redhat-rpm-config
d94afd
d94afd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-42
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d94afd
d94afd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-41
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d94afd
d94afd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-40
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d94afd
d94afd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-39
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d94afd
d94afd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-38
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d94afd
d94afd
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-37
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d94afd
d94afd
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-36
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d94afd
d94afd
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-35
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d94afd
d94afd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-34
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d94afd
d94afd
* Mon Apr 29 2013 Tim Waugh <twaugh@redhat.com> 2.17-33
d94afd
- Support aarch64 (bug #926522).
d94afd
d94afd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-32
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d94afd
d94afd
* Fri Sep 21 2012 Tim Waugh <twaugh@redhat.com> 2.17-31
d94afd
- Fixed source URL.
d94afd
d94afd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-29
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d94afd
d94afd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-28
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d94afd
d94afd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-27
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d94afd
d94afd
* Wed Mar  3 2010 Tim Waugh <twaugh@redhat.com> 2.17-26
d94afd
- Added comments for all patches.
d94afd
d94afd
* Mon Feb 15 2010 Tim Waugh <twaugh@redhat.com> 2.17-25
d94afd
- Don't require hayesesp.h (bug #564947).
d94afd
d94afd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-24
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d94afd
d94afd
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-23
d94afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d94afd
d94afd
* Mon Feb 11 2008 Tim Waugh <twaugh@redhat.com> 2.17-22
d94afd
- Rebuild for GCC 4.3.
d94afd
d94afd
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 2.17-21
d94afd
- More specific license tag.
d94afd
d94afd
* Wed Feb  7 2007 Tim Waugh <twaugh@redhat.com> 2.17-20
d94afd
- Fixed mandir in fhs patch (bug #226411).
d94afd
- Don't run strip (bug #226411).
d94afd
- Fixed readme patch to talk about Fedora not Red Hat Linux (bug #226411).
d94afd
- Fixed build root tag (bug #226411).
d94afd
- Use SMP make flags (bug #226411).
d94afd
- Avoid %%makeinstall (bug #226411).
d94afd
- Fixed summary (bug #226411).
d94afd
d94afd
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.17-19.2.2
d94afd
- rebuild
d94afd
d94afd
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.17-19.2.1
d94afd
- bump again for double-long bug on ppc(64)
d94afd
d94afd
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.17-19.2
d94afd
- rebuilt for new gcc4.1 snapshot and glibc changes
d94afd
d94afd
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
d94afd
- rebuilt
d94afd
d94afd
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 2.17-19
d94afd
- Rebuild for new GCC.
d94afd
d94afd
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 2.17-18
d94afd
- Rebuilt.
d94afd
d94afd
* Mon Oct 11 2004 Tim Waugh <twaugh@redhat.com> 2.17-17
d94afd
- Spec file tidying by Robert Scheck (bug #135182).
d94afd
d94afd
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
d94afd
- rebuilt
d94afd
d94afd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
d94afd
- rebuilt
d94afd
d94afd
* Thu Nov 27 2003 Tim Waugh <twaugh@redhat.com> 2.17-14
d94afd
- Build requires groff (bug #111088).
d94afd
d94afd
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
d94afd
- rebuilt
d94afd
d94afd
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
d94afd
- rebuilt
d94afd
d94afd
* Fri Jan 10 2003 Tim Waugh <twaugh@redhat.com> 2.17-11
d94afd
- Fix spelling mistake (bug #80896).
d94afd
d94afd
* Wed Nov 20 2002 Tim Powers <timp@redhat.com> 2.17-10
d94afd
- rebuild in current collinst
d94afd
d94afd
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
d94afd
- automated rebuild
d94afd
d94afd
* Thu May 23 2002 Tim Powers <timp@redhat.com>
d94afd
- automated rebuild
d94afd
d94afd
* Mon Apr 22 2002 Tim Waugh <twaugh@redhat.com> 2.17-7
d94afd
- Don't strip binaries explicitly (bug #62566).
d94afd
d94afd
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
d94afd
- automated rebuild
d94afd
d94afd
* Tue Sep 11 2001 Tim Waugh <twaugh@redhat.com> 2.17-5
d94afd
- Fix init script (bug #52862).
d94afd
- Avoid temporary file vulnerability in init script.
d94afd
- Update README: it's --add, not -add.
d94afd
d94afd
* Tue Jun 19 2001 Florian La Roche <Florian.LaRoche@redhat.de> 2.17-4
d94afd
- add ExcludeArch: s390 s390x
d94afd
d94afd
* Wed May 30 2001 Tim Waugh <twaugh@redhat.com> 2.17-3
d94afd
- Sync description with specspo.
d94afd
d94afd
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> 2.17-2
d94afd
- automatic rebuild
d94afd
d94afd
* Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
d94afd
- update to 2.17.
d94afd
- FHS packaging.
d94afd
d94afd
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
d94afd
- compress man pages.
d94afd
d94afd
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
d94afd
- auto rebuild in the new build environment (release 2)
d94afd
d94afd
* Thu Feb 11 1999 Michael Maher <mike@redhat.com>
d94afd
- fixed bug #363
d94afd
d94afd
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
d94afd
- built package for 6.0
d94afd
d94afd
* Sat Jun 20 1998 Jeff Johnson <jbj@redhat.com>
d94afd
- upgraded to 2.1.14
d94afd
d94afd
* Thu May 07 1998 Prospector System <bugs@redhat.com>
d94afd
- translations modified for de, fr, tr
d94afd
d94afd
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
d94afd
- pulled into distribution
d94afd
- used setserial-2.12_CTI.tgz instead of setserial-2.12.tar.gz (former is
d94afd
  all that sunsite has) - not sure what the difference is.
d94afd
d94afd
* Thu Sep 25 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
d94afd
- added %%attr's
d94afd
- added sanity check for RPM_BUILD_ROOT
d94afd
- setserial is now installed into /bin, where util-linux puts it and all
d94afd
  startup scripts expect it.