[packages/apt-dater] add -host subpackage

glen glen at pld-linux.org
Mon Sep 9 23:22:01 CEST 2013


commit 42c928a17b82cc8cdf79ce17dcc99fe7475905d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 10 00:21:51 2013 +0300

    add -host subpackage

 apt-dater.spec | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/apt-dater.spec b/apt-dater.spec
index 819bec0..8684f01 100644
--- a/apt-dater.spec
+++ b/apt-dater.spec
@@ -2,7 +2,7 @@ Summary:	Terminal-based remote package update manager
 Name:		apt-dater
 Version:	0.9.0
 Release:	1
-License:	GPL
+License:	GPL v2
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/apt-dater/%{name}-%{version}.tar.gz
 # Source0-md5:	a8ac240ddfb7d4c500505f9d5d821185
@@ -19,6 +19,7 @@ BuildRequires:	sed >= 4.0
 BuildRequires:	tcl-devel
 Requires:	screen
 Requires:	tcl
+Suggests:	%{name}-host
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,6 +28,27 @@ package updates on a large number of remote hosts using SSH. It
 supports Debian-based managed hosts as well as OpenSUSE and CentOS
 based systems.
 
+%package host
+Summary:	host helper application for apt-dater
+Group:		Applications/System
+Requires:	lsb-release
+Requires:	openssh-server
+Suggests:	imvirt
+Suggests:	perl-imvirt
+Suggests:	sudo
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description host
+apt-dater provides an easy to use ncurses frontend for managing
+package updates on a large number of remote hosts using SSH. It
+supports Debian-based managed hosts as well as OpenSUSE and CentOS
+based systems.
+
+This package provides the helper application for apt-dater. It has to
+be installed on every apt-dater managed host.
+
 %prep
 %setup -q
 
@@ -48,6 +70,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -p clients/rpm/apt-dater-host $RPM_BUILD_ROOT%{_bindir}
+
 %find_lang %{name}
 
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
@@ -61,6 +85,10 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/apt-dater
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/cmd
-%{_mandir}/man1/apt-dater-host.1*
 %{_mandir}/man5/apt-dater.conf.5*
 %{_mandir}/man8/apt-dater.8*
+
+%files host
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/apt-dater-host
+%{_mandir}/man1/apt-dater-host.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apt-dater.git/commitdiff/42c928a17b82cc8cdf79ce17dcc99fe7475905d2



More information about the pld-cvs-commit mailing list