File pluma.spec of Package pluma
#
# spec file for pluma
#
# Copyright (c) 2014 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: pluma
Version: 1.8.1
Release: 0
License: GPL-2.0+
Summary: Text editor for the MATE desktop
Url: http://mate-desktop.org
Group: System/GUI/Other
Source: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
%glib2_gsettings_schema_requires
BuildRequires: mate-common
BuildRequires: fdupes
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(iso-codes)
BuildRequires: pkgconfig(pygobject-2.0)
BuildRequires: pkgconfig(pygtk-2.0)
BuildRequires: pkgconfig(pygtksourceview-2.0)
BuildRequires: pkgconfig(sm)
BuildRequires: python-libxml2
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
Provides: mate-text-editor = %{version}
Obsoletes: mate-text-editor < %{version}
Obsoletes: mate-text-editor-lang < %{version}
Recommends: %{name}-lang
%description
Pluma is a small, but powerful text editor designed specifically for
the MATE desktop. It has most standard text editor functions and fully
supports international text in Unicode. Advanced features include syntax
highlighting and automatic indentation of source code, printing and editing
of multiple documents in one window.
plumais extensible through a plugin system, which currently includes
support for spell checking, comparing files, viewing CVS ChangeLogs, and
adjusting indentation levels.
%package devel
Summary: Small and lightweight UTF-8 text editor
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: pkgconfig(gtksourceview-3.0)
Provides: mate-text-editor-devel = %{version}
Obsoletes: mate-text-editor-devel < %{version}
%description devel
Pluma is a small, but powerful text editor designed specifically for
the MATE desktop. It has most standard text editor functions and fully
supports international text in Unicode. Advanced features include syntax
highlighting and automatic indentation of source code, printing and editing
of multiple documents in one window.
%lang_package
%prep
%setup -q
# Fix debug permissions with messy hack
find ./*/* -type f -exec chmod 644 {} \;
find ./*/*/* -type f -exec chmod 644 {} \;
%build
%configure \
--disable-scrollkeeper \
--enable-python
make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot} -type f -name '*.la' -delete -print
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
rm -r %{buildroot}%{_datadir}/MateConf
fi
%post
/sbin/ldconfig
%desktop_database_post
%glib2_gsettings_schema_post
%postun
/sbin/ldconfig
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc README COPYING AUTHORS
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/help/C/%{name}/
%{_mandir}/man1/*
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/glib-2.0/schemas/*.xml
%files devel
%defattr(-,root,root)
%{_includedir}/pluma
%{_libdir}/pkgconfig/pluma.pc
%{_datadir}/gtk-doc/html
%files lang -f pluma.lang
%defattr(-,root,root)
%changelog