File statserial.spec of Package statserial

#
# spec file for package statserial (Version 1.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           statserial
Version:        1.1
Release:        604
BuildRequires:  ncurses-devel
Provides:       statseri
Obsoletes:      statseri
Autoreqprov:    on
Group:          Hardware/Other
Summary:        Helps to Debug Serial Lines
License:        GNU General Public License (GPL) - all versions
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
gcc $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 -n statserial
* Sat Nov 11 2006 - ro@suse.de
- fix manpage permissions
* Mon Oct 30 2006 - mjancar@suse.cz
- change default device from /dev/cua1 to /dev/ttyS1
- link dynamicaly
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 - dmueller@suse.de
- don't build as root
* Mon Jun 21 2004 - ro@suse.de
- use -static instead of -N
* Wed Nov 29 2000 - smid@suse.cz
- renamed: statseri => statserial
* Thu May 04 2000 - smid@suse.de
- buildroot added
* Fri Mar 03 2000 - uli@suse.de
- moved man page to /usr/share
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Jul 20 1999 - uli@suse.de
- new package, version 1.1
openSUSE Build Service is sponsored by