# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: golly Version: 2.2 Release: 1 License: GPLv2+ Summary: Tool for exploring Game of Life and other automata Url: http://golly.sourceforge.net/ Group: Amusements/Toys/Graphics Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}-src.tar.gz Patch0: %{name}-zlib.patch BuildRequires: gcc-c++ BuildRequires: fdupes BuildRequires: perl BuildRequires: python-devel BuildRequires: wxWidgets-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A sophisticated tool for exploring Conway's Game of Life and many other cellular automata. %prep %setup -q -n %{name}-%{version}-src %patch0 %build export SUSE_ASNEEDED=0 make -f makefile-gtk CXXFLAGS="%{optflags}" rm -f Help/Lexicon/modify.pl %install install -D -m 0755 golly %{buildroot}%{_bindir}/%{name} # 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 %fdupes %{buildroot}%{_datadir} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README TODO %{_bindir}/%{name} %{_datadir}/%{name}/ %changelog