]> git.pld-linux.org Git - packages/amanda.git/blobdiff - amanda.spec
- started update to 2.5.0p2
[packages/amanda.git] / amanda.spec
index 055b97a7fa63f04f47472bf8a5287ffb392d5ed5..6f24100b5348c8affa5ce35325bd35512eab070a 100644 (file)
@@ -1,3 +1,5 @@
+# TODO:
+# - add missing files to proper subpackages
 #
 # Conditional build:
 %bcond_with    xfs     # with support for xfsdump
@@ -5,12 +7,12 @@
 Summary:       A network-capable tape backup solution
 Summary(pl):   Sieciowo zorientowany system tworzenia kopii zapasowych
 Name:          amanda
-Version:       2.4.5
-Release:       4
+Version:       2.5.0p2
+Release:       0.1
 License:       BSD
 Group:         Networking/Utilities
-Source0:       http://dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
-# Source0-md5: 1960b7875424e412d042bc92a1548d7f
+Source0:       http://umn.dl.sourceforge.net/amanda/%{name}-%{version}.tar.gz
+# Source0-md5: 073828b8b5a5c377a08f8f19b5eccf85
 Source1:       %{name}-srv.crontab
 Source2:       %{name}.inetd
 Source3:       %{name}idx.inetd
@@ -23,13 +25,11 @@ Patch3:             %{name}-tar.patch
 URL:           http://www.amanda.org/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
-BuildRequires: cpio
 BuildRequires: dump
 BuildRequires: flex
 BuildRequires: libtool
 BuildRequires: readline-devel >= 4.2
-BuildRequires: rpmbuild(macros) >= 1.202
-BuildRequires: tar
+BuildRequires: rpmbuild(macros) >= 1.268
 %{?with_xfs:BuildRequires:     xfsdump}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -133,7 +133,7 @@ typu streamer).
 %patch3 -p1
 
 # kill libtool.m4 copy
-head -n 1039 acinclude.m4 > acinc.tmp
+head -n 1147 acinclude.m4 > acinc.tmp
 mv -f acinc.tmp acinclude.m4
 
 %build
@@ -213,33 +213,25 @@ fi
 
 %post client
 /sbin/ldconfig
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd restart 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 client
 /sbin/ldconfig
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd restart
+if [ "$1" = 0 ]; then
+       %service -q rc-inetd reload
 fi
 
 %post server
 /sbin/ldconfig
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd restart 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
 if [ "$1" = "1" ]; then
        echo "Don't forget to edit /etc/cron.d/amanda-srv." 1>&2
 fi
 
 %postun server
 /sbin/ldconfig
-if [ -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd restart
+if [ "$1" = 0 ]; then
+       %service -q rc-inetd reload
 fi
 
 %files libs
@@ -337,7 +329,7 @@ fi
 %attr(755,root,root) %{_libdir}/libamclient*.so
 %attr(755,root,root) %{_libexecdir}/versionsuffix
 %attr(755,root,root) %{_libexecdir}/amandad
-%attr(4754,root,amanda) %{_libexecdir}/amqde
+#%attr(4754,root,amanda) %{_libexecdir}/amqde
 %attr(4754,root,amanda) %{_libexecdir}/calcsize
 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
 %attr(755,root,root) %{_libexecdir}/patch-system
This page took 0.041412 seconds and 4 git commands to generate.