File mate-calc.spec of Package mate-calc
#
# spec file for mate-calc
#
# 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: mate-calc
Version: 1.8.0
Release: 0
License: GPL-2.0+
Summary: MATE Desktop calculator application
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: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: libxml2-python
BuildRequires: mate-common
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gmodule-export-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
Recommends: %{name}-lang
%lang_package
%description
This package provides mate-calc, 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, who has also kindly given me permission to
make it available.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags} V=1
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}/mate/
%post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/mate-calc
%{_bindir}/mate-calc-cmd
%{_bindir}/mate-calculator
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/%{name}-cmd.1.gz
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog