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
|
|
|
#
|
2019-07-09 21:31:03 +00:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2019-07-09 21:31:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-05-14 22:39:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: readline-devel
|
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)
|
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}
|
|
|
|
|
|
|
|
%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
|
2019-07-09 21:31:03 +00:00
|
|
|
%autosetup -p1
|
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-update-mimedb
|
2019-07-09 21:31:03 +00:00
|
|
|
%make_build
|
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
|
|
|
|
|
|
|
|
%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
|