File freemind.spec of Package freemind
#
# spec file for package FreeMind (Version 0.9.0beta20)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: freemind
Version: 0.9.0beta
Release: 0
Summary: Notetaking tool for creating and viewing mindmaps written in Java
Group: Productivity/Other
License: GPL v2 or later
Url: http://freemind.sourceforge.net/
Requires: jre >= 1.4.2
BuildRequires: java-devel >= 1.4.2 ant-apache-regexp ant-nodeps
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
Source0: freemind-src-0.9.0_Beta_20.tar.gz
Source1: %{name}.desktop
Source2: x-%{name}.xml
Source3: %{name}.1
%description
FreeMind is a premier free mind-mapping software written in Java. The recent development has hopefully turned it into high productivity tool.
Authors:
--------
Christian Foltin
Jörg Müller
Petr Novak
Daniel Polansky
Dimitry Polivaev
%package plugins-help
Summary: Java Plugin for FreeMind to show an extended online help
Group: Productivity/Other
Requires: java >= 0:1.4, %{name} >= %{version}
%description plugins-help
This plugin will add a menu point 'Help -> Online Help'.
%package plugins-hoteqn
Summary: The IMGless Equation Viewer Applet
Group: Productivity/Other
Requires: java >= 0:1.4, %{name} >= %{version}
%description plugins-hoteqn
HotEqn is a AWT-based Java applet to view and display mathematical equations on the Web. The applet uses the familiar LaTeX notation to code its equations. Fontsizes are variable, so the applet can be used to display inline equations as well.
%package plugins-script
Summary: Scripting plugin
Group: Productivity/Other
Requires: java >= 0:1.4, %{name} >= %{version}
%description plugins-script
Scripting plugin.
%package plugins-svg
Summary: Java Plugin for FreeMind to export Mindmaps to SVG and PDF
Group: Productivity/Other
Requires: java >= 0:1.4, %{name} >= %{version}
%description plugins-svg
This plugin will add two menu points 'File -> Export -> SVG-Export' and 'File -> Export -> PDF-Export'.
%package plugins-time
Summary: Java Plugin for FreeMind to paste dates and set reminders
Group: Productivity/Other
Requires: java >= 0:1.4, %{name} >= %{version}
%description plugins-time
This plugin will add a menu point 'Tools -> Show Calendar...'.
%prep
rm -rf $RPM_BUILD_ROOT
%setup -n freemind
%build
ant
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
(cd ../bin/dist && cp -R accessories lib plugins $RPM_BUILD_ROOT%{_datadir}/%{name})
install -d -m 755 $RPM_BUILD_ROOT%{_iconsbasedir}/32x32/apps
install -m 644 images/FreeMindWindowIcon.png $RPM_BUILD_ROOT%{_iconsbasedir}/32x32/apps/%{name}.png
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/latex/*.txt
install -m 755 freemind.sh $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 doc/freemind.mm $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/applications
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/mime/packages
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages/
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
install -m 644 patterns.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
ln -s %{_datadir}/%{name}/%{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ -x $(which update-mime-database) ]
then
update-mime-database %{_datadir}/mime
fi
%postun
if [ -x $(which update-mime-database) ]
then
update-mime-database %{_datadir}/mime
fi
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/%{name}/%{name}.sh
%{_datadir}/%{name}/%{name}.mm
%{_datadir}/%{name}/accessories
%{_datadir}/%{name}/lib
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/x-%{name}.xml
%{_iconsbasedir}/32x32/apps/freemind.png
%{_mandir}/man1/%{name}.1.gz
%doc license history.txt
%config %{_sysconfdir}/%{name}
%files plugins-help
%defattr(-,root,root)
%{_datadir}/%{name}/plugins/FreemindHelp.xml
%{_datadir}/%{name}/plugins/help/
%files plugins-hoteqn
%defattr(-,root,root)
%{_datadir}/%{name}/plugins/Latex.xml
%{_datadir}/%{name}/plugins/latex/*.jar
%files plugins-script
%defattr(-,root,root)
%{_datadir}/%{name}/plugins/ScriptingEngine.xml
%{_datadir}/%{name}/plugins/script/
%files plugins-svg
%defattr(-,root,root)
%{_datadir}/%{name}/plugins/ExportSvg.xml
%{_datadir}/%{name}/plugins/svg/
%changelog
* Sun Oct 12 2008 - cubo@kewl.sk
- initial package release
- starting on v0.9.0beta20
- spec based on 'gerritbeine'