File statserial.spec of Package statserial

#
# spec file for package statserial (Version 1.1)
#
# Copyright (c) 2009 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
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
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* 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