SPECS: kbtsco.spec - better wrapper

shadzik shadzik at pld-linux.org
Fri Sep 15 16:05:41 CEST 2006


Author: shadzik                      Date: Fri Sep 15 14:05:41 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- better wrapper

---- Files affected:
SPECS:
   kbtsco.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/kbtsco.spec
diff -u SPECS/kbtsco.spec:1.2 SPECS/kbtsco.spec:1.3
--- SPECS/kbtsco.spec:1.2	Fri Sep 15 15:34:53 2006
+++ SPECS/kbtsco.spec	Fri Sep 15 16:05:36 2006
@@ -1,9 +1,11 @@
 # $Revision$, $Date$
+%bcond_without	kdialog # don't require kdialog on install 
+
 Summary:	Kbtsco
 Summary(pl):	Kbtsco
 Name:		kbtsco
 Version:	1.4.1
-Release:	0.1
+Release:	0.2
 License:	GPL
 Group:		X11/Applications
 Source0:	http://www.kde-apps.org/content/files/45427-%{name}.kmdr.tar.bz2
@@ -14,6 +16,7 @@
 Requires:	bluez-utils
 Requires:	btsco
 Requires:	kdewebdev-kommander
+%{?with_kdialog:Requires: kdebase-kdialog}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,6 +39,12 @@
 cat > $RPM_BUILD_ROOT%{_bindir}/kbtsco <<EOF
 #!/bin/sh
 
+%if %{with kdialog}
+if [ ! -x %{_bindir}/kmdr-executor ]; then
+exec %{_bindir}/kdialog --error "Package kdewebdev-kommander is missing.\nYou need to install it."
+exit 0
+fi
+%endif
 exec %{_bindir}/kmdr-executor %{_datadir}/%{name}/%{name}.kmdr
 
 EOF
@@ -55,6 +64,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/09/15 14:05:36  shadzik
+- better wrapper
+
 Revision 1.2  2006/09/15 13:34:53  shadzik
 - more Requires
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kbtsco.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list