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 = %version
Obsoletes: statseri < %version
Group: Hardware/Other
Summary: Helps to Debug Serial Lines
License: GPL-2.0+
Url: http://ca.geocities.com/jefftranter@rogers.com/
Source: ftp://metalab.unc.edu/pub/Linux/system/serial/%{name}-%{version}.tar.gz
Patch0: %{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.
%prep
%setup -q
%patch0
%build
%__cc $RPM_OPT_FLAGS -o statserial statserial.c -lncurses -ltinfo
%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