2011-06-09 19:11:44 +02:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-03-19 08:30:06 +01:00
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
%define number 2.2
|
|
|
|
%else
|
|
|
|
%define number 2.6
|
|
|
|
%endif
|
2011-06-09 19:11:44 +02:00
|
|
|
Name: golly
|
2014-03-19 08:30:06 +01:00
|
|
|
Version: %{number}
|
2011-06-09 19:11:44 +02:00
|
|
|
Release: 1
|
2014-03-19 08:30:06 +01:00
|
|
|
License: GPL-2.0+
|
2011-06-09 19:11:44 +02:00
|
|
|
Summary: Tool for exploring Game of Life and other automata
|
|
|
|
Url: http://golly.sourceforge.net/
|
|
|
|
Group: Amusements/Toys/Graphics
|
2014-03-19 08:30:06 +01:00
|
|
|
Source: %{name}-%{version}-src.tar.gz
|
|
|
|
Source1: %{name}.png
|
|
|
|
Source2: %{name}.desktop
|
|
|
|
BuildRequires: gcc-c++ cmake
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRequires: fdupes
|
2014-03-19 08:30:06 +01:00
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: perl-devel perl-ExtUtils-Embed
|
|
|
|
%else
|
|
|
|
BuildRequires: perl update-desktop-files
|
|
|
|
%endif
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRequires: python-devel
|
2014-03-19 08:30:06 +01:00
|
|
|
%if 0%{?suse_version} == 1110 || 0%{?fedora}
|
|
|
|
BuildRequires: wxGTK-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: wxWidgets-devel
|
|
|
|
%endif
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRequires: zlib-devel
|
2014-03-19 08:30:06 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
2011-06-09 19:11:44 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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).
|
|
|
|
- Includes QuickLife, a fast, memory-efficient algorithm.
|
|
|
|
- Use the HashLife algorithm to see large patterns evolve at huge time scales.
|
|
|
|
- Supports many different rules, including Wolfram's 1D rules, WireWorld, Generations, and John von Neumann's 29-state CA.
|
|
|
|
- Use the RuleLoader algorithm to load your own rules.
|
|
|
|
- Responsive even while generating or garbage collecting.
|
|
|
|
- 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.
|
|
|
|
- Download files from online archives.
|
|
|
|
- Includes a state-of-the-art pattern collection.
|
|
|
|
- Fast loading of large patterns.
|
|
|
|
- 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.
|
|
|
|
- Scriptable via Perl or Python.
|
|
|
|
- User-configurable keyboard shortcuts.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
License: GPL-2.0+
|
2014-03-20 03:29:45 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-03-19 08:30:06 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains, header files and libraries needed to
|
|
|
|
develop application that use %{name}
|
2011-06-09 19:11:44 +02:00
|
|
|
|
2014-03-20 03:29:45 +01:00
|
|
|
%package -n %{name}-devel-static
|
|
|
|
Summary: Development files and libraries for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
License: GPL-2.0+
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-devel-static
|
|
|
|
This package contains, header files and libraries needed to
|
|
|
|
develop application that use %{name}
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}-src
|
|
|
|
|
|
|
|
%build
|
2014-03-19 08:30:06 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
make %{?_smp_mflags} ZLIB_LDFLAGS=-lz -f makefile-gtk
|
|
|
|
%else
|
|
|
|
cd gui-wx
|
|
|
|
mkdir build
|
|
|
|
pushd build
|
|
|
|
cmake ../
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
%endif
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
%install
|
2014-03-19 08:30:06 +01:00
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 bgolly golly %{buildroot}%{_bindir}
|
|
|
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora}
|
|
|
|
install -D -m 0644 gui-wx/build/libgollybase.a %{buildroot}%{_libdir}/libgollybase.a
|
|
|
|
%endif
|
|
|
|
|
|
|
|
rm -f {Help/Lexicon/modify.pl,docs/Build.html}
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
# install data files
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
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
|
2014-03-19 08:30:06 +01:00
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%endif
|
|
|
|
|
2011-06-09 19:11:44 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
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
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2014-03-19 08:30:06 +01:00
|
|
|
%if 0%{?suse_version} == 1110
|
2011-06-09 19:11:44 +02:00
|
|
|
%doc LICENSE README TODO
|
2014-03-19 08:30:06 +01:00
|
|
|
%else
|
|
|
|
%doc docs/License.* docs/ReadMe.* docs/ToDo.*
|
|
|
|
%endif
|
|
|
|
%{_bindir}/*%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%exclude %{_datadir}/%{name}/Rules/TableGenerators
|
|
|
|
%exclude %{_datadir}/%{name}/Rules/TreeGenerators
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2014-03-20 03:29:45 +01:00
|
|
|
%{_datadir}/%{name}/Rules/TableGenerators
|
|
|
|
%{_datadir}/%{name}/Rules/TreeGenerators
|
|
|
|
|
2014-03-19 08:30:06 +01:00
|
|
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora}
|
2014-03-20 03:29:45 +01:00
|
|
|
%files -n %{name}-devel-static
|
|
|
|
%defattr(-,root,root,-)
|
2014-03-19 08:30:06 +01:00
|
|
|
%{_libdir}/libgollybase.a
|
|
|
|
%endif
|
2011-06-09 19:11:44 +02:00
|
|
|
|
|
|
|
%changelog
|