-Summary: uses internet talk protocol to create multiuser chat sessions
-Summary(de): benutzt das Internet-Talk-Protokoll zum Erstellen von Multiuser-Chat-Sitzungen
-Summary(fr): Utilise le protocole talk pour créer des discussions multi-utilisateurs
-Summary(pl): klient talk umo¿liwiaj±cy jednoczesn± rozmowê z kilkoma osobami
-Summary(tr): Talk protokolu kullanarak ikiden fazla kiþinin konuþmasýný saðlar
-Name: ytalk
-Version: 3.1
-Release: 1
-Copyright: BSD
-Group: Networking
-Source: http://www.eleves.ens.fr:8080/home/espel/ytalk/%{name}-%{version}.tar.gz
-Patch: ytalk.patch
-URL: http://www.eleves.ens.fr:8080/home/espel/ytalk/ytalk.html
-Buildroot: /tmp/%{name}-%{version}-root
+Summary: uses internet talk protocol to create multiuser chat sessions
+Summary(de): benutzt das Internet-Talk-Protokoll zum Erstellen von Multiuser-Chat-Sitzungen
+Summary(fr): Utilise le protocole talk pour créer des discussions multi-utilisateurs
+Summary(pl): klient talk umo¿liwiaj±cy jednoczesn± rozmowê z kilkoma osobami
+Summary(tr): Talk protokolu kullanarak ikiden fazla kiþinin konuþmasýný saðlar
+Name: ytalk
+Version: 3.1.1
+Release: 2
+License: BSD
+Group: Networking
+Group(pl): Sieciowe
+Source0: http://www.eleves.ens.fr/home/espel/ytalk/%{name}-%{version}.tar.gz
+Patch0: ytalk.patch
+URL: http://www.eleves.ens.fr/home/espel/ytalk/ytalk.html
+BuildRequires: ncurses-devel >= 5.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-ytalk is an extension of the standard Internet 'talk' protocol that allows
-more than two users per conversation, redirection of program output to others,
-as well as an easy-to-use menu of commands. It uses the same talk daemon
-as the standard talk program.
+ytalk is an extension of the standard Internet 'talk' protocol that
+allows more than two users per conversation, redirection of program
+output to others, as well as an easy-to-use menu of commands. It uses
+the same talk daemon as the standard talk program.
%description -l de
-ytalk ist eine Erweiterung des herkömmlichen Internet-'talk'-Protokolls, die
-mehr als zwei Benutzer pro Unterhaltung und die Umleitung von Programmausgaben
-an andere ermöglicht und ein einfaches Befehlsmenü enthält. Es verwendet
+ytalk ist eine Erweiterung des herkömmlichen
+Internet-'talk'-Protokolls, die mehr als zwei Benutzer pro
+Unterhaltung und die Umleitung von Programmausgaben an andere
+ermöglicht und ein einfaches Befehlsmenü enthält. Es verwendet
denselben Talk-Dämon wie das Standardprogramm.
%description -l fr
-ytalk est une extension du protocole standard Internet 'talk' qui accepte
-plus de deux utilisateurs par conversation, la redirection des affichages
-aux autres, aussi bien que menus de commandes simples à utiliser. Il
-utilise le même démon que le programme talk.
+ytalk est une extension du protocole standard Internet 'talk' qui
+accepte plus de deux utilisateurs par conversation, la redirection des
+affichages aux autres, aussi bien que menus de commandes simples à
+utiliser. Il utilise le même démon que le programme talk.
%description -l pl
Ytalk jest rozszerzeniem standardowego protoko³u internetowego talk.
%description -l tr
ytalk, standart talk yazýlýmýnýn geliþmiþ bir sürümüdür. Ýkiden fazla
kiþinin ayný anda konuþmalarýný ve program çýktýlarýnýn kullanýcýlara
-yönlendirilmelerini saðlar. Kolay kullanýlabilir bir komut menüsü içerir.
-Standart talkd daemon'u kullanýr.
+yönlendirilmelerini saðlar. Kolay kullanýlabilir bir komut menüsü
+içerir. Standart talkd daemon'u kullanýr.
%prep
%setup -q
%patch -p1
%build
+autoconf
+CPPFLAGS="-I%{_includedir}/ncurses" \
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --with-x
-make
+./configure %{_target_platform} \
+ --prefix=%{_prefix} \
+ --sysconfdir=%{_sysconfdir} \
+ --without-x
+make
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/X11R6/lib/X11/{,pl}/app-defaults
-make install \
- prefix=$RPM_BUILD_ROOT/usr \
- sysconfdir=$RPM_BUILD_ROOT/etc
+%{__make} install \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
+ sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}
-%files
-%defattr(644, root, root, 755)
-%attr(755, root, root) /usr/bin/*
-%attr(644, root, man) /usr/man/man1/*
-%config %verify(not size md5 mtime) /etc/ytalkrc
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
+ README
%clean
rm -rf $RPM_BUILD_ROOT
-%changelog
-* Sat Nov 21 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [3.1-1]
-- new autoconf based %build and %install,
-- added using $RPM_OPT_FLAGS during compile,
-- added "rm -rf $RPM_BUILD_ROOT" on top %install,
-- modified pl Summary,
-- added ytalk.patch with fix path to system ytalkrc (must be
- /etc/ytalk) and modify default ytalkrc.
-
-* Thu Jul 23 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [3.0.3-4]
-- added pl translation,
-- added buildroot support,
-- added %verify in %config file,
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
+%files
+%defattr(644,root,root,755)
+%doc README.gz
-* Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
-- built against new ncurses
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
-* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%config %verify(not size md5 mtime) %{_sysconfdir}/ytalkrc