]> git.pld-linux.org Git - packages/inn.git/blobdiff - inn.spec
- release 14
[packages/inn.git] / inn.spec
index 92f89f53d7b6a0dfd29e948a4ffe2d6320cbbe00..cbbbc12c314d04ffb74957ed9f0313f0ce8bbe69 100644 (file)
--- a/inn.spec
+++ b/inn.spec
@@ -1,3 +1,4 @@
+%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)
@@ -5,7 +6,7 @@ Summary(pl):    INN, serwer nowinek
 Summary(tr):   INN, InterNet Haber Sistemi (haber sunucu)
 Name:          inn
 Version:       2.3.1
-Release:       1
+Release:       14
 License:       Distributable
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
@@ -20,38 +21,57 @@ Source6:    %{name}.crontab
 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
@@ -93,10 +113,10 @@ Group(de): Entwicklung/Libraries
 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
@@ -107,8 +127,7 @@ Cette biblioth
 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
@@ -173,6 +192,11 @@ sunucuya makaleyi yollar.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+
 %build
 touch innfeed/*.[ly]
 
@@ -235,6 +259,7 @@ install %{SOURCE6} $RPM_BUILD_ROOT/etc/cron.d/inn
 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
 
@@ -268,7 +293,7 @@ rm -rf $RPM_BUILD_ROOT
 %post
 if [ -f /var/lib/news/history ]; then
        cd /var/lib/news
-       %{_bindir}/makehistory -i -r
+       %{_bindir}/makedbz -s `wc -l <history` -f history
        for i in dir hash index pag; do
                [ -f history.n.$i ] && mv history.n.$i history.$i
        done
@@ -277,7 +302,8 @@ if [ -f /var/lib/news/history ]; then
 else
        cd /var/lib/news
        cp /dev/null history
-       %{_bindir}/makehistory -i
+       %{_bindir}/makehistory
+       %{_bindir}/makedbz -s `wc -l <history` -f history
        for i in dir hash index pag; do
                [ -f history.n.$i ] && mv history.n.$i history.$i
        done
@@ -372,7 +398,7 @@ fi
 %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
@@ -475,6 +501,7 @@ fi
 %attr(755,root,root) %{_libdir}/news/rnews/*
 
 # SUID
+%attr(4754,root,news) %{_bindir}/inndstart
 %attr(4754,root,news) %{_bindir}/startinnfeed
 %attr(4754,root,uucp) %{_bindir}/rnews
 
@@ -505,7 +532,6 @@ fi
 %attr(755,root,root) %{_bindir}/innconfval
 %attr(755,root,root) %{_bindir}/innd
 %attr(755,root,root) %{_bindir}/inndf
-%attr(755,root,root) %{_bindir}/inndstart
 %attr(755,root,root) %{_bindir}/innfeed
 %attr(755,root,root) %{_bindir}/innmail
 %attr(755,root,root) %{_bindir}/innreport
@@ -566,7 +592,7 @@ fi
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/inn/*
+%{_includedir}/inn
 %{_libdir}/lib*.la
 %{_libdir}/lib*.so
 %{_mandir}/man3/*
This page took 0.036612 seconds and 4 git commands to generate.