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
This commit is contained in:
andrea florio 2011-06-09 17:11:44 +00:00 committed by Git OBS Bridge
commit 7d7c3f9976
5 changed files with 112 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
golly-2.2-src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf7fbfd3df3c4cefcd7c4cc881011b2128f7255aacb6c79e93b7f10d3640abc2
size 2535583

16
golly-zlib.patch Normal file
View File

@ -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`

15
golly.changes Normal file
View File

@ -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

55
golly.spec Normal file
View File

@ -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