2013-03-13 20:55:02 +01:00
#
# spec file for package gnome-calculator
#
2014-03-05 19:27:23 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2013-03-13 20:55:02 +01:00
#
# 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 : gnome-calculator
2013-11-12 17:45:10 +01:00
Version : 3.10.2
2013-03-13 20:55:02 +01:00
Release : 0
Summary : A GNOME Calculator Application
License : GPL-2.0+
Group : Productivity/Scientific/Math
Url : http://www.gnome.org
2013-09-25 17:26:23 +02:00
Source : http://download.gnome.org/sources/gnome-calculator/3.10/%{name} -%{version} .tar.xz
2014-03-05 19:30:01 +01:00
# PATCH-FIX-UPSTREAM gnome-calculator-appdata_xml.patch coolo@suse.de -- fix invalid XML in appdata, not submitted upstream, as the screenshot links change for gnome-calculator 3.12 anyway.
Patch0 : gnome-calculator-appdata_xml.patch
2013-03-13 20:55:02 +01:00
BuildRequires : fdupes
BuildRequires : intltool
BuildRequires : translation-update-upstream
BuildRequires : update-desktop-files
BuildRequires : yelp-tools
BuildRequires : pkgconfig(gio-2.0) >= 2.31
BuildRequires : pkgconfig(gtk+-3.0) >= 3.0
BuildRequires : pkgconfig(libxml-2.0)
Recommends: %{name} -lang
# gcactool was renamed to gnome-calculator. Last known version was 6.6.2
Obsoletes : gcalctool <= 6.6.2
2013-03-20 19:01:45 +01:00
# gcalctool-lang package should be obsoleted, obviously by the -lang package, but that's not possible.
2013-03-13 20:55:02 +01:00
# So for an easy upgrade path, we obsolete it in the main package.
Obsoletes : gcalctool-lang <= 6.6.2
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
2014-03-05 19:27:23 +01:00
%patch0 -p1
2013-03-13 20:55:02 +01:00
translation-update-upstream
%build
%configure
make %{?_smp_mflags}
%install
%make_install
2013-03-20 19:01:45 +01:00
%suse_update_desktop_file gcalctool Calculator
2013-03-13 20:55:02 +01:00
%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 COPYING NEWS
%doc %{_datadir} /help/C/%{name}
%{_bindir} /*
2013-09-19 21:26:39 +02:00
%dir %{_datadir} /appdata
%{_datadir} /appdata/gnome-calculator.appdata.xml
2013-03-13 20:55:02 +01:00
%{_datadir} /applications/*.desktop
%{_datadir} /glib-2.0/schemas/org.gnome.calculator.gschema.xml
%doc %{_mandir} /man?/*.*
%files lang -f %{name}.lang
%changelog