+#
+# You can build tin with:
+# --define 'domain_name your.domain'
+# --define 'default_server default.nntp.server'
+#
Summary: tin News Reader
Summary(de): tin News-Reader
Summary(fr): Lecteur de news tin
Summary(tr): Haber okuyucu
Summary(uk): tin - ÐÒÏÇÒÁÍÁ ÄÌÑ ÞÉÔÁÎÎÑ ÔÅÌÅËÏÎÆÅÒÅÎÃ¦Ê Usenet
Name: tin
-Version: 1.5.14
+Version: 1.6.1
Release: 1
Epoch: 5
License: distributable
Group: Applications/News
-Source0: ftp://ftp.tin.org/pub/news/clients/tin/1.5/%{name}-%{version}.tar.bz2
+Source0: ftp://ftp.tin.org/pub/news/clients/tin/v1.6/%{name}-%{version}.tar.bz2
+# Source0-md5: b7028d15d8f7fc929ebd97dda6ac2164
Source1: %{name}.desktop
Source2: %{name}.attributes
Patch0: %{name}-enable_coloring.patch
--disable-mime-strict-charset \
--with-pcre \
--with-ncurses \
+ --enable-curses \
+ --with-screen=ncurses \
--with-nov-dir=%{_var}/spool/news \
--with-spooldir=%{_var}/spool/news \
--disable-locale \
--with-gpg=%{_bindir}/gpg \
--with-mailer=%{_libdir}/sendmail \
--enable-ipv6 \
- --disable-debug
+ --disable-debug \
+ %{?domain_name:--with-domain-name=%{domain_name}} \
+ %{?default_server:--with-nntp-default-server=%{default_server}}
%{__make} -C src
%find_lang %{name}
-gzip -9nf README MANIFEST doc/{CHANGES,TODO,DEBUG_REFS,WHATSNEW,*.txt}
-
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc *.gz doc/*.gz
+%doc README MANIFEST doc/{CHANGES,TODO,DEBUG_REFS,WHATSNEW,*.txt}
%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/tin/tinrc
%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/tin/attributes
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/tin.5*
+%{_mandir}/man5/mmdf*
%{_applnkdir}/Network/News/*