File leafpad.spec of Package leafpad

#
# spec file for package leafpad (Version 0.8.17)
#
# 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/
#

# norootforbuild


Name:           leafpad
Version:        0.8.17
Release:        1
Summary:        Lightweight Text Editor and Notepad Clone
Source0:        %name-%version.tar.bz2
Url:            http://tarot.freeshell.org/leafpad/
Group:          Productivity/Editors/Other
License:        GNU General Public License (GPL)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc gettext gettext-devel gtk2-devel intltool make
BuildRequires:  libgnomeprint-devel pkg-config
BuildRequires:  autoconf automake libtool update-desktop-files

%description
Leafpad is a simple GTK+ based text editor. The user interface is
similar to "notepad", and it aims to be lighter than GEdit and KWrite
and to be as useful as them.

Following features are intended...
- Minimum requirement: for portability
- Minimal menu item: to make full use of features and to learn easily
- No toolbar: to maximize area to view text
- Single document interface (SDI): to set out windows to view at a
  time
- Character coding auto detection: to open file quickly without
  multi-codeset problem

Leafpad is released under the GNU General Public License (GPL).

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
	--enable-print \
	--enable-gnomeprint \
	--enable-chooser
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%suse_update_desktop_file -r leafpad Utility TextEditor
%find_lang "%{name}"

%clean
%__rm -rf "%{buildroot}"

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

%changelog