2011-06-09 19:11:44 +02:00
|
|
|
#
|
2023-05-17 14:24:07 +02:00
|
|
|
# spec file for package golly
|
2011-06-09 19:11:44 +02:00
|
|
|
#
|
2024-05-25 17:46:20 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-05-17 14:24:07 +02: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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
Name: golly
|
2024-05-25 17:46:20 +02:00
|
|
|
Version: 4.3
|
2023-05-17 14:24:07 +02:00
|
|
|
Release: 0
|
2011-06-09 19:11:44 +02:00
|
|
|
Summary: Tool for exploring Game of Life and other automata
|
2023-05-17 14:24:07 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-06-09 19:11:44 +02:00
|
|
|
Group: Amusements/Toys/Graphics
|
2024-05-25 17:46:20 +02:00
|
|
|
URL: https://golly.sourceforge.io
|
2023-05-17 14:24:07 +02:00
|
|
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.gz
|
|
|
|
Source1: %{name}.desktop
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: desktop-file-utils
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRequires: fdupes
|
2023-05-17 14:24:07 +02:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: wxGTK3-devel >= 3.1.5
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRequires: zlib-devel
|
2023-05-17 14:24:07 +02:00
|
|
|
Requires: %{name}-assets = %{version}
|
|
|
|
Requires: python3 >= 3.3
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
%description
|
2014-03-19 08:30:06 +01:00
|
|
|
Key features:
|
|
|
|
- Supports both bounded and unbounded universes.
|
|
|
|
- Supports various topologies (plane, torus, Klein bottle, etc.).
|
|
|
|
- Supports multi-state universes (cells can have up to 256 states).
|
2023-05-18 16:22:38 +02:00
|
|
|
- Includes the QuickLife algorithm.
|
|
|
|
- Uses the HashLife algorithm to see large patterns evolve at huge time scales.
|
2014-03-19 08:30:06 +01:00
|
|
|
- Supports many different rules, including Wolfram's 1D rules, WireWorld, Generations, and John von Neumann's 29-state CA.
|
2023-05-18 16:22:38 +02:00
|
|
|
- Uses the RuleLoader algorithm to load custom rules.
|
2014-03-19 08:30:06 +01:00
|
|
|
- Reads RLE, macrocell, Life 1.05/1.06, dblife, and MCell files.
|
|
|
|
- Can also read common graphic formats: BMP, PNG, GIF, TIFF.
|
|
|
|
- Can extract patterns, scripts and rules from zip files.
|
2023-05-18 16:22:38 +02:00
|
|
|
- Downloads files from online archives.
|
|
|
|
- Includes a pattern collection.
|
2014-03-19 08:30:06 +01:00
|
|
|
- Paste in patterns from the clipboard.
|
|
|
|
- Unlimited undo/redo.
|
|
|
|
- Unbounded zooming out for astronomical patterns.
|
|
|
|
- Auto fit option keeps a generating pattern within view.
|
|
|
|
- Full screen option (no menu/status/tool/scroll bars).
|
|
|
|
- Supports multiple layers, including cloned layers.
|
|
|
|
- HTML-based help with an integrated Life Lexicon.
|
2023-05-17 14:24:07 +02:00
|
|
|
- Scriptable via Lua or Python.
|
2014-03-19 08:30:06 +01:00
|
|
|
- User-configurable keyboard shortcuts.
|
|
|
|
|
2023-05-17 14:24:07 +02:00
|
|
|
%package assets
|
|
|
|
Summary: Assets for %{name}
|
|
|
|
Group: Amusements/Toys/Graphics
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description assets
|
|
|
|
This package contains assets for %{name}: Help, rules, patterns and scripts.
|
|
|
|
|
2014-03-19 08:30:06 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-03-20 03:29:45 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-03-19 08:30:06 +01:00
|
|
|
|
|
|
|
%description devel
|
2023-05-17 14:24:07 +02:00
|
|
|
This package contains header files and libraries needed to develop applications
|
|
|
|
that use %{name}.
|
2014-03-20 03:29:45 +01:00
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}-src
|
2023-05-17 14:24:07 +02:00
|
|
|
rm -v {Help/Lexicon/modify.pl,docs/Build.html}
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
%build
|
2023-05-17 14:24:07 +02:00
|
|
|
%set_build_flags
|
|
|
|
export GOLLYDIR=%{_datadir}/%{name}
|
2014-03-19 08:30:06 +01:00
|
|
|
cd gui-wx
|
2024-05-25 17:46:20 +02:00
|
|
|
%make_build -f makefile-gtk
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
%install
|
2023-05-17 14:24:07 +02:00
|
|
|
install -D -m 0755 bgolly golly -t %{buildroot}%{_bindir}
|
|
|
|
install -d %{buildroot}%{_datadir}/%{name}
|
2011-06-09 19:11:44 +02:00
|
|
|
for i in Help Patterns Rules Scripts; do
|
|
|
|
find ./$i -type d -exec chmod 755 {} \;
|
|
|
|
find ./$i -type f -exec chmod 644 {} \;
|
|
|
|
cp -a $i %{buildroot}%{_datadir}/%{name}/$i
|
|
|
|
done
|
2023-05-17 14:24:07 +02:00
|
|
|
install -D -m 0644 gui-wx/icons/appicon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
|
|
|
|
install -D -m 0644 %{SOURCE1} -t %{buildroot}%{_datadir}/applications
|
2011-06-09 19:11:44 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2023-05-17 14:24:07 +02:00
|
|
|
chrpath --delete %{buildroot}%{_bindir}/*golly
|
2011-06-09 19:11:44 +02:00
|
|
|
|
2014-03-19 08:30:06 +01:00
|
|
|
%check
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
%files
|
2023-05-17 14:24:07 +02:00
|
|
|
%license docs/License.html
|
|
|
|
%doc docs/ReadMe.html docs/ToDo.html
|
2014-03-19 08:30:06 +01:00
|
|
|
%{_bindir}/*%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2023-05-17 14:24:07 +02:00
|
|
|
%{_datadir}/pixmaps/%{name}.xpm
|
|
|
|
|
|
|
|
%files assets
|
|
|
|
%{_datadir}/%{name}
|
2014-03-19 08:30:06 +01:00
|
|
|
%exclude %{_datadir}/%{name}/Rules/TableGenerators
|
|
|
|
%exclude %{_datadir}/%{name}/Rules/TreeGenerators
|
|
|
|
|
|
|
|
%files devel
|
2014-03-20 03:29:45 +01:00
|
|
|
%{_datadir}/%{name}/Rules/TableGenerators
|
|
|
|
%{_datadir}/%{name}/Rules/TreeGenerators
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
%changelog
|