freemind/freemind.spec

185 lines
5.2 KiB
RPMSpec
Raw Permalink Normal View History

2015-04-08 00:06:30 +03:00
%define section free
%define gcj_support 0
2012-02-01 19:26:00 +04:00
Name: freemind
2015-04-08 00:06:30 +03:00
Version: 1.0.1
Release: 1
#Epoch: 1
2012-02-01 19:26:00 +04:00
Summary: Free mind mapping software
License: GPL
URL: http://freemind.sourceforge.net/
Group: Development/Java
2015-04-08 00:06:30 +03:00
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
2015-04-08 01:33:35 +03:00
#Patch5: %{name}-build.patch
2015-04-08 00:06:30 +03:00
Patch6: build.xml.patch
#Requires(post): desktop-file-utils
#Requires(postun): desktop-file-utils
2012-02-01 19:26:00 +04:00
Requires: firefox
Requires: crimson
Requires: simplyhtml
Requires: jakarta-commons-lang
Requires: jakarta-oro
Requires: jgoodies-forms
2015-04-08 00:06:30 +03:00
#Requires: jibx
2012-02-01 19:26:00 +04:00
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
2015-04-08 00:06:30 +03:00
#BuildRequires: jibx
2012-02-01 19:26:00 +04:00
BuildRequires: echomine-muse
BuildRequires: javahelp2
BuildRequires: batik
BuildRequires: batik-squiggle
BuildRequires: fop
2015-04-08 00:06:30 +03:00
#BuildRequires: xsd2jibx
2012-02-01 19:26:00 +04:00
%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
2015-04-08 00:06:30 +03:00
rm -rf %{buildroot}
%setup -q -n %{name}
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
%patch6 -p0
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
%build
chmod +x ./check_for_duplicate_resources.sh
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
export LC_ALL=en_US.UTF-8
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
ant all doc
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
%install
%{__rm} -rf %{buildroot}
2012-02-01 19:26:00 +04:00
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
2015-04-08 00:06:30 +03:00
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
2012-02-01 19:26:00 +04:00
2015-04-08 00:06:30 +03:00
#pushd freemind
2012-02-01 19:26:00 +04:00
%{_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
2015-04-08 00:06:30 +03:00
#popd
2012-02-01 19:26:00 +04:00
%{__mkdir_p} %{buildroot}%{_datadir}/mime/packages
%{__cp} -a %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/
2015-04-08 00:06:30 +03:00
%{__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
2012-02-01 19:26:00 +04:00
2015-04-08 01:33:35 +03:00
#if %{gcj_support}
#{_bindir}/aot-compile-rpm
#endif
2012-02-01 19:26:00 +04:00
%clean
%{__rm} -rf %{buildroot}
2015-04-08 01:33:35 +03:00
#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
2012-02-01 19:26:00 +04:00
%files
%defattr(0644,root,root,0755)
2015-04-08 00:06:30 +03:00
#doc history.txt license readme.txt
2012-02-01 19:26:00 +04:00
%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}
2015-04-08 00:06:30 +03:00
2012-02-01 19:26:00 +04:00
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/*.jar.*
%endif
%files javadoc
%defattr(0644,root,root,0755)
2015-04-08 00:06:30 +03:00
%{_docdir}/%{name}
2012-02-01 19:26:00 +04:00
%changelog