packages: xmind/xmind.spec, xmind/xmind.sh (NEW)=?UTF-8?Q?=20?=- setup wrapper to use ~/....
glen
glen at pld-linux.org
Tue May 22 14:27:29 CEST 2012
Author: glen Date: Tue May 22 12:27:29 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- setup wrapper to use ~/.config/xmind for config and data
---- Files affected:
packages/xmind:
xmind.spec (1.1 -> 1.2) , xmind.sh (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/xmind/xmind.spec
diff -u packages/xmind/xmind.spec:1.1 packages/xmind/xmind.spec:1.2
--- packages/xmind/xmind.spec:1.1 Tue May 22 14:04:05 2012
+++ packages/xmind/xmind.spec Tue May 22 14:27:24 2012
@@ -6,7 +6,7 @@
Summary: Brainstorming and Mind Mapping
Name: xmind
Version: 3.2.1
-Release: 0.4
+Release: 0.6
License: EPL v1.0 / GPL v3
Group: Applications/Engineering
URL: http://www.xmind.net/
@@ -15,6 +15,7 @@
Source1: %{name}.desktop
Source2: %{name}.png
Source3: %{name}.xml
+Source4: %{name}.sh
BuildRequires: unzip
Requires: eclipse-swt
Requires: jre
@@ -48,8 +49,7 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}}
cp -af * $RPM_BUILD_ROOT%{_appdir}
-
-ln -s %{_appdir}/XMind_Linux/xmind-bin $RPM_BUILD_ROOT%{_bindir}/xmind
+install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}
# desktop
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
@@ -116,7 +116,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2012/05/22 12:27:24 glen
+- setup wrapper to use ~/.config/xmind for config and data
+
Revision 1.1 2012/05/22 12:04:05 glen
- new, based on MIB src.rpm:
http://mib.pianetalinux.org/MIB/2010.2/srpms/xmind-3.2.1-69mib2010.2.src.rpm
-
================================================================
Index: packages/xmind/xmind.sh
diff -u /dev/null packages/xmind/xmind.sh:1.1
--- /dev/null Tue May 22 14:27:29 2012
+++ packages/xmind/xmind.sh Tue May 22 14:27:24 2012
@@ -0,0 +1,6 @@
+#!/bin/sh
+XMIND_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/xmind"
+if [ ! -d "$XMIND_CONFIG" ]; then
+ install -d "$XMIND_CONFIG"
+fi
+exec @appdir@/XMind_Linux/xmind-bin -configuration $XMIND_CONFIG -data $XMIND_CONFIG "$@"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/xmind/xmind.spec?r1=1.1&r2=1.2
More information about the pld-cvs-commit
mailing list