File statserial.spec of Package statserial
#
# spec file for package statserial
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: statserial
Version: 1.1
Release: 716
BuildRequires: ncurses-devel
Provides: statseri
Obsoletes: statseri
AutoReqProv: on
Group: Hardware/Other
Summary: Helps to Debug Serial Lines
License: GPL v2 or later
Url: http://ca.geocities.com/jefftranter@rogers.com/
Source: ftp://metalab.unc.edu/pub/Linux/system/serial/%{name}-%{version}.tar.gz
Patch: %{name}-%{version}-device.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Statserial displays a table of the signals on a standard 9-pin or
25-pin serial port and indicates the status of the handshaking lines.
It can be useful for debugging problems with serial ports or modems.
Authors:
--------
Jeff Tranter <Jeff_Tranter@Mitel.COM>
%prep
%setup -q
%patch
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%__cc $RPM_OPT_FLAGS -lncurses -o statserial statserial.c
%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}/
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1/
install -m 755 statserial phone_log $RPM_BUILD_ROOT%{_bindir}/
install -m 644 statserial.1 $RPM_BUILD_ROOT%{_mandir}/man1/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README
%doc %{_mandir}/man?/*
%{_bindir}/*
%changelog