File xournal.spec of Package xournal

#
# spec file for package xournal (Version 0.4.5)
#
# Copyright (c) 2010 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/
#



Name:           xournal
Url:            http://math.mit.edu/~auroux/software/xournal/
Version:        0.4.5
Release:        1
Summary:        An application for notetaking, sketching, and keeping a journal using a stylus
License:        GPLv2+
Group:          Productivity/Office/Other
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}.png
Patch0:         %{name}-unistd-decl.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gtk2-devel
BuildRequires:  libgnomecanvas-devel
BuildRequires:  libgnomeprintui-devel
BuildRequires:  libpoppler-glib-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
Xournal is an application for notetaking, sketching, keeping a journal
using a stylus. It is free software (GNU GPL) and runs on Linux (recent
distributions) and other GTK+/Gnome platforms. It is similar to
Microsoft Windows Journal or to other alternatives such as Jarnal and
Gournal.

%prep
%setup
%patch0

%build
autoreconf -fi
%configure
make %{_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
install -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by