File tn5250.spec of Package tn5250

#
# spec file for package tn5250 (Version 0.16.5)
#
# Copyright (c) 2010 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:           tn5250
BuildRequires:  gcc-c++ ncurses-devel
Url:            http://tn5250.sourceforge.net/
License:        LGPLv2.1+
Group:          Productivity/Networking/Other
AutoReqProv:    on
Version:        0.16.5
Release:        449
Summary:        5250 Emulator
Source:         http://belnet.dl.sourceforge.net/sourceforge/tn5250/tn5250-%{version}.tar.bz2
Source1:        README.SuSE
Patch:          tn5250-0.16.2-terminfo.dif
Patch1:         tn5250-0.16.5-strings.patch
Patch2:         tn5250-0.16.5-no-build-date.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The 5250 is most commonly used for connecting to IBM's AS/400.	While
one can connect to an AS/400 with a VT100 emulator, it is not ideal. 
The problem is that the 5250 is a screen at a time terminal, whereas
the VT100 is a character at a time device.  The emulator uses telnet's
binary mode to transfer the 5250 data stream.



Authors:
--------
    Michael Madore <mmadore@blarg.net>

%package devel
License:        LGPLv2.1+
Summary:        5250 Emulator
Group:          Productivity/Networking/Other
Provides:       tn5250:/usr/include/tn5250/tn5250d.h
Requires:       tn5250 = %{version}
AutoReqProv:    on

%description devel
The 5250 is most commonly used for connecting to IBM's AS/400.	While
one can connect to an AS/400 with a VT100 emulator, it is not ideal. 
The problem is that the 5250 is a screen at a time terminal, whereas
the VT100 is a character at a time device.  The emulator uses telnet's
binary mode to transfer the 5250 data stream.



Authors:
--------
    Michael Madore <mmadore@blarg.net>

%prep
%setup
%patch -p1
%patch1
%patch2
cp -p %{SOURCE1} .

%build
DIR=$(find . -name configure -printf "%h\n")
%{?suse_update_config:%{suse_update_config -f $DIR }}
autoreconf -f -i
%configure --disable-static --with-pic
%{__make} %{?_smp_mflags}

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc BUGS COPYING README AUTHORS BUGS ChangeLog NEWS TODO XTerm README.SuSE
%{_libdir}/lib5250.so.0
%{_libdir}/lib5250.so.0.0.0
/usr/bin/*
%{_mandir}/man1/*
%{_mandir}/man5/*
/usr/share/tn5250

%files devel
%defattr(-,root,root)
/usr/include/tn5250.h
/usr/include/tn5250
%{_libdir}/lib5250.so
/usr/share/aclocal/tn5250.m4

%changelog
openSUSE Build Service is sponsored by