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
|
|
|
#
|
2011-02-14 00:32:45 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: genius
|
2010-11-30 08:55:11 +00:00
|
|
|
Version: 1.0.12
|
2011-05-31 14:09:10 +00:00
|
|
|
Release: 13
|
2010-05-14 22:39:19 +00:00
|
|
|
License: GPLv3+
|
|
|
|
Summary: General purpose calculator and mathematics tool
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://www.jirka.org/genius.html
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: mpfr-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: scrollkeeper
|
2011-02-16 14:12:07 +00:00
|
|
|
BuildRequires: translation-update-upstream
|
2010-05-14 22:39:19 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2011-05-27 17:37:17 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtksourceview-2.0)
|
|
|
|
BuildRequires: pkgconfig(vte)
|
2011-02-13 20:52:23 +00:00
|
|
|
Recommends: %{name}-lang
|
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
|
|
|
|
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
|
|
|
|
License: GPLv3+
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Summary: General purpose calculator and mathematics tool - GNOME Interface
|
|
|
|
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
|
|
|
|
License: GPLv3+
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Summary: General purpose calculator and mathematics tool - Development Files
|
|
|
|
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
|
2011-02-16 14:12:07 +00:00
|
|
|
translation-update-upstream
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
|
|
|
|
%configure \
|
|
|
|
--libexec=%{_prefix}/lib/genius \
|
|
|
|
--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
|
|
|
|
%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.*
|
|
|
|
# Change sr@Latn to sr@latin
|
|
|
|
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
|
2011-02-13 20:52:23 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-05-14 22:39:19 +00:00
|
|
|
%suse_update_desktop_file gnome-genius
|
|
|
|
%fdupes %{buildroot}%{_datadir}/genius
|
|
|
|
|
2011-02-13 20:52:23 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-05-14 22:39:19 +00:00
|
|
|
%post
|
2011-02-13 20:52:23 +00:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%mime_database_post
|
|
|
|
%else
|
2010-05-14 22:39:19 +00:00
|
|
|
if test -x usr/bin/update-mime-database ; then
|
|
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null
|
|
|
|
fi
|
2011-02-13 20:52:23 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun -n gnome-genius
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%mime_database_postun
|
|
|
|
%else
|
2010-05-14 22:39:19 +00:00
|
|
|
if test -x usr/bin/update-mime-database ; then
|
|
|
|
usr/bin/update-mime-database usr/share/mime >/dev/null
|
|
|
|
fi
|
2011-02-13 20:52:23 +00:00
|
|
|
%endif
|
2010-05-14 22:39:19 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
|
|
%{_datadir}/genius
|
|
|
|
%{_bindir}/genius
|
|
|
|
|
|
|
|
%files -n gnome-genius
|
|
|
|
%defattr(-,root,root)
|
2011-02-13 20:52:23 +00:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%dir %{_datadir}/gnome/help/
|
|
|
|
%dir %{_datadir}/gnome/help/%{name}/
|
|
|
|
%doc %{_datadir}/gnome/help/%{name}/C/
|
|
|
|
%dir %{_datadir}/omf/
|
|
|
|
%dir %{_datadir}/omf/%{name}/
|
|
|
|
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
|
2010-05-14 22:39:19 +00:00
|
|
|
%{_bindir}/gnome-genius
|
|
|
|
%{_prefix}/lib/genius
|
|
|
|
%{_datadir}/applications/gnome-genius.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/genius-stock-plot.png
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/gnome-genius.png
|
|
|
|
%{_datadir}/mime/packages/genius.xml
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/genius
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/gnome
|
|
|
|
%dir %{_datadir}/gnome/help
|
|
|
|
%dir %{_datadir}/omf/genius
|
|
|
|
|
|
|
|
%changelog
|