File tin.spec of Package tin
#
# spec file for package tin (Version 1.8.3 )
#
# 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: tin
BuildRequires: bison flex gpg2 ispell metamail ncurses-devel pcre-devel postfix uudeview
Url: http://www.tin.org/
License: Other License(s), see package
Group: Productivity/Networking/News/Clients
Requires: metamail
Version: 1.8.3
Release: 52
Summary: A News Reader
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-%{version}.tar.bz2
Patch: tin.patch
%description
Tin is a full-screen, easy to use Netnews reader. It can read news
locally (i.e. /var/spool/news) or remotely (rtin or tin -r option) via
an NNTP (Network News Transport Protocol) server. Docu: man tin or man
rtin.
Authors:
--------
Urs Janssen <urs@tin.org>
Michael Bienia <michael@vorlon.ping.de>
Dirk Nimmich <nimmich@muenster.de>
Toomas Soome <Toomas.Soome@microlink.ee>
Thomas E. Dickey <dickey@invisible-island.net>
%prep
%setup -q
%patch
%build
CFLAGS="%optflags" \
./configure \
--prefix=/usr \
--with-spooldir=/var/spool/news \
--with-nov-dir=/var/spool/news/over.view \
--with-nntp-default-server=localhost \
--with-mail-gateway=/etc/inews_mail_gateway \
--with-domain-name=/etc/inews_mail_gateway \
--with-libdir=/var/lib/news \
--with-inews-dir=/usr/lib/news \
--with-mime-default-charset=UTF-8 \
--with-screen=ncurses \
--with-pcre \
--with-gpg=gpg2 \
--disable-debug \
--enable-prototypes \
--enable-warnings \
--enable-color \
--disable-etiquette \
--disable-forgery \
--enable-locale \
--enable-ipv6 \
--mandir=%{_mandir} \
--infodir=%{_infodir}
make build
%install
make DESTDIR=%buildroot install install_sysdefs
rm -f %buildroot/usr/bin/metamutt
rm -f %buildroot%{_mandir}/man5/mbox.5*
%{find_lang} %{name}
%clean
rm -rf %buildroot
%files -f %{name}.lang
%defattr (-,root,root)
%doc README doc/*[^0-9]
%doc %_mandir/*/*
/usr/bin/*
/etc/tin
%changelog