File beaver.spec of Package beaver

# spec file for package beaver
# Copyright (c) 2011 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

# norootforbuild

Name:           beaver
Summary:        Beaver is an Early AdVanced EditoR
Version:        0.4.1
Release:        7
License:        GPL-2.0
Group:          System/GUI/GNOME
Source0:        %name-%version.tar.bz2
Patch0:         %{name}-add-mime-types.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf automake fdupes gcc gcc-c++ make
BuildRequires:  doxygen gtk2-devel pkg-config
BuildRequires:  intltool update-desktop-files

Beaver starts up fast and doesn't use a lot of memory.
Beaver's only dependency is GTK+2, so no need to install
other libraries eating your disk space. These things make
Beaver very suitable for old computers and use in small Linux distributions.

%setup -q
%patch0 -p1

make V=1 %{?_smp_mflags} all doc

%suse_update_desktop_file -r %name Utility TextEditor
%__mkdir_p %buildroot/%_datadir/doc/beaver
cp -R docs/html %buildroot/%_datadir/doc/beaver
rm %buildroot/%_libdir/beaver/plugins/*.la
# remove sample plugin doing nothing
rm %buildroot/%_libdir/beaver/plugins/
%fdupes -s %{buildroot}

%__rm -fr %buildroot

%if 0%{?suse_version} >= 1140



%dir %_libdir/beaver
%dir %_libdir/beaver/plugins
%dir %_datadir/beaver
%dir %_datadir/beaver/pixmaps
%dir %_datadir/beaver/resource
%dir %_datadir/doc/beaver/
%dir %_datadir/doc/beaver/html

openSUSE Build Service is sponsored by