The package rpms/monsterz.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/monsterz.git/commit/?id=269239964....
Change:
+%ifarch x86_64 ppc64
Thanks.
Full change:
============
commit 26923996431109b7af7f5496d7da6340dd4f4859
Author: Mohan Boddu <mboddu(a)bhujji.com>
Date: Mon Jun 29 15:54:22 2020 -0400
Unretirement for
https://pagure.io/releng/issue/9553
Revert "Python 2 only."
This reverts commit 93e3bab87b239e985cca673d62b1593a4b2afab4.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8077f35
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+monsterz-0.7.1.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index bb567a7..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Python 2 only.
diff --git a/monsterz-0.7.1-64bitfix.patch b/monsterz-0.7.1-64bitfix.patch
new file mode 100644
index 0000000..cf57277
--- /dev/null
+++ b/monsterz-0.7.1-64bitfix.patch
@@ -0,0 +1,20 @@
+--- monsterz-0.7.1/monsterz.py.orig 2007-12-17 22:05:00.000000000 +0000
++++ monsterz-0.7.1/monsterz.py 2008-02-26 14:23:34.000000000 +0000
+@@ -108,7 +108,7 @@
+ M = int(max(r, g, b))
+ m = int(min(r, g, b))
+ val = (2 * M + r + g + b) / 5
+- p[:] = (val + r) / 2, (val + g) / 2, (val + b) / 2
++ #p[:] = (val + r) / 2, (val + g) / 2, (val + b) / 2
+ if alpha[y][x] >= 250:
+ alpha[y][x] = 255 - (M - m) * 3 / 4
+ del pixels
+@@ -129,7 +129,7 @@
+ r, g, b = p
+ M = int(max(r, g, b))
+ m = int(min(r, g, b))
+- p[:] = (m + r) / 2, (m + g) / 2, (m + b) / 2
++ #p[:] = (m + r) / 2, (m + g) / 2, (m + b) / 2
+ if alpha[y][x] >= 250:
+ alpha[y][x] = 255 - M * 2 / 3
+ del pixels
diff --git a/monsterz-0.7.1-blit-crash.patch b/monsterz-0.7.1-blit-crash.patch
new file mode 100644
index 0000000..dd70b7b
--- /dev/null
+++ b/monsterz-0.7.1-blit-crash.patch
@@ -0,0 +1,32 @@
+--- monsterz.py.orig 2007-12-17 23:05:00.000000000 +0100
++++ monsterz.py 2009-02-05 20:54:07.000000000 +0100
+@@ -829,10 +829,10 @@
+ pass
+ else:
+ for x in range(4):
+- for y, p in enumerate(alpha[x]):
+- alpha[x][y] = p * x / 4
+- for y, p in enumerate(alpha[406 - x - 1]):
+- alpha[406 - x - 1][y] = p * x / 4
++ for y in range(len(alpha[x])):
++ alpha[x][y] = alpha[x][y] * x / 4
++ for y in range(len(alpha[406 - x - 1])):
++ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4
+ for col in alpha:
+ l = len(col)
+ for y in range(4):
+@@ -1287,10 +1287,10 @@
+ pass
+ else:
+ for x in range(10):
+- for y, p in enumerate(alpha[x]):
+- alpha[x][y] = p * x / 12
+- for y, p in enumerate(alpha[406 - x - 1]):
+- alpha[406 - x - 1][y] = p * x / 12
++ for y in range(len(alpha[x])):
++ alpha[x][y] = alpha[x][y] * x / 12
++ for y in range(len(alpha[406 - x - 1])):
++ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12
+ del alpha
+ scroll.unlock()
+ system.blit(scroll, (13, 437))
diff --git a/monsterz-0.7.1-userpmopts.patch b/monsterz-0.7.1-userpmopts.patch
new file mode 100644
index 0000000..64547b6
--- /dev/null
+++ b/monsterz-0.7.1-userpmopts.patch
@@ -0,0 +1,19 @@
+--- monsterz-0.7.1/Makefile.orig 2007-12-17 22:05:00.000000000 +0000
++++ monsterz-0.7.1/Makefile 2008-01-06 17:28:03.000000000 +0000
+@@ -6,6 +6,7 @@
+ scoredir = /var/games
+ scorefile = $(scoredir)/monsterz
+
++CFLAGS=
+ VERSION = 0.7.1
+ DIRECTORY = monsterz-$(VERSION)
+
+@@ -22,7 +23,7 @@
+ all: monsterz
+
+ monsterz: monsterz.c
+- $(CC) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\"
-DSCOREFILE=\"$(scorefile)\" -o monsterz
++ $(CC) $(CFLAGS) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\"
-DSCOREFILE=\"$(scorefile)\" -o monsterz
+
+ bitmap: $(BITMAP)
+
diff --git a/monsterz.score b/monsterz.score
new file mode 100644
index 0000000..200e3ac
--- /dev/null
+++ b/monsterz.score
@@ -0,0 +1,11 @@
+CLASSIC:Tux:1000:1
+CLASSIC:Tux:900:1
+CLASSIC:Tux:800:1
+CLASSIC:Tux:700:1
+CLASSIC:Tux:600:1
+CLASSIC:Tux:500:1
+CLASSIC:Tux:400:1
+CLASSIC:Tux:300:1
+CLASSIC:Tux:200:1
+CLASSIC:Tux:100:1
+
diff --git a/monsterz.spec b/monsterz.spec
new file mode 100644
index 0000000..6d6a48c
--- /dev/null
+++ b/monsterz.spec
@@ -0,0 +1,198 @@
+Name: monsterz
+Version: 0.7.1
+Release: 25%{?dist}
+Summary: Puzzle game, similar to Bejeweled or Zookeeper
+License: WTFPL
+URL:
http://sam.zoy.org/monsterz/
+Source0:
http://sam.zoy.org/%{name}/%{name}-%{version}.tar.gz
+Source1: %{name}.score
+Patch0: %{name}-0.7.1-userpmopts.patch
+Patch1: %{name}-0.7.1-64bitfix.patch
+Patch2: %{name}-0.7.1-blit-crash.patch
+BuildRequires: gcc
+BuildRequires: desktop-file-utils
+BuildRequires: python2-devel /usr/bin/pathfix.py
+Requires: python2-pygame
+Requires: python2-numpy
+Requires: hicolor-icon-theme
+Provides: %{name}-data = %{version}-%{release}
+Obsoletes: %{name}-data < 0.7.1
+
+%description
+Monsterz is a little arcade puzzle game, similar to the famous Bejeweled or
+Zookeeper. The goal of the game is to create rows of similar monsters, either
+horizontally or vertically. The only allowed move is the swap of two adjacent
+monsters, on the condition that it creates a row of three or more. When
+alignments are cleared, pieces fall from the top of the screen to fill the
+board again. Chain reactions earn you even more points.
+
+
+%prep
+%setup -q
+%patch0 -p1
+%ifarch x86_64 ppc64
+%patch1 -p1
+%endif
+%patch2 -p0
+pathfix.py -pni "%{__python2} %{py2_shbang_opts}" .
+
+%build
+make %{?_smp_mflags} prefix=%{_usr} datadir=%{_datadir} pkgdatadir=%{_datadir}/%{name}
CFLAGS="%{optflags}"
+
+# Build desktop icon
+cat >%{name}.desktop <<EOF
+[Desktop Entry]
+Encoding=UTF-8
+Name=Monsterz
+GenericName=Monsterz Puzzle Game
+Comment=%{summary}
+Exec=%{name}
+Icon=%{name}
+Terminal=false
+Type=Application
+Categories=Game;StrategyGame;
+EOF
+
+
+%install
+# Bypass make install as it requires root priviledges and the SRPM
+# may not necessarily be built as root
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/{applications,icons/hicolor/64x64/apps}
+mkdir -p %{buildroot}%{_datadir}/%{name}/{graphics,sound}
+mkdir -p %{buildroot}%{_var}/games
+install -pm0755 %{name} %{buildroot}%{_bindir}
+install -pm0755 %{name}.py %{buildroot}%{_datadir}/%{name}
+cp -a graphics/* %{buildroot}%{_datadir}/%{name}/graphics
+cp -a sound/* %{buildroot}%{_datadir}/%{name}/sound
+
+install -pm0664 %{SOURCE1} %{buildroot}%{_var}/games/%{name}
+
+desktop-file-install \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{name}.desktop
+
+install -pm0644 graphics/icon.png
%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
+
+
+%files
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
+%{_datadir}/%{name}
+%attr(2755,root,games) %{_bindir}/%{name}
+%attr(-,root,games) %config(noreplace) %{_var}/games/%{name}
+%license COPYING
+%doc AUTHORS README TODO
+
+
+%changelog
+* Tue Oct 29 2019 Petr Viktorin <pviktori(a)redhat.com> - 0.7.1-25
+- Explicitly require NumPy for pygame.surfarray
+ See:
https://www.pygame.org/docs/ref/surfarray.html
+
+* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-24
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-23
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Mon Sep 10 2018 Gwyn Ciesla <limburgher(a)gmail.com> - 0.7.1-22
+- Fix shebang handling.
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-21
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-20
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.7.1-19
+- Remove obsolete scriptlets
+
+* Thu Aug 03 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-18
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-17
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-16
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.7.1-15
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-14
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-13
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-12
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-11
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Mon Feb 11 2013 Jon Ciesla <limburgher(a)gmail.com> - 0.7.1-10
+- Drop desktop vendor tag.
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-9
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-8
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-7
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.7.1-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Feb 05 2009 Rafał Psota <rafalzaq(a)gmail.com> - 0.7.1-4
+- fixed #473763
+
+* Tue Feb 26 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.1-3
+- Fix for BZ 434688
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng(a)fedoraproject.org> - 0.7.1-2
+- Autorebuild for GCC 4.3
+
+* Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.1-1
+- Upgrade to 0.7.1
+- Drop separate data package as it's unnecessary
+- Merge .desktop back into SPEC
+- Various spec cleanups
+- Updated the "use rpm opts" patch
+- Use the icon now supplied
+
+* Wed Aug 22 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-8
+- Release bump for F8 mass rebuild
+
+* Mon Aug 28 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-7
+- Release bump for FC6 mass rebuild
+
+* Tue Jul 25 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-6
+- Split data into a separate package.
+
+* Sun Jul 23 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-5
+- Moved .desktop external to spec
+- Moved score file external to spec
+- License changed to WTFPL
+- Use %%{_datadir}/%%{name} not %%{_datadir}/games/%%{name}
+
+* Sun Jul 09 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-4
+- Moved icon installation to make it freedesktop compliant
+- Added %%post and %%postun sections to update icon cache at installation
+- Move hiscore table and .desktop generation to %%build
+
+* Sat Jun 24 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-3
+- Cosmetic fixes for the Dribble repository
+
+* Mon May 29 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-2
+- Replace %%{__rm} in clean section with rm
+- Added patch to compile using rpmoptflags
+
+* Mon May 22 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.0-1.iss
+- Initial Release
diff --git a/sources b/sources
new file mode 100644
index 0000000..de271d9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c2bdb68dcd636df1abd130ac86defd11 monsterz-0.7.1.tar.gz