From 1ec55560fb449e27d5b6ee8a4fa28282115fe2f5580d80a44801013d31537d06 Mon Sep 17 00:00:00 2001 From: andrea florio Date: Thu, 9 Jun 2011 17:11:44 +0000 Subject: [PATCH] Accepting request 73126 from openSUSE:Factory:Contrib please review, contrib cleanup OBS-URL: https://build.opensuse.org/request/show/73126 OBS-URL: https://build.opensuse.org/package/show/Education/golly?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + golly-2.2-src.tar.gz | 3 +++ golly-zlib.patch | 16 +++++++++++++ golly.changes | 15 ++++++++++++ golly.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 golly-2.2-src.tar.gz create mode 100644 golly-zlib.patch create mode 100644 golly.changes create mode 100644 golly.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/golly-2.2-src.tar.gz b/golly-2.2-src.tar.gz new file mode 100644 index 0000000..4b73a00 --- /dev/null +++ b/golly-2.2-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf7fbfd3df3c4cefcd7c4cc881011b2128f7255aacb6c79e93b7f10d3640abc2 +size 2535583 diff --git a/golly-zlib.patch b/golly-zlib.patch new file mode 100644 index 0000000..3175831 --- /dev/null +++ b/golly-zlib.patch @@ -0,0 +1,16 @@ +Index: makefile-gtk +=================================================================== +--- makefile-gtk.orig ++++ makefile-gtk +@@ -46,10 +46,7 @@ PYTHON_PREFS = -DPYTHON_SHLIB="$(PYTHON_ + + # default settings for zlib support, so clear these to build without zlib + ZLIB_CXXFLAGS = -DZLIB +-### ZLIB_LDFLAGS = -lz +-### we statically link zlib because some Linux systems (eg. Ubuntu) have +-### a non-standard zlib shared library that contains gzopen64 +-ZLIB_LDFLAGS = /usr/lib/libz.a ++ZLIB_LDFLAGS = -lz + + # for wxGTK support (required for GUI) + WX_CXXFLAGS = `wx-config --cxxflags` diff --git a/golly.changes b/golly.changes new file mode 100644 index 0000000..4379085 --- /dev/null +++ b/golly.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Thu Jun 9 13:07:19 UTC 2011 - prusnak@opensuse.org + +- use shared zlib (zlib.patch) + +------------------------------------------------------------------- +Thu Jun 2 15:55:58 UTC 2011 - prusnak@opensuse.org + +- updated to 2.2 + +------------------------------------------------------------------- +Tue Feb 23 21:43:32 UTC 2010 - prusnak@suse.cz + +- created package + diff --git a/golly.spec b/golly.spec new file mode 100644 index 0000000..bc2b1c5 --- /dev/null +++ b/golly.spec @@ -0,0 +1,55 @@ +# +# 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