File jarnal.spec of Package jarnal
#
# spec file for package jarnal
#
# 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/
#
Name: jarnal
Version: 10.70
Release: 1
License: GPLv2+
Summary: Jarnal is a java based notetaking/sketching application
Url: http://www.dklevine.com/general/software/tc1000/jarnal.htm
Group: Productivity/Office/Other
Source0: %{name}-%{version}.tar.bz2
Source1: jarnal.desktop
Source2: jarnal.png
Source3: jarnal
BuildRequires: unzip
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: update-desktop-files
Requires: jre >= 1.5.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Jarnal is a java based notetaking/sketching application similar to
Microsoft One-Note. For tablet PCs it provides the ability to take
handwritten notes; for desktop PCs it allows users to take notes using
the mouse (or more sensibly) using the keyboard. Each page is stored in
SVG format, and the SVG pages are stored in a standard Zip file.
%prep
%setup -q
%{?suse_update_config:%{suse_update_config -f . }}
%build
%install
%suse_update_desktop_file -i jarnal Office Core-Office
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_bindir}
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
install -m 755 -d %{buildroot}%{_datadir}/%{name}-%{version}
cp -r *.jar %{buildroot}%{_datadir}/%{name}-%{version}/
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}/jarnal
ln -sf %{name}-%{version} %{buildroot}%{_datadir}/%{name}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{_datadir}/%{name}-%{version}/
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_bindir}/jarnal
%changelog