File mate-terminal.spec of Package mate-terminal

#
# spec file for package mate-terminal
#
# Copyright (c) 2015 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/
#


%define _version 1.10
Name:           mate-terminal
Version:        1.10.1
Release:        0
Summary:        MATE Desktop terminal emulator
License:        GPL-3.0+
Group:          System/GUI/Other
Url:            http://mate-desktop.org
Source:         http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires:  libxml2-python
BuildRequires:  mate-common
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(dconf)
BuildRequires:  pkgconfig(gladeui-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(mate-desktop-2.0) >= 1.9.0
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(vte)
Requires:       gsettings-backend-dconf
Recommends:     %{name}-lang = %{version}
%glib2_gsettings_schema_requires

%description
MATE Terminal is a terminal emulation application that you can use
to perform the following actions:
 * Access a UNIX shell in the MATE environment.
 * Run any application that is designed to run on VT102, VT220, and
   xterm terminals.

%lang_package

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
    rm -rf %{buildroot}%{_datadir}/MateConf/
fi
# Axe out scrollkeeper stuff.
rm -rf %{buildroot}%{_localstatedir}/

%post
%desktop_database_post
%glib2_gsettings_schema_postun

%postun
%desktop_database_postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}.wrapper
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man?/%{name}.?%{?ext_man}
%{_datadir}/help/C/%{name}

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by