]> git.pld-linux.org Git - packages/inn.git/blobdiff - inn.spec
- adapterized, BuildRequires: libtool
[packages/inn.git] / inn.spec
index 756a80b6b6754fc50e1fd8e4da0a9b32e66e7839..9610075120ec774fc62cb4214e12b53ebd844719 100644 (file)
--- a/inn.spec
+++ b/inn.spec
@@ -6,7 +6,7 @@ Summary(pl):    INN, serwer nowinek
 Summary(tr):   INN, InterNet Haber Sistemi (haber sunucu)
 Name:          inn
 Version:       2.3.2
-Release:       1
+Release:       2
 License:       Distributable
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
@@ -30,13 +30,10 @@ Patch3:             %{name}-db3.patch
 Patch4:                %{name}-setreuid.patch
 Patch5:                %{name}-sec.patch
 Patch6:                %{name}-frsize.patch
+Patch7:                %{name}-ac25x.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: autoconf
+BuildRequires: libtool
 BuildRequires: flex
 BuildRequires: bison
 BuildRequires: db3-devel
@@ -46,7 +43,13 @@ Requires:    cleanfeed >= 0.95.7b-4
 Requires:      rc-scripts >= 0.2.0
 Requires:      /etc/cron.d
 Requires:      psmisc >= 20.1
-#Requires:     perl-GD
+Requires:      util-linux
+Prereq:                /sbin/chkconfig
+Prereq:                /sbin/ldconfig
+Prereq:                rc-scripts
+Prereq:                sed
+Prereq:                fileutils
+Prereq:                %{name}-libs = %{version}
 Provides:      nntpserver
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -80,8 +83,12 @@ Summary(fr): Biblioth
 Summary(pl):   Biblioteki do INN-a
 Group:         Development/Libraries
 Group(de):     Entwicklung/Libraries
+Group(es):     Desarrollo/Bibliotecas
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
+Group(pt_BR):  Desenvolvimento/Bibliotecas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
 
 %description libs
 This library is needed by several programs that interface to INN, such
@@ -111,8 +118,12 @@ Summary(pl):       Pliki nag
 Summary(tr):   INN kitaplýðý
 Group:         Development/Libraries
 Group(de):     Entwicklung/Libraries
+Group(es):     Desarrollo/Bibliotecas
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
+Group(pt_BR):  Desenvolvimento/Bibliotecas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
 Requires:      %{name}-libs = %{version}
 Requires:      db3-devel
 
@@ -139,8 +150,12 @@ Summary:   Static INN libraries
 Summary(pl):   Biblioteki statyczne do INN
 Group:         Development/Libraries
 Group(de):     Entwicklung/Libraries
+Group(es):     Desarrollo/Bibliotecas
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
+Group(pt_BR):  Desenvolvimento/Bibliotecas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
 Requires:      %{name}-devel = %{version}
 
 %description static
@@ -196,6 +211,7 @@ sunucuya makaleyi yollar.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 touch innfeed/*.[ly]
@@ -364,10 +380,20 @@ else
     echo "news.notice                                     /var/log/news/news.notice"   >> /etc/syslog.conf.inn
 fi
 
-DESC="inn news server"; %chkconfig_add
+/sbin/chkconfig --add inn
+if [ -f /var/lock/subsys/inn ]; then
+       /etc/rc.d/init.d/inn restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/inn start\" to start inn news server." >&2
+fi
 
 %preun
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/news ]; then
+               /etc/rc.d/init.d/inn stop
+       fi
+       /sbin/chkconfig --del inn
+fi
 
 %post libs -p /sbin/ldconfig 
 %postun libs -p /sbin/ldconfig 
This page took 0.149802 seconds and 4 git commands to generate.