File mate-calc.spec of Package mate-calc
#
# spec file for package mate-calc
#
# 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/
#
%define _version 1.20
Name: mate-calc
Version: 1.20.1
Release: 0
Summary: MATE Desktop calculator application
License: GPL-2.0-or-later
Group: System/GUI/Other
Url: https://mate-desktop.org/
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE mate-calc-gtk-3.20.patch -- Restore GLib 2.48 and GTK+ 3.20 support.
Patch0: mate-calc-gtk-3.20.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: libxml2-python
BuildRequires: mate-common
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(gio-2.0) >= 2.48
BuildRequires: pkgconfig(glib-2.0) >= 2.48
BuildRequires: pkgconfig(gmodule-export-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
BuildRequires: pkgconfig(libxml-2.0)
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
%description
mate-calc is a calculator application that was part of the
OpenWindows Deskset of the Solaris 8 operating system.
It incorporates multiple precision arithmetic packages based on the
work of Professor Richard Brent.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 mate-autogen
%configure
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}/
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%endif
%files
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%doc ChangeLog README
%{_bindir}/mate-calc
%{_bindir}/mate-calc-cmd
%{_bindir}/mate-calculator
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/help/C/
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/%{name}-cmd.1%{?ext_man}
%files lang -f %{name}.lang
%changelog