[mari0/f27] Update to 1.6.1 release
by Leigh Scott
Summary of changes:
84bcc95... Update to 1.6.1 release (*)
(*) This commit already existed in another branch; no separate mail sent
6 years, 9 months
[mari0] Update to 1.6.1 release
by Leigh Scott
commit 84bcc955157742fb5adcd35e61be551db7843c9b
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Feb 1 09:58:31 2018 +0000
Update to 1.6.1 release
.gitignore | 1 +
mari0.spec | 20 +-
runtime_fix.patch | 535 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +-
4 files changed, 550 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f3b1ba7..9fde3c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
mari0-fc23e18525c4d0c881e64268e56fd23773f006af.zip
/5392efaf472ece528f70a87b006a7bf87ae018c5.tar.gz
+/mari0-1.6.1.tar.gz
diff --git a/mari0.spec b/mari0.spec
index 4cea8e1..cfe4225 100644
--- a/mari0.spec
+++ b/mari0.spec
@@ -1,19 +1,19 @@
-%global githash 5392efaf472ece528f70a87b006a7bf87ae018c5
-
Name: mari0
-Version: 1.6
-Release: 8%{?dist}
+Version: 1.6.1
+Release: 1%{?dist}
Summary: A recreation of the original Super Mario Bros with a portal gun
License: CC-BY-NC-SA
URL: http://stabyourself.net/mari0/
-Source0: https://github.com/Stabyourself/%{name}/archive/%{githash}.tar.gz
+Source0: https://github.com/Stabyourself/%{name}/archive/v%{version}.tar.gz#/%{nam...
#Source1 is just a Desktop file:
Source1: %{name}.desktop
+Patch0: https://github.com/Stabyourself/mari0/commit/9c2d30a4d7e838135c8cb687dbb5...
+
+BuildArch: noarch
#BuildRequires: ImageMagick
BuildRequires: desktop-file-utils
-BuildArch: noarch
Requires: love >= 0.10.1
#Reworded from the website (see URL above)
@@ -25,7 +25,7 @@ popular Value game, Portal. Mari0 also has a 4-player coop mode, with
everyone having their own Portal gun. This game is made with LOVE.
%prep
-%autosetup -n %{name}-%{githash}
+%autosetup -p1
%build
zip -r %{name}.love . -x "_DO NOT INCLUDE"
@@ -42,12 +42,18 @@ desktop-file-install \
install -p -D -m 0644 "_DO NOT INCLUDE/icon.png" %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%files
+%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/%{name}.love
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog
+* Thu Feb 01 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 1.6.1-1
+- Update to 1.6.1 release
+- Fix runtime issue (rfbz#4667)
+- Fix broken release tag, previous build was git but didn't have git prefix
+
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 1.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
diff --git a/runtime_fix.patch b/runtime_fix.patch
new file mode 100644
index 0000000..d7cd5e6
--- /dev/null
+++ b/runtime_fix.patch
@@ -0,0 +1,535 @@
+From 9c2d30a4d7e838135c8cb687dbb59d002626450f Mon Sep 17 00:00:00 2001
+From: Michael Vetter <jubalh(a)openmailbox.org>
+Date: Sat, 24 Jun 2017 10:53:15 +0200
+Subject: [PATCH] Replace math.mod() with math.fmod()
+
+---
+ bowser.lua | 4 ++--
+ box.lua | 4 ++--
+ castlefire.lua | 4 ++--
+ editor.lua | 10 +++++-----
+ game.lua | 36 ++++++++++++++++++------------------
+ goomba.lua | 4 ++--
+ hammerbro.lua | 4 ++--
+ koopa.lua | 4 ++--
+ mario.lua | 26 +++++++++++++-------------
+ menu.lua | 8 ++++----
+ mushroom.lua | 4 ++--
+ oneup.lua | 4 ++--
+ sha1.lua | 6 +++---
+ star.lua | 4 ++--
+ 14 files changed, 61 insertions(+), 61 deletions(-)
+
+diff --git a/bowser.lua b/bowser.lua
+index f9f18d5..1cdaa59 100644
+--- a/bowser.lua
++++ b/bowser.lua
+@@ -76,7 +76,7 @@ function bowser:update(dt)
+ end
+
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -238,4 +238,4 @@ end
+ function bowser:emancipate(a)
+
+ self:shotted()
+-end
+\ No newline at end of file
++end
+diff --git a/box.lua b/box.lua
+index 608703d..ee01111 100644
+--- a/box.lua
++++ b/box.lua
+@@ -68,7 +68,7 @@ function box:update(dt)
+ end
+
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -211,4 +211,4 @@ end
+
+ function box:portaled()
+ self.portaledframe = true
+-end
+\ No newline at end of file
++end
+diff --git a/castlefire.lua b/castlefire.lua
+index 16d3fe0..41fc201 100644
+--- a/castlefire.lua
++++ b/castlefire.lua
+@@ -27,7 +27,7 @@ function castlefire:update(dt)
+ self.timer = self.timer - castlefiredelay
+ if self.dir == "cw" then
+ self.angle = self.angle + castlefireangleadd
+- self.angle = math.mod(self.angle, 360)
++ self.angle = math.fmod(self.angle, 360)
+ else
+ self.angle = self.angle - castlefireangleadd
+ while self.angle < 0 do
+@@ -100,4 +100,4 @@ function castlefirefire:init()
+ self.offsetY = 4
+ self.quadcenterX = 4
+ self.quadcenterY = 4
+-end
+\ No newline at end of file
++end
+diff --git a/editor.lua b/editor.lua
+index 833c2c5..34366ef 100644
+--- a/editor.lua
++++ b/editor.lua
+@@ -314,11 +314,11 @@ function editor_draw()
+
+ if editentities == false then
+ for i = 1, tilelistcount+1 do
+- love.graphics.draw(tilequads[i+tileliststart-1].image, tilequads[i+tileliststart-1].quad, math.mod((i-1), 22)*17*scale+5*scale, math.floor((i-1)/22)*17*scale+38*scale-tilesoffset, 0, scale, scale)
++ love.graphics.draw(tilequads[i+tileliststart-1].image, tilequads[i+tileliststart-1].quad, math.fmod((i-1), 22)*17*scale+5*scale, math.floor((i-1)/22)*17*scale+38*scale-tilesoffset, 0, scale, scale)
+ end
+ else
+ for i = 1, entitiescount do
+- love.graphics.draw(entityquads[i].image, entityquads[i].quad, math.mod((i-1), 22)*17*scale+5*scale, math.floor((i-1)/22)*17*scale+38*scale-tilesoffset, 0, scale, scale)
++ love.graphics.draw(entityquads[i].image, entityquads[i].quad, math.fmod((i-1), 22)*17*scale+5*scale, math.floor((i-1)/22)*17*scale+38*scale-tilesoffset, 0, scale, scale)
+ end
+ end
+
+@@ -326,12 +326,12 @@ function editor_draw()
+ if editentities == false then
+ if tile and tile <= tilelistcount+1 then
+ love.graphics.setColor(255, 255, 255, 127)
+- love.graphics.rectangle("fill", (5+math.mod((tile-1), 22)*17)*scale, (38+math.floor((tile-1)/22)*17)*scale-tilesoffset, 16*scale, 16*scale)
++ love.graphics.rectangle("fill", (5+math.fmod((tile-1), 22)*17)*scale, (38+math.floor((tile-1)/22)*17)*scale-tilesoffset, 16*scale, 16*scale)
+ end
+ else
+ if tile and tile <= entitiescount then
+ love.graphics.setColor(255, 255, 255, 127)
+- love.graphics.rectangle("fill", (5+math.mod((tile-1), 22)*17)*scale, (38+math.floor((tile-1)/22)*17)*scale-tilesoffset, 16*scale, 16*scale)
++ love.graphics.rectangle("fill", (5+math.fmod((tile-1), 22)*17)*scale, (38+math.floor((tile-1)/22)*17)*scale-tilesoffset, 16*scale, 16*scale)
+ end
+ end
+
+@@ -1223,4 +1223,4 @@ function formatscrollnumber(i)
+ else
+ return i
+ end
+-end
+\ No newline at end of file
++end
+diff --git a/game.lua b/game.lua
+index a52b1c6..8eb78af 100644
+--- a/game.lua
++++ b/game.lua
+@@ -858,15 +858,15 @@ function game_draw()
+ if earthquake > 0 then
+ local colortable = {{242, 111, 51}, {251, 244, 174}, {95, 186, 76}, {29, 151, 212}, {101, 45, 135}, {238, 64, 68}}
+ for i = 1, backgroundstripes do
+- local r, g, b = unpack(colortable[math.mod(i-1, 6)+1])
++ local r, g, b = unpack(colortable[math.fmod(i-1, 6)+1])
+ local a = earthquake/rainboomearthquake*255
+
+ love.graphics.setColor(r, g, b, a)
+
+- local alpha = math.rad((i/backgroundstripes + math.mod(sunrot/5, 1)) * 360)
++ local alpha = math.rad((i/backgroundstripes + math.fmod(sunrot/5, 1)) * 360)
+ local point1 = {width*8*scale+300*scale*math.cos(alpha), 112*scale+300*scale*math.sin(alpha)}
+
+- local alpha = math.rad(((i+1)/backgroundstripes + math.mod(sunrot/5, 1)) * 360)
++ local alpha = math.rad(((i+1)/backgroundstripes + math.fmod(sunrot/5, 1)) * 360)
+ local point2 = {width*8*scale+300*scale*math.cos(alpha), 112*scale+300*scale*math.sin(alpha)}
+
+ love.graphics.polygon("fill", width*8*scale, 112*scale, point1[1], point1[2], point2[1], point2[2])
+@@ -908,7 +908,7 @@ function game_draw()
+ end
+ for y = 1, math.ceil(15/custombackgroundheight[i]) do
+ for x = 1, math.ceil(width/custombackgroundwidth[i])+1 do
+- love.graphics.draw(custombackgroundimg[i], math.floor(((x-1)*custombackgroundwidth[i])*16*scale) - math.floor(math.mod(xscroll, custombackgroundwidth[i])*16*scale), (y-1)*custombackgroundheight[i]*16*scale, 0, scale, scale)
++ love.graphics.draw(custombackgroundimg[i], math.floor(((x-1)*custombackgroundwidth[i])*16*scale) - math.floor(math.fmod(xscroll, custombackgroundwidth[i])*16*scale), (y-1)*custombackgroundheight[i]*16*scale, 0, scale, scale)
+ end
+ end
+ end
+@@ -940,10 +940,10 @@ function game_draw()
+ end
+
+ --TILES
+- love.graphics.draw(smbspritebatch[split], math.floor(-math.mod(xscroll, 1)*16*scale), 0)
+- love.graphics.draw(portalspritebatch[split], math.floor(-math.mod(xscroll, 1)*16*scale), 0)
++ love.graphics.draw(smbspritebatch[split], math.floor(-math.fmod(xscroll, 1)*16*scale), 0)
++ love.graphics.draw(portalspritebatch[split], math.floor(-math.fmod(xscroll, 1)*16*scale), 0)
+ if customtiles then
+- love.graphics.draw(customspritebatch[split], math.floor(-math.mod(xscroll, 1)*16*scale), 0)
++ love.graphics.draw(customspritebatch[split], math.floor(-math.fmod(xscroll, 1)*16*scale), 0)
+ end
+
+ local lmap = map
+@@ -965,12 +965,12 @@ function game_draw()
+
+ local tilenumber = t[1]
+ if tilequads[tilenumber].coinblock and tilequads[tilenumber].invisible == false then --coinblock
+- love.graphics.draw(coinblockimage, coinblockquads[spriteset][coinframe], math.floor((x-1-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
++ love.graphics.draw(coinblockimage, coinblockquads[spriteset][coinframe], math.floor((x-1-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
+ elseif tilequads[tilenumber].coin then --coin
+- love.graphics.draw(coinimage, coinquads[spriteset][coinframe], math.floor((x-1-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
++ love.graphics.draw(coinimage, coinquads[spriteset][coinframe], math.floor((x-1-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
+ elseif bounceyoffset ~= 0 then
+ if tilequads[tilenumber].invisible == false or editormode then
+- love.graphics.draw(tilequads[tilenumber].image, tilequads[tilenumber].quad, math.floor((x-1-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
++ love.graphics.draw(tilequads[tilenumber].image, tilequads[tilenumber].quad, math.floor((x-1-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16-8)*scale, 0, scale, scale)
+ end
+ end
+
+@@ -991,24 +991,24 @@ function game_draw()
+ end
+
+ if t["gels"][dir] == 1 then
+- love.graphics.draw(gel1ground, math.floor((x-.5-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
++ love.graphics.draw(gel1ground, math.floor((x-.5-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
+ elseif t["gels"][dir] == 2 then
+- love.graphics.draw(gel2ground, math.floor((x-.5-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
++ love.graphics.draw(gel2ground, math.floor((x-.5-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
+ elseif t["gels"][dir] == 3 then
+- love.graphics.draw(gel3ground, math.floor((x-.5-math.mod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
++ love.graphics.draw(gel3ground, math.floor((x-.5-math.fmod(xscroll, 1))*16*scale), ((y-1-bounceyoffset)*16)*scale, r, scale, scale, 8, 8)
+ end
+ end
+ end
+
+ if editormode then
+ if tilequads[t[1]].invisible and t[1] ~= 1 then
+- love.graphics.draw(tilequads[t[1]].image, tilequads[t[1]].quad, math.floor((x-1-math.mod(xscroll, 1))*16*scale), ((y-1)*16-8)*scale, 0, scale, scale)
++ love.graphics.draw(tilequads[t[1]].image, tilequads[t[1]].quad, math.floor((x-1-math.fmod(xscroll, 1))*16*scale), ((y-1)*16-8)*scale, 0, scale, scale)
+ end
+
+ if #t > 1 and t[2] ~= "link" then
+ tilenumber = t[2]
+ love.graphics.setColor(255, 255, 255, 150)
+- love.graphics.draw(entityquads[tilenumber].image, entityquads[tilenumber].quad, math.floor((x-1-math.mod(xscroll, 1))*16*scale), ((y-1)*16-8)*scale, 0, scale, scale)
++ love.graphics.draw(entityquads[tilenumber].image, entityquads[tilenumber].quad, math.floor((x-1-math.fmod(xscroll, 1))*16*scale), ((y-1)*16-8)*scale, 0, scale, scale)
+ love.graphics.setColor(255, 255, 255, 255)
+ end
+ end
+@@ -2246,7 +2246,7 @@ function loadmap(filename)
+ --MAP ITSELF
+ local t = s2[1]:split(",")
+
+- if math.mod(#t, 15) ~= 0 then
++ if math.fmod(#t, 15) ~= 0 then
+ print("Incorrect number of entries: " .. #t)
+ return false
+ end
+@@ -3665,13 +3665,13 @@ function traceline(sourcex, sourcey, radians)
+
+ --get tendency
+ if side == "down" or side == "up" then
+- if math.mod(x, 1) > 0.5 then
++ if math.fmod(x, 1) > 0.5 then
+ tendency = 1
+ else
+ tendency = -1
+ end
+ elseif side == "left" or side == "right" then
+- if math.mod(y, 1) > 0.5 then
++ if math.fmod(y, 1) > 0.5 then
+ tendency = 1
+ else
+ tendency = -1
+diff --git a/goomba.lua b/goomba.lua
+index 6ed3523..943d927 100644
+--- a/goomba.lua
++++ b/goomba.lua
+@@ -74,7 +74,7 @@ function goomba:update(dt)
+ if self.t == "spikeyfall" then
+ self.rotation = 0
+ else
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -283,4 +283,4 @@ end
+
+ function goomba:laser()
+ self:shotted()
+-end
+\ No newline at end of file
++end
+diff --git a/hammerbro.lua b/hammerbro.lua
+index 72900f5..3d1c9a1 100644
+--- a/hammerbro.lua
++++ b/hammerbro.lua
+@@ -45,7 +45,7 @@ end
+
+ function hammerbro:update(dt)
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -343,4 +343,4 @@ end
+
+ function hammer:portaled()
+ self.killstuff = true
+-end
+\ No newline at end of file
++end
+diff --git a/koopa.lua b/koopa.lua
+index b482246..4de1d6d 100644
+--- a/koopa.lua
++++ b/koopa.lua
+@@ -75,7 +75,7 @@ end
+
+ function koopa:update(dt)
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -386,4 +386,4 @@ end
+
+ function koopa:startfall()
+ self.falling = true
+-end
+\ No newline at end of file
++end
+diff --git a/mario.lua b/mario.lua
+index 5acecb8..fa1150c 100644
+--- a/mario.lua
++++ b/mario.lua
+@@ -229,7 +229,7 @@ end
+ function mario:update(dt)
+ self.passivemoved = false
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+
+ if self.rotation < -math.pi then
+ self.rotation = self.rotation + math.pi*2
+@@ -367,7 +367,7 @@ function mario:update(dt)
+ self.y = 68/16 + flagydistance-self.height
+ self.climbframe = 2
+ else
+- if math.mod(self.animationtimer, flagclimbframedelay*2) >= flagclimbframedelay then
++ if math.fmod(self.animationtimer, flagclimbframedelay*2) >= flagclimbframedelay then
+ self.climbframe = 1
+ else
+ self.climbframe = 2
+@@ -483,7 +483,7 @@ function mario:update(dt)
+ if bridgedisappear then
+ local v = objects["bowser"][1]
+ if v then
+- v.walkframe = round(math.mod(self.animationtimer, castleanimationbowserframedelay*2)*(1/(castleanimationbowserframedelay*2)))+1
++ v.walkframe = round(math.fmod(self.animationtimer, castleanimationbowserframedelay*2)*(1/(castleanimationbowserframedelay*2)))+1
+ end
+ self.animationtimer2 = self.animationtimer2 + dt
+ while self.animationtimer2 > castleanimationbridgedisappeardelay do
+@@ -630,7 +630,7 @@ function mario:update(dt)
+
+ self.vinemovetimer = self.vinemovetimer + dt
+
+- self.climbframe = math.ceil(math.mod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
++ self.climbframe = math.ceil(math.fmod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
+ self.climbframe = math.max(self.climbframe, 1)
+ self:setquad()
+
+@@ -647,7 +647,7 @@ function mario:update(dt)
+ if self.vineanimationclimb then
+ self.vinemovetimer = self.vinemovetimer + dt
+
+- self.climbframe = math.ceil(math.mod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
++ self.climbframe = math.ceil(math.fmod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
+ self.climbframe = math.max(self.climbframe, 1)
+
+ self.y = self.y - vinemovespeed*dt
+@@ -675,7 +675,7 @@ function mario:update(dt)
+ elseif self.animation == "shrink" then
+ self.animationtimer = self.animationtimer + dt
+ --set frame lol
+- local frame = math.ceil(math.mod(self.animationtimer, growframedelay*3)/shrinkframedelay)
++ local frame = math.ceil(math.fmod(self.animationtimer, growframedelay*3)/shrinkframedelay)
+ self:updateangle()
+
+ if frame == 1 then
+@@ -700,7 +700,7 @@ function mario:update(dt)
+ end
+ end
+
+- local invis = math.ceil(math.mod(self.animationtimer, invicibleblinktime*2)/invicibleblinktime)
++ local invis = math.ceil(math.fmod(self.animationtimer, invicibleblinktime*2)/invicibleblinktime)
+
+ if invis == 1 then
+ self.drawable = true
+@@ -724,7 +724,7 @@ function mario:update(dt)
+ elseif self.animation == "invincible" then
+ self.animationtimer = self.animationtimer + dt
+
+- local invis = math.ceil(math.mod(self.animationtimer, invicibleblinktime*2)/invicibleblinktime)
++ local invis = math.ceil(math.fmod(self.animationtimer, invicibleblinktime*2)/invicibleblinktime)
+
+ if invis == 1 then
+ self.drawable = true
+@@ -741,7 +741,7 @@ function mario:update(dt)
+ elseif self.animation == "grow1" then
+ self.animationtimer = self.animationtimer + dt
+ --set frame lol
+- local frame = math.ceil(math.mod(self.animationtimer, growframedelay*3)/growframedelay)
++ local frame = math.ceil(math.fmod(self.animationtimer, growframedelay*3)/growframedelay)
+ self:updateangle()
+
+ if frame == 3 then
+@@ -781,7 +781,7 @@ function mario:update(dt)
+ elseif self.animation == "grow2" then
+ self.animationtimer = self.animationtimer + dt
+ --set frame lol
+- local frame = math.ceil(math.mod(self.animationtimer, growframedelay*3)/growframedelay)
++ local frame = math.ceil(math.fmod(self.animationtimer, growframedelay*3)/growframedelay)
+ self:updateangle()
+
+ self.colors = starcolors[frame]
+@@ -812,7 +812,7 @@ function mario:update(dt)
+ if upkey(self.playernumber) then
+ self.vinemovetimer = self.vinemovetimer + dt
+
+- self.climbframe = math.ceil(math.mod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
++ self.climbframe = math.ceil(math.fmod(self.vinemovetimer, vineframedelay*2)/vineframedelay)
+ self.climbframe = math.max(self.climbframe, 1)
+
+ self.y = self.y-vinemovespeed*dt
+@@ -825,7 +825,7 @@ function mario:update(dt)
+ elseif downkey(self.playernumber) then
+ self.vinemovetimer = self.vinemovetimer + dt
+
+- self.climbframe = math.ceil(math.mod(self.vinemovetimer, vineframedelaydown*2)/vineframedelaydown)
++ self.climbframe = math.ceil(math.fmod(self.vinemovetimer, vineframedelaydown*2)/vineframedelaydown)
+ self.climbframe = math.max(self.climbframe, 1)
+
+ checkportalHOR(self, self.y+vinemovedownspeed*dt)
+@@ -1063,7 +1063,7 @@ function mario:movement(dt)
+ --not in air
+ if self.falling == false and self.jumping == false then
+ --bottom on grid
+- if math.mod(self.y+self.height, 1) == 0 then
++ if math.fmod(self.y+self.height, 1) == 0 then
+ local x = round(self.x+self.width/2+.5)
+ local y = self.y+self.height+1
+ --x and y in map
+diff --git a/menu.lua b/menu.lua
+index b425f59..5806f7a 100644
+--- a/menu.lua
++++ b/menu.lua
+@@ -126,7 +126,7 @@ function menu_update(dt)
+
+ if optionsselection > 3 and optionsselection < 13 then
+ local colornumber = math.floor((optionsselection-1)/3)
+- local colorRGB = math.mod(optionsselection-4, 3)+1
++ local colorRGB = math.fmod(optionsselection-4, 3)+1
+
+ if love.keyboard.isDown("right") and mariocolors[skinningplayer][colornumber][colorRGB] < 255 then
+ mariocolors[skinningplayer][colornumber][colorRGB] = mariocolors[skinningplayer][colornumber][colorRGB] + RGBchangespeed*dt
+@@ -806,7 +806,7 @@ function menu_draw()
+ --WHITE BACKGROUND FOR RGB BARS
+
+ if optionsselection > 3 and optionsselection < 13 then
+- love.graphics.rectangle("fill", 69*scale, 89*scale + math.mod(optionsselection-4, 3)*10*scale + math.floor((optionsselection-4)/3)*14*scale, 142*scale, 10*scale)
++ love.graphics.rectangle("fill", 69*scale, 89*scale + math.fmod(optionsselection-4, 3)*10*scale + math.floor((optionsselection-4)/3)*14*scale, 142*scale, 10*scale)
+ end
+
+ if math.floor((optionsselection-1)/3) == 1 then
+@@ -1166,7 +1166,7 @@ function loadbackground(background)
+ --MAP ITSELF
+ local t = s2[1]:split(",")
+
+- if math.mod(#t, 15) ~= 0 then
++ if math.fmod(#t, 15) ~= 0 then
+ print("Incorrect number of entries: " .. #t)
+ return false
+ end
+@@ -2216,4 +2216,4 @@ function selectworld()
+ selectworldexists[i] = true
+ end
+ end
+-end
+\ No newline at end of file
++end
+diff --git a/mushroom.lua b/mushroom.lua
+index 27c1810..0fba999 100644
+--- a/mushroom.lua
++++ b/mushroom.lua
+@@ -38,7 +38,7 @@ end
+
+ function mushroom:update(dt)
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -130,4 +130,4 @@ function mushroom:jump(x)
+ elseif self.x+self.width/2 > x-0.5 then
+ self.speedx = mushroomspeed
+ end
+-end
+\ No newline at end of file
++end
+diff --git a/oneup.lua b/oneup.lua
+index 38a095e..2d0108d 100644
+--- a/oneup.lua
++++ b/oneup.lua
+@@ -38,7 +38,7 @@ end
+
+ function oneup:update(dt)
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -136,4 +136,4 @@ function oneup:jump(x)
+ elseif self.x+self.width/2 > x-0.5 then
+ self.speedx = mushroomspeed
+ end
+-end
+\ No newline at end of file
++end
+diff --git a/sha1.lua b/sha1.lua
+index 94b9f01..9625b5d 100644
+--- a/sha1.lua
++++ b/sha1.lua
+@@ -327,9 +327,9 @@ function sha1(msg)
+ end
+
+ -- now to append the length as a 64-bit number.
+- local B1, R1 = math.modf(msg_len_in_bits / 0x01000000)
+- local B2, R2 = math.modf( 0x01000000 * R1 / 0x00010000)
+- local B3, R3 = math.modf( 0x00010000 * R2 / 0x00000100)
++ local B1, R1 = math.fmodf(msg_len_in_bits / 0x01000000)
++ local B2, R2 = math.fmodf( 0x01000000 * R1 / 0x00010000)
++ local B3, R3 = math.fmodf( 0x00010000 * R2 / 0x00000100)
+ local B4 = 0x00000100 * R3
+
+ local L64 = string.char( 0) .. string.char( 0) .. string.char( 0) .. string.char( 0) -- high 32 bits
+diff --git a/star.lua b/star.lua
+index 877be3e..62dcdbd 100644
+--- a/star.lua
++++ b/star.lua
+@@ -41,7 +41,7 @@ end
+
+ function star:update(dt)
+ --rotate back to 0 (portals)
+- self.rotation = math.mod(self.rotation, math.pi*2)
++ self.rotation = math.fmod(self.rotation, math.pi*2)
+ if self.rotation > 0 then
+ self.rotation = self.rotation - portalrotationalignmentspeed*dt
+ if self.rotation < 0 then
+@@ -139,4 +139,4 @@ function star:jump(x)
+ elseif self.x+self.width/2 > x-0.5 then
+ self.speedx = mushroomspeed
+ end
+-end
+\ No newline at end of file
++end
diff --git a/sources b/sources
index 09bf94d..f39cd69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e600a67ee6f2f09632d446f25c838619 5392efaf472ece528f70a87b006a7bf87ae018c5.tar.gz
+2a6d52f0bfe850879ff955d4b4d8663c mari0-1.6.1.tar.gz
6 years, 9 months
[vidcutter] Add OpenGL_fix.patch
by Martin Gansser
commit ba93b8018f4e9930c26791c8f1c8a6f3bf68b188
Author: Martin Gansser <martinkg(a)fedoraproject.org>
Date: Thu Feb 1 10:39:34 2018 +0100
Add OpenGL_fix.patch
vidcutter.spec | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/vidcutter.spec b/vidcutter.spec
index a145201..39e1e30 100644
--- a/vidcutter.spec
+++ b/vidcutter.spec
@@ -14,7 +14,6 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: mpv-libs-devel
BuildRequires: desktop-file-utils
-
Requires: python3-qt5
Requires: ffmpeg
Requires: python3-pyopengl
6 years, 9 months
[vidcutter] Add OpenGL_fix.patch
by Martin Gansser
commit a74df3da7774c1d5b6e53e36ce36df511c2cbc44
Author: Martin Gansser <martinkg(a)fedoraproject.org>
Date: Thu Feb 1 08:47:06 2018 +0100
Add OpenGL_fix.patch
OpenGL_fix.patch | 37 +++++++++++++++++++++++++++++++++++++
vidcutter.spec | 8 +++++---
2 files changed, 42 insertions(+), 3 deletions(-)
---
diff --git a/OpenGL_fix.patch b/OpenGL_fix.patch
new file mode 100644
index 0000000..cb8a403
--- /dev/null
+++ b/OpenGL_fix.patch
@@ -0,0 +1,37 @@
+--- a/vidcutter/libs/mpvwidget.py 2017-12-15 09:54:25.000000000 -0600
++++ b/vidcutter/libs/mpvwidget-1.py 2017-12-26 11:25:14.629090000 -0600
+@@ -6,6 +6,11 @@
+ import os
+ import sys
+
++# this is required for Ubuntu which seems to have a broken PyQt5 OpenGL implementation
++# so we use PyOpenGL instead for the GL context
++# noinspection PyUnresolvedReferences
++from OpenGL import GL
++
+ from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QEvent, QTimer
+ from PyQt5.QtGui import QKeyEvent, QMouseEvent, QWheelEvent
+ from PyQt5.QtOpenGL import QGLContext
+@@ -156,7 +161,7 @@
+ def setLogLevel(self, loglevel):
+ self.mpv.set_log_level(loglevel)
+
+- def showText(self, msg: str, duration: int=5, level: int=0):
++ def showText(self, msg: str, duration: int = 5, level: int = 0):
+ self.mpv.command('show-text', msg, duration * 1000, level)
+
+ def play(self, filepath) -> None:
+@@ -181,10 +186,10 @@
+ def volume(self, vol: int) -> None:
+ self.mpv.set_property('volume', vol)
+
+- def codec(self, stream: str='video') -> str:
+- return self.mpv.get_property('{}-codec'.format(stream))
++ def codec(self, stream: str = 'video') -> str:
++ return self.mpv.get_property('audio-codec' if stream == 'audio' else 'video-codec')
+
+- def format(self, stream: str='video') -> str:
++ def format(self, stream: str = 'video') -> str:
+ return self.mpv.get_property('audio-codec-name' if stream == 'audio' else 'video-format')
+
+ def property(self, prop: str):
diff --git a/vidcutter.spec b/vidcutter.spec
index 572acf2..a145201 100644
--- a/vidcutter.spec
+++ b/vidcutter.spec
@@ -7,6 +7,8 @@ Summary: The simplest + fastest video cutter & joiner
License: GPLv3+
Url: http://vidcutter.ozmartians.com
Source0: https://github.com/ozmartian/%{name}/archive/%{version}.tar.gz#/%{name}-%...
+# https://github.com/UnitedRPMs/vidcutter/blob/master/OpenGL_fix.patch
+Patch0: OpenGL_fix.patch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@@ -18,7 +20,6 @@ Requires: ffmpeg
Requires: python3-pyopengl
Requires: mediainfo
Requires: hicolor-icon-theme
-Requires: mpv-libs
%description
The simplest & sexiest tool for cutting and joining your videos without the
@@ -27,6 +28,7 @@ the job done using tried and true tech in its arsenal via mpv and FFmpeg.
%prep
%setup -q
+%patch0 -p1
sed -i "s/pypi/rpm/" vidcutter/__init__.py
# Fix error: Empty %%files file debugsourcefiles.list
sed -i "s/-g0/-g/" setup.py
@@ -75,8 +77,8 @@ fi
%{_datadir}/pixmaps/%{name}.svg
%changelog
-* Mon Jan 29 2018 Martin Gansser <martinkg(a)fedoraproject.org> - 5.0.5-2
-- Add RR mpv-libs
+* Wed Jan 31 2018 Martin Gansser <martinkg(a)fedoraproject.org> - 5.0.5-2
+- Add OpenGL_fix.patch
* Sun Dec 03 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 5.0.5-1
- Update to 5.0.5
6 years, 9 months
[discord/f26] Update to 0.0.4
by seancallaway
commit d9f0c1f64c3ce0cf3deca793de0c2cd096904181
Author: Sean Callaway <seancallaway(a)gmail.com>
Date: Wed Jan 31 20:43:24 2018 -0800
Update to 0.0.4
.gitignore | 1 +
discord.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..84e2fb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/discord-0.0.4.tar.gz
diff --git a/discord.spec b/discord.spec
new file mode 100644
index 0000000..ddce3c1
--- /dev/null
+++ b/discord.spec
@@ -0,0 +1,76 @@
+%global debug_package %{nil}
+%global __strip /bin/true
+%global __requires_exclude libffmpeg.so
+
+Name: discord
+Version: 0.0.4
+Release: 1%{?dist}
+Summary: All-in-one voice and text chat for gamers
+
+# License Information: https://bugzilla.rpmfusion.org/show_bug.cgi?id=4441#c14
+License: Proprietary
+URL: https://discordapp.com/
+Source0: https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz
+ExclusiveArch: x86_64
+
+BuildRequires: desktop-file-utils%{_isa}
+BuildRequires: sed%{_isa}
+
+Requires: glibc%{_isa}
+Requires: alsa-lib%{_isa}
+Requires: GConf2%{_isa}
+Requires: libnotify%{_isa}
+Requires: nspr%{_isa} >= 4.13
+Requires: nss%{_isa} >= 3.27
+Requires: libX11%{_isa} >= 1.6
+Requires: libXtst%{_isa} >= 1.2
+Requires: libappindicator%{_isa}
+Requires: libcxx%{_isa}
+
+%description
+Linux Release for Discord, a free proprietary VoIP application designed for
+gaming communities.
+
+%prep
+%autosetup -n Discord
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/%{_bindir}/
+mkdir -p %{buildroot}/%{_libdir}/discord
+mkdir -p %{buildroot}/%{_datadir}/applications
+
+cp -r * %{buildroot}/%{_libdir}/discord/
+ln -sf %{_libdir}/discord/Discord %{buildroot}/%{_bindir}/
+desktop-file-install \
+--set-icon=%{_libdir}/discord/discord.png \
+--set-key=Exec --set-value=%{_bindir}/Discord \
+--delete-original \
+--dir=%{buildroot}/%{_datadir}/applications \
+discord.desktop
+
+%files
+%defattr(-,root,root)
+%{_libdir}/discord/
+%{_bindir}/Discord
+%{_datadir}/applications/discord.desktop
+
+
+%changelog
+* Wed Jan 31 2018 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.4-1
+- Update to 0.0.4
+
+* Tue Dec 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.3-1
+- Update to 0.0.3
+- Now using desktop-file-install.
+- Removed unneeded requirements.
+
+* Wed Aug 16 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.2-1
+- Update to 0.0.2
+- Spec file cleanup.
+
+* Thu Jan 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.1-1
+- Initial build using version 0.0.1
+
diff --git a/sources b/sources
index e69de29..945dfc1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+573637dc71ac61f1b4f47e1637aa946b discord-0.0.4.tar.gz
6 years, 9 months
[discord/f27] Update to 0.0.4
by seancallaway
commit 30823921e83b7d60195c3703ab02b22a7c24147e
Author: Sean Callaway <seancallaway(a)gmail.com>
Date: Wed Jan 31 20:34:08 2018 -0800
Update to 0.0.4
.gitignore | 1 +
discord.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..84e2fb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/discord-0.0.4.tar.gz
diff --git a/discord.spec b/discord.spec
new file mode 100644
index 0000000..ddce3c1
--- /dev/null
+++ b/discord.spec
@@ -0,0 +1,76 @@
+%global debug_package %{nil}
+%global __strip /bin/true
+%global __requires_exclude libffmpeg.so
+
+Name: discord
+Version: 0.0.4
+Release: 1%{?dist}
+Summary: All-in-one voice and text chat for gamers
+
+# License Information: https://bugzilla.rpmfusion.org/show_bug.cgi?id=4441#c14
+License: Proprietary
+URL: https://discordapp.com/
+Source0: https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz
+ExclusiveArch: x86_64
+
+BuildRequires: desktop-file-utils%{_isa}
+BuildRequires: sed%{_isa}
+
+Requires: glibc%{_isa}
+Requires: alsa-lib%{_isa}
+Requires: GConf2%{_isa}
+Requires: libnotify%{_isa}
+Requires: nspr%{_isa} >= 4.13
+Requires: nss%{_isa} >= 3.27
+Requires: libX11%{_isa} >= 1.6
+Requires: libXtst%{_isa} >= 1.2
+Requires: libappindicator%{_isa}
+Requires: libcxx%{_isa}
+
+%description
+Linux Release for Discord, a free proprietary VoIP application designed for
+gaming communities.
+
+%prep
+%autosetup -n Discord
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/%{_bindir}/
+mkdir -p %{buildroot}/%{_libdir}/discord
+mkdir -p %{buildroot}/%{_datadir}/applications
+
+cp -r * %{buildroot}/%{_libdir}/discord/
+ln -sf %{_libdir}/discord/Discord %{buildroot}/%{_bindir}/
+desktop-file-install \
+--set-icon=%{_libdir}/discord/discord.png \
+--set-key=Exec --set-value=%{_bindir}/Discord \
+--delete-original \
+--dir=%{buildroot}/%{_datadir}/applications \
+discord.desktop
+
+%files
+%defattr(-,root,root)
+%{_libdir}/discord/
+%{_bindir}/Discord
+%{_datadir}/applications/discord.desktop
+
+
+%changelog
+* Wed Jan 31 2018 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.4-1
+- Update to 0.0.4
+
+* Tue Dec 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.3-1
+- Update to 0.0.3
+- Now using desktop-file-install.
+- Removed unneeded requirements.
+
+* Wed Aug 16 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.2-1
+- Update to 0.0.2
+- Spec file cleanup.
+
+* Thu Jan 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.1-1
+- Initial build using version 0.0.1
+
diff --git a/sources b/sources
index e69de29..945dfc1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+573637dc71ac61f1b4f47e1637aa946b discord-0.0.4.tar.gz
6 years, 9 months
[discord] Update to 0.0.4
by seancallaway
commit 8279c5894f544a0f72bf60cda796b7ea17702475
Author: Sean Callaway <seancallaway(a)gmail.com>
Date: Wed Jan 31 20:21:11 2018 -0800
Update to 0.0.4
.gitignore | 1 +
discord.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 78 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..84e2fb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/discord-0.0.4.tar.gz
diff --git a/discord.spec b/discord.spec
new file mode 100644
index 0000000..ddce3c1
--- /dev/null
+++ b/discord.spec
@@ -0,0 +1,76 @@
+%global debug_package %{nil}
+%global __strip /bin/true
+%global __requires_exclude libffmpeg.so
+
+Name: discord
+Version: 0.0.4
+Release: 1%{?dist}
+Summary: All-in-one voice and text chat for gamers
+
+# License Information: https://bugzilla.rpmfusion.org/show_bug.cgi?id=4441#c14
+License: Proprietary
+URL: https://discordapp.com/
+Source0: https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz
+ExclusiveArch: x86_64
+
+BuildRequires: desktop-file-utils%{_isa}
+BuildRequires: sed%{_isa}
+
+Requires: glibc%{_isa}
+Requires: alsa-lib%{_isa}
+Requires: GConf2%{_isa}
+Requires: libnotify%{_isa}
+Requires: nspr%{_isa} >= 4.13
+Requires: nss%{_isa} >= 3.27
+Requires: libX11%{_isa} >= 1.6
+Requires: libXtst%{_isa} >= 1.2
+Requires: libappindicator%{_isa}
+Requires: libcxx%{_isa}
+
+%description
+Linux Release for Discord, a free proprietary VoIP application designed for
+gaming communities.
+
+%prep
+%autosetup -n Discord
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/%{_bindir}/
+mkdir -p %{buildroot}/%{_libdir}/discord
+mkdir -p %{buildroot}/%{_datadir}/applications
+
+cp -r * %{buildroot}/%{_libdir}/discord/
+ln -sf %{_libdir}/discord/Discord %{buildroot}/%{_bindir}/
+desktop-file-install \
+--set-icon=%{_libdir}/discord/discord.png \
+--set-key=Exec --set-value=%{_bindir}/Discord \
+--delete-original \
+--dir=%{buildroot}/%{_datadir}/applications \
+discord.desktop
+
+%files
+%defattr(-,root,root)
+%{_libdir}/discord/
+%{_bindir}/Discord
+%{_datadir}/applications/discord.desktop
+
+
+%changelog
+* Wed Jan 31 2018 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.4-1
+- Update to 0.0.4
+
+* Tue Dec 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.3-1
+- Update to 0.0.3
+- Now using desktop-file-install.
+- Removed unneeded requirements.
+
+* Wed Aug 16 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.2-1
+- Update to 0.0.2
+- Spec file cleanup.
+
+* Thu Jan 12 2017 Sean Callaway <seancallaway(a)fedoraproject.org> 0.0.1-1
+- Initial build using version 0.0.1
+
diff --git a/sources b/sources
index e69de29..945dfc1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+573637dc71ac61f1b4f47e1637aa946b discord-0.0.4.tar.gz
6 years, 9 months