]> git.pld-linux.org Git - packages/pdnsd.git/blobdiff - pdnsd.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/pdnsd.git] / pdnsd.spec
index 6e6a1fb65ef31fb6a7168f1b88de91253ca0d103..9b169685141d491e666ecd44777813e21a94c8eb 100644 (file)
@@ -1,20 +1,19 @@
 Summary:       A caching dns proxy for small networks or dialin accounts
 Summary(pl):   DNS proxy serwer dla ma³ej sieci lub jednostki z po³±czeniem dialup
 Name:          pdnsd
-Version:       1.1.5
-Release:       2
+Version:       1.1.7a
+Release:       1
 License:       GPL
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
 Vendor:                Thomas Moestl
 Source0:       http://home.t-online.de/home/Moestl/%{name}-%{version}.tar.bz2
 Source1:       %{name}.init
-Patch0:                %{name}-typo.patch
 URL:           http://home.t-online.de/home/Moestl/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: flex
-Prereq:                rc-scripts
-Prereq:                /sbin/chkconfig
+PreReq:                /sbin/chkconfig
+PreReq:                rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -24,36 +23,39 @@ outages or hangups and to prevent DNS-dependent applications like
 Netscape Navigator from hanging.
 
 %description -l pl
-pdnsd jest serwerem proxy do us³ugi DNS zapisujacym bufor ze
+pdnsd jest serwerem proxy dla us³ugi DNS, zapisujacym bufor ze
 zgromadzonymi informacjami na dysku. Bêdzie on szczególnie u¿yteczny
 dla jednostki pracujacej w trybie off-line (np. poprzez po³±czenie
 dialup).
 
 %prep
 %setup -q
-%patch -p1
 
 %build
+aclocal
+%{__autoconf}
+autoheader
+automake -a -f
 %configure \
        --enable-ipv6
 %{__make}
 
 %install
-%{__rm} -rf $RPM_BUILD_ROOT
-%{__install} -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-%{__install} %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
-%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf.sample \
        $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf
 
-%{__gzip} -9nf AUTHORS ChangeLog NEWS README TODO \
+gzip -9nf AUTHORS ChangeLog NEWS README TODO \
        doc/txt/*.txt
 
 %clean
-%{__rm} -rf $RPM_BUILD_ROOT
-                                                                                
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add pdnsd
 if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
@@ -76,6 +78,6 @@ fi
 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
 %attr(755,root,root) %{_sbindir}/pdnsd
 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
-%attr(770,nobody,nobody) %dir %{_var}/cache/pdnsd
-%attr(660,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
+%attr(775,nobody,nobody) %dir %{_var}/cache/pdnsd
+%attr(664,nobody,nobody) %config(noreplace) %verify(not md5 size mtime) %{_var}/cache/pdnsd/pdnsd.cache
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pdnsd.conf
This page took 0.057276 seconds and 4 git commands to generate.