File talk.spec of Package talk

# spec file for package talk (Version 0.17)
# Copyright (c) 2008 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

# norootforbuild

Name:           talk
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
License:        BSD 3-Clause
Group:          Productivity/Networking/Talk/Clients
BuildRequires:  ncurses-devel
Provides:       nkitb:/usr/bin/talk
AutoReqProv:    on
Version:        0.17
Release:        684
Summary:        Talk Client for Chatting with Another User
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         netkit-ntalk-%{version}.tar.bz2
Source1:        talk.xinetd
Source2:        ntalk.xinetd
Source3:        talkd.fw
Patch:          netkit-ntalk-%{version}.dif
Patch1:         netkit-ntalk-multibyte.diff
Patch2:         netkit-ntalk-%{version}-alt-talkd.patch
Patch3:         netkit-ntalk-%{version}-strip.diff
Patch4:         netkit-ntalk-%{version}-dont-resolve.patch
Patch5:         netkit-n%{name}-0.17-dots_in_usernames.patch
%global         ncursesw_config %(set -- %{_bindir}/ncursesw*-config; echo ${1})

This package contains the talk client, which allows you to chat with
another user on a different system. Talk is a communication program
which copies lines from one terminal to that of another user.

%package server
License:        BSD 3-Clause
Version:        0.17
Release:        684
Summary:        Talk Daemon to Chat with Another User
Group:          Productivity/Networking/Talk/Servers
Requires:       net-tools netcfg
Provides:       nkitserv:/usr/sbin/in.talkd
AutoReqProv:    on

%description server
This package contains the talk daemon, which allows you to chat with
another user on a different system. Talk is a communication program
which copies lines from one terminal to the terminal of another user.

%setup -n netkit-ntalk-%{version}
%patch1 -p1 -b .mb
%patch2 -p1

CFLAGS="$RPM_OPT_FLAGS" ./configure
cat <<-EOF >> MCONFIG
	LIBCURSES=$(%{ncursesw_config} --libs)
	CFLAGS += -D_GNU_SOURCE -fPIE  $(%{ncursesw_config} --cflags)
	LDFLAGS += -pie

install -d -m 755 $RPM_BUILD_ROOT/etc/xinetd.d
install -d -m 755 $RPM_BUILD_ROOT/usr/{bin,sbin}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man{1,8}
install -m 644 %{S:1} $RPM_BUILD_ROOT/etc/xinetd.d/talk 
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/xinetd.d/ntalk
#install firewall definitions format is described here:
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 755 %{S:3} $RPM_BUILD_ROOT/%{_fwdefdir}/talkd

[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

%doc BUGS ChangeLog
%doc %{_mandir}/man1/*

%files server
%doc BUGS ChangeLog
%doc %{_mandir}/man8/*
%config(noreplace) /etc/xinetd.d/talk
%config(noreplace) /etc/xinetd.d/ntalk

* Wed Aug 06 2008
- fixed Talk can't handle dots in user names (bnc#338368)
* Thu Apr 10 2008
- Use correct header for libncursesw
* Thu Mar 29 2007
- add ncurses-devel BuildRequires
* Thu Mar 08 2007
- added port definitions for SuSEfirewall2 [#247352] (talkd.fw)
* Wed Jan 10 2007
- fixed: talkd does not allow connection from hosts without DNS
  record [#227396] (dont-resolve.patch)
* Tue Sep 19 2006
- talk server runs as nobody.tty (originally was root.root)
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006
- Don't strip binaries.
* Tue Jun 21 2005
- build with fPIE/pie
* Mon Sep 20 2004
- fixed DoS [#44756] (alt-talkd.patch)
* Thu Feb 26 2004
- building as non-root
* Tue Mar 04 2003
- yet another multibyte patch fix (line erase not working correctly).
* Mon Feb 24 2003
- created config file for xinetd
* Tue Jan 14 2003
- more multibyte patch fixes.
* Tue Dec 17 2002
- various minor fixes in the multibyte patch.
* Wed Dec 11 2002
- added locale and multibyte support.
* Thu Mar 22 2001
- added split-aliases as provides
* Fri Mar 16 2001
- added Url
- claen up spec file
* Fri Mar 02 2001
- Initial package, split from nkitb
openSUSE Build Service is sponsored by