]> git.pld-linux.org Git - SPECS.git/blob - xmind.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / xmind.spec
1 # TODO
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
5
6 Summary:        Brainstorming and Mind Mapping
7 Name:           xmind
8 Version:        3.2.1
9 Release:        0.7
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
16 Source2:        %{name}.png
17 Source3:        %{name}.xml
18 Source4:        %{name}.sh
19 BuildRequires:  unzip
20 Requires:       eclipse-swt
21 Requires:       jre
22 Requires:       lame
23 Requires:       shared-mime-info
24 ExclusiveArch:  %{ix86} %{x8664}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _appdir %{_libdir}/%{name}
28
29 %description
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.
37
38 %prep
39 %setup -qc
40
41 %ifarch %{x8664}
42 %{__rm} -r XMind_Linux XMind_Windows XMind_Mac_OS_X
43 mv XMind_Linux{_64bit,}
44 %else
45 %{__rm} -r XMind_Linux_64bit XMind_Windows XMind_Mac_OS_X
46 find -name *x86*64* | xargs rm -rf
47 %endif
48
49 %install
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}
55
56 # desktop
57 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
58 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
59 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
60
61 # mime type
62 install -d $RPM_BUILD_ROOT%{_datadir}/mime/packages
63 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/mime/packages
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 %update_mime_database
70
71 %postun
72 %update_mime_database
73
74 %files
75 %defattr(644,root,root,755)
76 %doc *.txt *.html
77 %attr(755,root,root) %{_bindir}/%{name}
78 %{_pixmapsdir}/%{name}.png
79 %{_desktopdir}/%{name}.desktop
80 %{_datadir}/mime/packages
81
82 %dir %{_appdir}
83 %{_appdir}/*.html
84 %{_appdir}/*.txt
85
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
93
94 %dir %{_appdir}/Commons
95 %{_appdir}/Commons/.eclipseproduct
96 %dir %{_appdir}/Commons/configuration
97 %{_appdir}/Commons/configuration/config.ini
98 %{_appdir}/Commons/configuration/*.simpleconfigurator
99
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.*
This page took 0.800176 seconds and 3 git commands to generate.