File mousepad.spec of Package mousepad

#
# spec file for package mousepad
#
# 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 http://bugs.opensuse.org/
#



Name:           mousepad
Version:        0.2.16
Release:        15.<RELEASE3>
License:        GPLv2+
Summary:        Simple Xfce-oriented Text Editor
Url:            http://www.xfce.org/projects/mousepad/
Group:          Productivity/Text/Editors
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-desktop.patch
Patch1:         %{name}-0.2.16-fix-find-and-replace.patch
Patch2:         %{name}-0.2.16-fix-find.patch
BuildRequires:  intltool
BuildRequires:  pango-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(libxfcegui4-1.0)
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang = %{version}

%description
Mousepad is a simple text editor for Xfce which has the following features:
* Complete support for UTF-8 text
* Cut/Copy/Paste and Select All text
* Search and Replace
* Font selection
* Word Wrap
* Character coding selection
* Auto character coding detection (UTF-8 and some codesets)
* Manual codeset setting
* Infinite Undo/Redo by word
* Auto Indent
* Multi-line Indent
* Display line numbers
* Drag and Drop
* Printing



%lang_package
%prep
%setup -q
%patch0
%patch1 -p1
%patch2 -p1

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file %{name}
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by