+%include /usr/lib/rpm/macros.perl
Summary: INN, the InterNet News System (news server)
Summary(de): das InterNet News System (News-Server)
Summary(fr): INN, le système InterNet News (serveur de news)
Summary(tr): INN, InterNet Haber Sistemi (haber sunucu)
Name: inn
Version: 2.3.1
-Release: 2
+Release: 14
License: Distributable
Group: Networking/Daemons
Group(de): Netzwerkwesen/Server
Source7: %{name}.init
Source8: %{name}-cnfsstat.cron
Source9: %{name}.logrotate
-Patch0: ftp://ftp.north.ad.jp/pub/IPv6/INN/tmp/inn-2.3.0-v6-20001011.diff.gz
+Source10: %{name}-etc-readers.conf
+#Patch0: ftp://ftp.north.ad.jp/pub/IPv6/INN/tmp/%{name}-2.3.0-v6-20001011.diff.gz
+Patch0: %{name}-2.3.1-v6-20010311.patch.gz
Patch1: %{name}-PLD.patch
Patch2: %{name}-install.patch
Patch3: %{name}-db3.patch
+Patch4: %{name}-setreuid.patch
+Patch5: %{name}-sec.patch
+Patch6: %{name}-gcc.patch
+Patch7: %{name}-frsize.patch
URL: http://www.isc.org/inn.html
Prereq: /sbin/chkconfig
Prereq: /sbin/ldconfig
+Prereq: rc-scripts
Prereq: sed
Prereq: fileutils
Prereq: %{name}-libs = %{version}
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: db3-devel
+BuildRequires: perl
Requires: cleanfeed >= 0.95.7b-4
Requires: rc-scripts >= 0.2.0
Requires: /etc/cron.d
+#Requires: perl-GD
Provides: nntpserver
-BuildRequires: byacc
-BuildRequires: db3-devel
-BuildRequires: perl
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/news
+# /usr/bin/pullnews doesn't provide perl(Net::NNTP) - perl-libnet does.
+%define _noautoprov "perl(Net::NNTP)"
+# it's necessary only for sample nnrpd_auth.pl hook
+%define _noautoreq "perl(CDB_File)"
+
%description
INN is a news server, which can be set up to handle USENET news, as
well as private "newsfeeds". There is a *LOT* of information about
setting up INN in /usr/share/doc -- read it.
+If you want innreport to generate graphs you need perl-GD package.
+
%description -l pl
INN jest serwerem news, który mo¿na skonfigurowaæ do obs³ugi USENET-u,
jak równie¿ do obs³ugi ,,prywatnych'' grup w sieciach intranetowych.
Ca³e mnóstwo po¿ytecznych informacji o konfigurowaniu INN-a znajdziesz
w katalogu /usr/share/doc/inn-*.
+Je¶li chcesz ¿eby innreport generowa³ wykresy musisz zainstalowaæ
+pakiet perl-GD.
+
%package libs
Summary: INN libraries
Summary(de): INN-Library
Group(fr): Development/Librairies
Group(pl): Programowanie/Biblioteki
Requires: %{name}-libs = %{version}
+Requires: db3-devel
%description devel
-This library is needed by several programs that interface to INN, such
-as newsgate or tin.
+Header files and developer documentations for INN libraries.
%description -l de devel
Diese Library wird von mehreren Programmen benötigt, die mit INN
s'interfacent avec INN, comme newsgate ou tin.
%description -l pl devel
-Biblioteka niezbêdna do dzia³ania kilku programów wspó³pracuj±cych z
-INN-em, takich jak newsgate czy tin.
+Pliki nag³ówkowe i dokumentacja programisty do bibliotek INN-a.
%description -l tr devel
INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+
%build
touch innfeed/*.[ly]
install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn
install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron
install %{SOURCE9} $RPM_BUILD_ROOT/etc/logrotate.d/inn
+install %{SOURCE10} $RPM_BUILD_ROOT/%{_sysconfdir}/readers.conf
rm -f $RPM_BUILD_ROOT/var/lib/news/history
%attr(664,news,news) %ghost /var/lib/news/history
# LOGS
-%attr(640,root,root) /etc/logrotate.d/inn
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/inn
%attr(770,root,news) %dir /var/log/news
%attr(770,root,news) %dir /var/log/archiv/news
%attr(770,news,news) %dir /var/run/news
%attr(755,root,root) %{_libdir}/news/rnews/*
# SUID
-%attr(4754,root,root) %{_bindir}/inndstart
+%attr(4754,root,news) %{_bindir}/inndstart
%attr(4754,root,news) %{_bindir}/startinnfeed
%attr(4754,root,uucp) %{_bindir}/rnews
%files devel
%defattr(644,root,root,755)
-%{_includedir}/inn/*
+%{_includedir}/inn
%{_libdir}/lib*.la
%{_libdir}/lib*.so
%{_mandir}/man3/*