File mousepad.spec of Package mousepad
#
# spec file for package mousepad
#
# Copyright (c) 2018 SUSE LINUX 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: @SERVICE@
Release: 0
Summary: Simple Text Editor for Xfce
License: GPL-2.0-or-later
Group: Productivity/Text/Editors
URL: http://goodies.xfce.org/projects/applications/mousepad
Source: %{name}-%{version}.tar.bz2
Source99: %{name}-rpmlintrc
BuildRequires: automake
BuildRequires: exo-tools
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: xfce4-dev-tools
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(libxfconf-0) >= 4.12.0
%glib2_gsettings_schema_requires
%description
Mousepad is a simple text editor for Xfce.
%lang_package
%prep
%setup -q
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--enable-maintainer-mode
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%endif
%files
%doc AUTHORS NEWS README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.xfce.%{name}.gschema.xml
%{_datadir}/metainfo/%{name}.appdata.xml
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions/
%{_datadir}/polkit-1/actions/org.xfce.%{name}.policy
%files lang -f %{name}.lang
%changelog