2010-05-14 22:39:19 +00:00
|
|
|
#
|
2011-02-14 00:32:45 +00:00
|
|
|
# spec file for package genius
|
2010-05-14 22:39:19 +00:00
|
|
|
#
|
2018-06-11 20:17:31 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-14 22:39:19 +00: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: genius
|
2018-06-11 20:17:31 +00:00
|
|
|
Version: 1.0.24
|
2012-03-29 06:56:32 +00:00
|
|
|
Release: 0
|
2010-05-14 22:39:19 +00:00
|
|
|
Summary: General purpose calculator and mathematics tool
|
2018-06-11 20:17:31 +00:00
|
|
|
License: GPL-3.0-or-later
|
2010-05-14 22:39:19 +00:00
|
|
|
Group: Productivity/Scientific/Math
|
2018-06-11 20:17:31 +00:00
|
|
|
URL: http://www.jirka.org/genius.html
|
2012-03-29 06:56:32 +00:00
|
|
|
Source: http://download.gnome.org/sources/genius/1.0/%{name}-%{version}.tar.xz
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: fdupes
|
2011-07-29 08:40:49 +00:00
|
|
|
BuildRequires: gnome-doc-utils-devel
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: intltool
|
2012-12-18 18:05:41 +00:00
|
|
|
BuildRequires: mpfr-devel >= 2.3.0
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2018-06-11 20:17:31 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-01-23 16:15:08 +00:00
|
|
|
BuildRequires: rarian-scrollkeeper-compat
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: readline-devel
|
2011-02-16 14:12:07 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2018-06-11 20:17:31 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.26.0
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.20.0
|
2017-01-17 12:14:35 +00:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-2.0) >= 0.3.0
|
2018-06-11 20:17:31 +00:00
|
|
|
BuildRequires: pkgconfig(pango) >= 1.22.0
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2011-02-13 20:52:23 +00:00
|
|
|
Recommends: %{name}-lang
|
2018-06-13 09:06:40 +00:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
%endif
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Genius is a general purpose calculator program similar in some aspects
|
|
|
|
to BC, Matlab, Maple or Mathematica. It is useful both as a simple
|
2017-09-11 11:04:29 +00:00
|
|
|
calculator and as a research or educational tool. The syntax
|
|
|
|
mimics how mathematics is usually written.
|
2010-05-14 22:39:19 +00:00
|
|
|
|
2017-09-11 11:04:29 +00:00
|
|
|
GEL (Genius Extenseion Language) is the name of its extension language.
|
|
|
|
Many of the standard genius functions are written in GEL itself.
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%package -n gnome-genius
|
2018-06-11 20:17:31 +00:00
|
|
|
Summary: GNOME interface for Genius, a general purpose calculator
|
2012-03-29 06:56:32 +00:00
|
|
|
Group: Productivity/Scientific/Math
|
2010-05-14 22:39:19 +00:00
|
|
|
Requires: %{name} = %{version}
|
2018-06-13 09:07:11 +00:00
|
|
|
%if 0%{?suse_version} < 1330
|
2018-06-13 09:06:40 +00:00
|
|
|
Requires(post): gtk3-tools
|
|
|
|
Requires(post): update-desktop-files
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): gtk3-tools
|
|
|
|
Requires(postun): update-desktop-files
|
|
|
|
Requires(postun): shared-mime-info
|
2018-06-13 09:07:11 +00:00
|
|
|
%endif
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%description -n gnome-genius
|
|
|
|
Genius is a general purpose calculator program similar in some aspects
|
|
|
|
to BC, Matlab, Maple or Mathematica. It is useful both as a simple
|
2017-09-11 11:04:29 +00:00
|
|
|
calculator and as a research or educational tool. The syntax mimics
|
|
|
|
how mathematics is usually written.
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%package devel
|
2017-09-11 11:04:29 +00:00
|
|
|
Summary: Development files for Genius, a general purpose calculator
|
2012-03-29 06:56:32 +00:00
|
|
|
Group: Productivity/Scientific/Math
|
2010-05-14 22:39:19 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Genius is a general purpose calculator program similar in some aspects
|
|
|
|
to BC, Matlab, Maple or Mathematica. It is useful both as a simple
|
2017-09-11 11:04:29 +00:00
|
|
|
calculator and as a research or educational tool. The syntax
|
|
|
|
mimics how mathematics is usually written.
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%lang_package
|
2018-06-11 20:17:31 +00:00
|
|
|
|
2010-05-14 22:39:19 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-02-16 14:12:07 +00:00
|
|
|
translation-update-upstream
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%build
|
2017-09-11 11:04:29 +00:00
|
|
|
export CFLAGS="%{optflags} -fstack-protector"
|
2010-05-14 22:39:19 +00:00
|
|
|
%configure \
|
2018-06-11 20:17:31 +00:00
|
|
|
--libexec=%{_libexecdir}/genius \
|
2010-05-14 22:39:19 +00:00
|
|
|
--disable-scrollkeeper \
|
|
|
|
--disable-update-mimedb
|
2010-09-13 12:47:21 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%install
|
2018-06-11 20:17:31 +00:00
|
|
|
%make_install
|
2010-05-14 22:39:19 +00:00
|
|
|
# We don't want the test plugin:
|
|
|
|
rm %{buildroot}%{_libdir}/genius/libtestplugin.*
|
|
|
|
rm %{buildroot}%{_datadir}/genius/plugins/test.plugin
|
|
|
|
# Not needed anymore on modern desktops:
|
|
|
|
rm %{buildroot}%{_datadir}/application-registry/genius.applications
|
|
|
|
rm %{buildroot}%{_datadir}/mime-info/genius.*
|
2011-02-13 20:52:23 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-05-14 22:39:19 +00:00
|
|
|
%fdupes %{buildroot}%{_datadir}/genius
|
|
|
|
|
2018-06-11 20:17:31 +00:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
%post -n gnome-genius
|
2011-02-13 20:52:23 +00:00
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%mime_database_post
|
|
|
|
|
|
|
|
%postun -n gnome-genius
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%mime_database_postun
|
|
|
|
%endif
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%files
|
2018-06-11 20:17:31 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README
|
2010-05-14 22:39:19 +00:00
|
|
|
%{_datadir}/genius
|
|
|
|
%{_bindir}/genius
|
|
|
|
|
|
|
|
%files -n gnome-genius
|
|
|
|
%{_bindir}/gnome-genius
|
2018-06-11 20:17:31 +00:00
|
|
|
%{_libexecdir}/genius
|
2010-05-14 22:39:19 +00:00
|
|
|
%{_datadir}/applications/gnome-genius.desktop
|
2015-03-12 15:22:36 +00:00
|
|
|
%{_datadir}/icons/hicolor/
|
2010-05-14 22:39:19 +00:00
|
|
|
%{_datadir}/mime/packages/genius.xml
|
|
|
|
|
|
|
|
%files devel
|
2018-06-11 20:17:31 +00:00
|
|
|
%doc AUTHORS ChangeLog TODO
|
2010-05-14 22:39:19 +00:00
|
|
|
%{_includedir}/genius
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|