]> git.pld-linux.org Git - packages/atftp.git/blobdiff - atftp.spec
- rel 7
[packages/atftp.git] / atftp.spec
index 4e10298256f087be388d19166a5a480d45197643..8a5bd994e07b7cf9a04c4b9d499b1a1b34f3af8e 100644 (file)
@@ -5,7 +5,7 @@ Summary(pl):    Klient TFTP (Trivial File Transfer Protocol)
 Summary(tr):   Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
 Name:          atftp
 Version:       0.7
-Release:       4
+Release:       7
 License:       GPL
 Group:         Applications/Networking
 Source0:       ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz
@@ -13,9 +13,9 @@ Source0:      ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz
 Source1:       %{name}d.inetd
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libwrap-devel
 BuildRequires: libtool
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: libwrap-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -50,16 +50,16 @@ Summary(fr):        D
 Summary(pl):   Serwer tftp (trivial file transfer protocol)
 Summary(tr):   Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
 Group:         Networking/Daemons
-PreReq:                rc-inetd >= 0.8.1
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
+Requires:      rc-inetd >= 0.8.1
 Provides:      tftpdaemon
 Provides:      user(tftp)
 Obsoletes:     inetutils-tftpd
+Obsoletes:     tftp-server
 Obsoletes:     tftpd
 Obsoletes:     tftpd-hpa
-Obsoletes:     tftp-server
 Obsoletes:     utftpd
 
 %description -n atftpd
@@ -90,7 +90,8 @@ nale
 %setup -q
 
 %build
-rm -f missing
+sed -i -e 's#argz.h##g' Makefile*
+rm -f missing argz.h
 %{__libtoolize}
 %{__aclocal}
 %{__automake}
@@ -117,17 +118,11 @@ rm -rf $RPM_BUILD_ROOT
 %useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp
 
 %post -n atftpd
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
-fi
+%service -q rc-inetd reload
 
 %postun -n atftpd
-if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload
-fi
 if [ "$1" = "0" ]; then
+       %service -q rc-inetd reload
        %userremove tftp
 fi
 
This page took 0.028247 seconds and 4 git commands to generate.