%define section free %define gcj_support 0 Name: freemind Version: 1.0.1 Release: 1 #Epoch: 1 Summary: Free mind mapping software License: GPL URL: http://freemind.sourceforge.net/ Group: Development/Java Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-src-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}.sh Source3: %{name}.xml Source4: %{name}-bindings.patch Source5: build.xml.new Patch0: %{name}-patch-bindings.patch Patch1: %{name}-fix-hyperlink-function.patch #Patch5: %{name}-build.patch Patch6: build.xml.patch #Requires(post): desktop-file-utils #Requires(postun): desktop-file-utils Requires: firefox Requires: crimson Requires: simplyhtml Requires: jakarta-commons-lang Requires: jakarta-oro Requires: jgoodies-forms #Requires: jibx Requires: echomine-muse Requires: javahelp2 Requires: batik Requires: batik-squiggle Requires: fop BuildRequires: ant BuildRequires: ant-nodeps BuildRequires: ant-trax BuildRequires: desktop-file-utils BuildRequires: imagemagick BuildRequires: java-rpmbuild BuildRequires: crimson BuildRequires: simplyhtml BuildRequires: jakarta-commons-lang BuildRequires: jakarta-oro BuildRequires: jgoodies-forms BuildRequires: junit BuildRequires: jarbundler #BuildRequires: jibx BuildRequires: echomine-muse BuildRequires: javahelp2 BuildRequires: batik BuildRequires: batik-squiggle BuildRequires: fop #BuildRequires: xsd2jibx %if %{gcj_support} BuildRequires: java-gcj-compat-devel %else BuildRequires: java-devel BuildArch: noarch %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description FreeMind is a premier free mind-mapping software written in Java. The recent development has hopefully turned it into high productivity tool. We are proud that the operation and navigation of FreeMind is faster than that of MindManager because of one-click "fold / unfold" and "follow link" operations. So you want to write a completely new metaphysics? Why don't you use FreeMind? You have a tool at hand that remarkably resembles the tray slips of Robert Pirsig, described in his sequel to Zen and the Art of Motorcycle Maintenance called Lila. Do you want to refactor your essays in a similar way you would refactor software? Or do you want to keep personal knowledge base, which is easy to manage? Why don't you try FreeMind? Do you want to prioritize, know where you are, where you've been and where you are heading, as Stephen Covey would advise you? Have you tried FreeMind to keep track of all the things that are needed for that? %package javadoc Summary: Javadoc for %{name} Group: Development/Java %description javadoc Javadoc for %{name}. %prep rm -rf %{buildroot} %setup -q -n %{name} %patch6 -p0 %build chmod +x ./check_for_duplicate_resources.sh export LC_ALL=en_US.UTF-8 ant all doc %install %{__rm} -rf %{buildroot} desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1} %{__mkdir_p} %{buildroot}%{_datadir}/pixmaps %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps #pushd freemind %{_bindir}/convert -scale 32 images/FreeMindWindowIcon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %{_bindir}/convert -scale 16 images/FreeMindWindowIcon.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_bindir}/convert -scale 32 images/FreeMindWindowIcon.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_bindir}/convert -scale 48 images/FreeMindWindowIcon.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png #popd %{__mkdir_p} %{buildroot}%{_datadir}/mime/packages %{__cp} -a %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/ %{__rm} bin/dist/*.bat %{__rm} bin/dist/*.exe mkdir -p %{buildroot}{%{_bindir},%{_datadir},%{_docdir}} mkdir -p %{buildroot}%{_datadir}/%{name} cp -R bin/dist/* %{buildroot}%{_datadir}/%{name} #chmod +x {buildroot}{_datadir}/{name}/{name}.sh #{__ln_s}f ../share/{name}/{name}.sh {buildroot}{_bindir}/{name} %{__ln_s}f ../%{name}/doc %{buildroot}%{_docdir}/%{name} install -Dm0644 license readme.txt history.txt %{buildroot}%{_docdir}/%{name} install -Dm0755 bin/dist/%{name}.sh %{buildroot}/%{_bindir}/%{name} %{__rm} bin/dist/*.sh #if %{gcj_support} #{_bindir}/aot-compile-rpm #endif %clean %{__rm} -rf %{buildroot} #post #if %{gcj_support} #{update_gcjdb} #endif #{update_desktop_database} #{update_mime_database} #update_icon_cache hicolor #postun #if %{gcj_support} #{clean_gcjdb} #endif #{clean_desktop_database} #{clean_mime_database} #clean_icon_cache hicolor %files %defattr(0644,root,root,0755) #doc history.txt license readme.txt %attr(0755,root,root) %{_bindir}/%{name} %{_datadir}/applications/*%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/pixmaps/%{name}.png %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{_datadir}/%{name} %if %{gcj_support} %dir %{_libdir}/gcj/%{name} %attr(-,root,root) %{_libdir}/gcj/%{name}/*.jar.* %endif %files javadoc %defattr(0644,root,root,0755) %{_docdir}/%{name} %changelog