# # spec file for package setserial # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: setserial Version: 2.17 Release: 733.1.2 Provides: util:/sbin/setserial #PreReq: %insserv_prereq #Requires: /sbin/isserial Url: http://setserial.sourceforge.net Summary: A utility for configuring serial ports License: GPL-2.0+ Group: Hardware/Other Source0: ftp://tsx-11.mit.edu/pub/linux/sources/sbin/setserial-%{version}.tar.bz2 Patch0: %{name}-%{version}-autoconf.diff Patch1: %{name}-%{version}-error.diff Patch2: %{name}-%{version}-prototypes.diff Patch3: %{name}-%{version}-nohayes.diff Patch4: %{name}-%{version}-binaryInUsr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: i486 %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. %prep %setup -q %patch0 %patch1 %patch2 %patch3 -p1 %patch4 %build CFLAGS="$RPM_OPT_FLAGS -Wall" \ %configure \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make %install mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} mkdir -p ${RPM_BUILD_ROOT}/etc/init.d mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} %make_install STRIP=: #UsrMerge mkdir -p ${RPM_BUILD_ROOT}/bin ln -sf %{_bindir}/setserial ${RPM_BUILD_ROOT}/bin #EndUsrMerge %clean rm -rf $RPM_BUILD_ROOT %postun %{insserv_cleanup} %files %defattr(-,root,root) %doc README setserial.lsm rc.serial %doc %{_mandir}/man?/* %{_bindir}/* #UsrMerge /bin/* #EndUsrMerge %changelog * Fri Feb 17 2012 rschweikert@suse.com - place binary in /usr tree (UsrMerge project) - add patch to modify the initialization script to properly handle relocated binaries * Mon Feb 13 2012 dvaleev@suse.com - removed symlink to obsoleted init script * Tue Jan 10 2012 dlovasko@suse.com - Removed setserial.init (obsolete) * Wed Dec 21 2011 coolo@suse.com - remove call to suse_update_config (very old work around) * Fri Jul 30 2010 coolo@novell.com - recent kernels do no longer have linux/hayesesp.h * Mon Sep 29 2008 anicka@suse.cz - disable init script by default (bnc#429523) * Sun Aug 17 2008 aj@suse.de - Fix initscript. * Fri Jul 28 2006 olh@suse.de - setserial bootscript depends on $local_fs and boot.loadmodules (#181972) * Mon May 22 2006 schwab@suse.de - Don't strip binaries. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Thu Sep 8 2005 mjancar@suse.cz - add rcsetserial symlink (#63594) * Thu Mar 4 2004 ro@suse.de - rcscript: remain silent in "stop" case * Sun Jan 11 2004 adrian@suse.de - add %%defattr * Thu Oct 23 2003 mjancar@suse.cz - implement status in rcscript * Wed Sep 10 2003 mjancar@suse.cz - don't try to setup nonexistent serial ports in rcscript (#30361) - fix missing function prototypes * Fri Sep 5 2003 mjancar@suse.cz - return 1 on error (#30152) * Sat Mar 15 2003 olh@suse.de - run post script on all archs, dummy script for some archs change logic to 'run if needed' * Wed Aug 14 2002 nadvornik@suse.cz - added PreReq: %%insserv_prereq [bug #17698] * Thu Jul 11 2002 nadvornik@suse.cz - renamed init script to setserial - do not source /etc/rc.config - stop and status return correct value * Wed Jun 12 2002 ro@suse.de - use new macro for insserv * Thu Mar 22 2001 ro@suse.de - added split-aliases as provides * Wed Feb 14 2001 kukuk@suse.de - Add init.d/serial script moved from aaa_base, fix setserial location and output messages [Bug #5420] * Sat Oct 21 2000 kukuk@suse.de - Fix typo in spec file * Fri Oct 20 2000 kukuk@suse.de - Initial version, split from util package