2 # - build from source: https://code.google.com/p/xmind3/
3 # - use system eclipse files not bundled copy
4 # - cleanup at least wrong os/arch files
6 Summary: Brainstorming and Mind Mapping
10 License: EPL v1.0 / GPL v3
11 Group: Applications/Engineering
12 URL: http://www.xmind.net/
13 Source0: http://dl2.xmind.net/xmind-downloads/%{name}-portable-%{version}.201011212218.zip
14 # Source0-md5: c1036d42b044aa81f65cdba745a7c44b
15 Source1: %{name}.desktop
23 Requires: shared-mime-info
24 ExclusiveArch: %{ix86} %{x8664}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _appdir %{_libdir}/%{name}
30 XMind is an open source project that contributes to building a
31 cutting-edge brainstorming/mind-mapping facility, focused on both
32 usability and extendability. It helps people in capturing ideas into
33 visually self-organized charts and sharing them for collaboration and
34 communication. Currently supporting mind maps, fishbone diagrams, tree
35 diagrams, org-charts, logic charts, and even spreadsheets. Often used
36 for knowledge management, meeting minutes, task management, and GTD.
42 %{__rm} -r XMind_Linux XMind_Windows XMind_Mac_OS_X
43 mv XMind_Linux{_64bit,}
45 %{__rm} -r XMind_Linux_64bit XMind_Windows XMind_Mac_OS_X
46 find -name *x86*64* | xargs rm -rf
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}}
52 cp -af * $RPM_BUILD_ROOT%{_appdir}
53 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}
54 sed -i -e 's,@appdir@,%{_appdir},' $RPM_BUILD_ROOT%{_bindir}/%{name}
57 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
58 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
59 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
62 install -d $RPM_BUILD_ROOT%{_datadir}/mime/packages
63 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/mime/packages
66 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/%{name}
78 %{_pixmapsdir}/%{name}.png
79 %{_desktopdir}/%{name}.desktop
80 %{_datadir}/mime/packages
86 %dir %{_appdir}/XMind_Linux
87 %{_appdir}/XMind_Linux*/xmind-bin.ini
88 %attr(755,root,root) %{_appdir}/XMind_Linux/xmind
89 %attr(755,root,root) %{_appdir}/XMind_Linux/xmind-bin
90 %{_appdir}/XMind_Linux/.env
91 %{_appdir}/XMind_Linux/about_files
92 %{_appdir}/XMind_Linux/eclipse_about.html
94 %dir %{_appdir}/Commons
95 %{_appdir}/Commons/.eclipseproduct
96 %dir %{_appdir}/Commons/configuration
97 %{_appdir}/Commons/configuration/config.ini
98 %{_appdir}/Commons/configuration/*.simpleconfigurator
100 %dir %{_appdir}/Commons/plugins
101 %{_appdir}/Commons/plugins/com.ibm.icu_*.jar
102 %{_appdir}/Commons/plugins/com.lowagie.itext*
103 %{_appdir}/Commons/plugins/javax.servlet_*.jar
104 %{_appdir}/Commons/plugins/net.sourceforge.jazzy_*.jar
105 %{_appdir}/Commons/plugins/net.xmind.*.jar
106 %{_appdir}/Commons/plugins/org.apache.commons.codec_*.jar
107 %{_appdir}/Commons/plugins/org.apache.commons.httpclient_*.jar
108 %{_appdir}/Commons/plugins/org.apache.commons.logging_*.jar
109 %{_appdir}/Commons/plugins/org.apache.tools.zip_*.jar
110 %{_appdir}/Commons/plugins/org.bouncycastle_*.jar
111 %{_appdir}/Commons/plugins/org.eclipse.*
112 %{_appdir}/Commons/plugins/org.json_*.jar
113 %{_appdir}/Commons/plugins/org.xmind.*