Files
surfer/surfer.spec

66 lines
1.9 KiB
RPMSpec

#
# spec file for package surfer
#
# Copyright (c) 2025 SUSE LLC
#
# 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: surfer
Version: 0.20110925
Release: 0
Summary: Algebraic geometry visualizer
License: GPL-2.0+
Group: Productivity/Scientific/Math
Url: http://www.imaginary-exhibition.com/surfer.php?lang=en
#DL: http://data.imaginary2008.de/software/surfer/surfer.tar.bz2
Source: %name-%version.tar.xz
Source2: prepare_tar
Patch0: surfer-0.20110925-fix-configure.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gtkmm2-devel >= 2.4
BuildRequires: xz
Requires: surf(partial-rendering) >= 1.0.5
%description
Surfer is a program to visualize real algebraic geometry in
real-time. The surfaces visualized are given by the zero set of a
polynomial equation in 3 variables. Surfer is based on the program
Surf.
%prep
%setup -qn %name
# See other package (surfer-gallery);
# force creation of an empty tar file to make Makefile happy
tar -cf gallery.tar '' 2>/dev/null || :;
%patch -P 0 -p1
%build
%configure
%make_build
%install
b="%buildroot"
%make_install
find "$b" -type f -iname "*~" -delete
%find_lang %name
%fdupes %buildroot/%_prefix
%files -f %name.lang
%_bindir/%name
%_datadir/%name/
%changelog