genius/genius.spec
Dominique Leuenberger 41ab41610b Accepting request 522365 from home:luc14n0:branches:GNOME:Apps
- Update to version 1.0.23:
  + Stop depending the build system on gnome-common.
  + Help is now built as HTML and displayed in the browser,meaning
    it actually works, links work, and it doesn't depend on any
    particular desktop environment being installed. The HTML help
    is also shown in the command line version when "manual" is run.
  + New example for Duffing equation.
  + New example on traces of the Peano function.
  + Couple of fixes/improvements in the examples.
  + Fix a crash on SurfacePlotDrawLines/Points.
  + Updated translations.
- Drop some %dir and %doc: no longer needed.

OBS-URL: https://build.opensuse.org/request/show/522365
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/genius?expand=0&rev=42
2017-09-08 19:29:18 +00:00

158 lines
5.0 KiB
RPMSpec

#
# spec file for package genius
#
# Copyright (c) 2017 SUSE LINUX 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: genius
Version: 1.0.23
Release: 0
Summary: General purpose calculator and mathematics tool
License: GPL-3.0+
Group: Productivity/Scientific/Math
Url: http://www.jirka.org/genius.html
Source: http://download.gnome.org/sources/genius/1.0/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: mpfr-devel >= 2.3.0
BuildRequires: ncurses-devel
BuildRequires: rarian-scrollkeeper-compat
BuildRequires: readline-devel
# We need the %%mime_database_* macros
BuildRequires: shared-mime-info
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0) >= 2.12.0
BuildRequires: pkgconfig(gtk+-2.0) >= 2.18.0
BuildRequires: pkgconfig(gtksourceview-2.0) >= 0.3.0
BuildRequires: pkgconfig(vte) >= 0.26.0
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
calculator and as a research or educational tool. The syntax is very
intuitive and is designed to mimic how mathematics is usually written.
GEL is the name of its extension language, it stands for Genius
Extension Language, clever isn't it? In fact, many of the standard
genius functions are written in GEL itself.
%package -n gnome-genius
Summary: General purpose calculator and mathematics tool - GNOME Interface
Group: Productivity/Scientific/Math
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
calculator and as a research or educational tool. The syntax is very
intuitive and is designed to mimic how mathematics is usually written.
GEL is the name of its extension language, it stands for Genius
Extension Language, clever isn't it? In fact, many of the standard
genius functions are written in GEL itself.
%package devel
Summary: General purpose calculator and mathematics tool - Development Files
Group: Productivity/Scientific/Math
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
calculator and as a research or educational tool. The syntax is very
intuitive and is designed to mimic how mathematics is usually written.
GEL is the name of its extension language, it stands for Genius
Extension Language, clever isn't it? In fact, many of the standard
genius functions are written in GEL itself.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
%configure \
--libexec=%{_prefix}/lib/genius \
--disable-scrollkeeper \
--disable-update-mimedb
make %{?_smp_mflags}
%install
%makeinstall
# 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.*
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file gnome-genius
%fdupes %{buildroot}%{_datadir}/genius
%clean
rm -rf %{buildroot}
%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%else
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif
%postun -n gnome-genius
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%else
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_datadir}/genius
%{_bindir}/genius
%files -n gnome-genius
%defattr(-,root,root)
%{_bindir}/gnome-genius
%{_prefix}/lib/genius
%{_datadir}/applications/gnome-genius.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/mime/packages/genius.xml
%files devel
%defattr(-,root,root)
%{_includedir}/genius
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog