File gcalctool.spec of Package gcalctool
#
# spec file for package gcalctool
#
# Copyright (c) 2011 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: gcalctool
Version: 6.2.0
Release: 1
License: GPLv2+
Summary: A GNOME Calculator Application
Url: http://www.gnome.org
Group: Productivity/Scientific/Math
Source: http://download.gnome.org/sources/gcalctool/6.2/%{name}-%{version}.tar.bz2
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libxml-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
A GNOME calculator package based on calctool and MP library.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure\
--disable-scrollkeeper
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file -N "Gnome Calculator" -G Calculator %name Calculator
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/gcalctool/
%{_datadir}/glib-2.0/schemas/org.gnome.gcalctool.gschema.xml
%doc %{_mandir}/man?/*.*
%files lang -f %{name}.lang
%changelog