[packages/remotebox: 2/2] up to 1.4

glen glen at pld-linux.org
Wed Oct 24 21:56:19 CEST 2012


commit 2955c5267d3d49dd14838e9a6660ad73f3c331eb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 24 22:55:40 2012 +0300

    up to 1.4

 remotebox.spec | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)
---
diff --git a/remotebox.spec b/remotebox.spec
index 0a62445..a90b3d7 100644
--- a/remotebox.spec
+++ b/remotebox.spec
@@ -1,16 +1,25 @@
+# TODO
+# - perl-Gtk2 dependency not autogenerated
+# - start menu integration
+# NOTE
+# - on server you need virtualbox and virtualbox extension pack (for rdp and
+#   pxe boot) installed
 %include	/usr/lib/rpm/macros.perl
 Summary:	Open Source VirtualBox Client with Remote Management
 Name:		remotebox
-Version:	0.4
-Release:	0.1
+Version:	1.4
+Release:	1
 License:	GPL
 Group:		Daemons
 URL:		http://remotebox.knobgoblin.org.uk/
-Source0:	http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-%{version}.tar
-# Source0-md5:	984c107980053f478be302f136be7f27
-BuildRequires:	perl-Gtk2
-BuildRequires:	perl-SOAP-Lite
+Source0:	http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-%{version}.tar.bz2
+# Source0-md5:	974a24792a55ff47be35125f6377ca67
 BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	sed >= 4.0
+Requires:	perl-Gtk2
+Suggests:	VirtualBox >= 4.2
+Suggests:	VirtualBox-Extension-Pack
+Suggests:	rdesktop
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -25,14 +34,16 @@ administer a remote installation of VirtualBox.
 %prep
 %setup -q -n RemoteBox-%{version}
 
+%{__sed} -i -e '
+	s|\$Bin/share/remotebox|%{_datadir}/%{name}|
+	s|$Bin/docs|%{_docdir}/%{name}-%{version}|
+' %{name} share/%{name}/rbox_gui_init.pl
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
-cp -a share/remotebox/* $RPM_BUILD_ROOT%{_datadir}/%{name}
-
-%{__sed} -i -e 's|\$Bin/share/remotebox|%{_datadir}/%{name}|g' \
-	$RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/rbox_gui_init.pl
+cp -a share/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/remotebox.git/commitdiff/2955c5267d3d49dd14838e9a6660ad73f3c331eb



More information about the pld-cvs-commit mailing list