soundconverter-4.0.6

This commit is contained in:
uglyside
2025-02-10 10:41:29 +03:00
parent d23e2a1d62
commit 5516f7c1d0
3 changed files with 90 additions and 117 deletions
@@ -5,13 +5,9 @@
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
def build():
pythonmodules.compile(pyVer="3")
pythonmodules.compile(pyVer = "3")
def install():
pythonmodules.install(pyVer="3")
pisitools.dodoc("AUTHORS", "PKG-INFO", "README.md")
pythonmodules.install(pyVer = "3")
@@ -1,23 +0,0 @@
From 5ab29fa1ca3c347e21b7dc865ae971c10758d7b0 Mon Sep 17 00:00:00 2001
From: Gautier Portet <gautier.portet@telespazio.com>
Date: Mon, 25 Oct 2021 14:43:53 +0200
Subject: [PATCH] Prevent crash when duration is not known or zero
Closes lp:1948670, thank Richard.
---
soundconverter/gstreamer/converter.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/soundconverter/gstreamer/converter.py b/soundconverter/gstreamer/converter.py
index 0789e54..9e97385 100644
--- a/soundconverter/gstreamer/converter.py
+++ b/soundconverter/gstreamer/converter.py
@@ -260,7 +260,7 @@ def get_progress(self):
return 0, duration
position = self._query_position()
- progress = position / duration
+ progress = position / duration if duration else 0
progress = min(max(progress, 0.0), 1.0)
return progress, duration
+88 -88
View File
@@ -1,94 +1,94 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>soundconverter</Name>
<Homepage>https://soundconverter.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv3</License>
<IsA>app:gui</IsA>
<PartOf>multimedia.converter</PartOf>
<Summary>GNOME sound converter application.</Summary>
<Description>
A simple sound converter application for the GNOME environment. It reads anything the GStreamer library can read, and writes WAV, FLAC, MP3, and Ogg Vorbis files.
</Description>
<Archive sha1sum="e2cc3b035c327d086999f4d814f44cd73b3c2348" type="targz">https://launchpad.net/soundconverter/trunk/4.0.5/+download/soundconverter-4.0.5.tar.gz</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>gstreamer-devel</Dependency>
<Dependency>desktop-file-utils</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-distutils-extra</Dependency>
<Dependency>python3-pygobject3-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1">Prevent_crash_when_duration_is_not_known_or_zero.patch</Patch> -->
</Patches>
</Source>
<Source>
<Name>soundconverter</Name>
<Homepage>https://soundconverter.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv3</License>
<IsA>app:gui</IsA>
<PartOf>multimedia.converter</PartOf>
<Summary>GNOME sound converter application.</Summary>
<Description>A simple sound converter application for the GNOME environment. It reads anything the GStreamer library can read, and writes WAV, FLAC, MP3, and Ogg Vorbis files.</Description>
<Archive sha1sum="2d4839f10b50503f3cc942f3266e056fbdd624f3" type="targz">https://github.com/kassoulet/soundconverter/archive/4.0.6/soundconverter-4.0.6.tar.gz</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>python3-pygobject3</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-distutils-extra</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="1"></Patch> -->
</Patches>
</Source>
<Package>
<Name>soundconverter</Name>
<RuntimeDependencies>
<Dependency>gtk3</Dependency>
<Dependency>python3</Dependency>
<Dependency>gst-libav</Dependency>
<Dependency>gst-plugins-bad</Dependency>
<Dependency>gst-plugins-base</Dependency>
<Dependency>gst-plugins-ugly</Dependency>
<Dependency>gst-plugins-good</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-pygobject3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>soundconverter</Name>
<RuntimeDependencies>
<Dependency>gtk3</Dependency>
<Dependency>gst-libav</Dependency>
<Dependency>gst-plugins-bad</Dependency>
<Dependency>gst-plugins-base</Dependency>
<Dependency>gst-plugins-ugly</Dependency>
<Dependency>gst-plugins-good</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-pygobject3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2024-08-18</Date>
<Version>4.0.5</Version>
<Comment>Version bump</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="4">
<Date>2023-11-03</Date>
<Version>4.0.4</Version>
<Comment>Version bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="3">
<Date>2021-10-28</Date>
<Version>4.0.2</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="2">
<Date>2021-05-18</Date>
<Version>4.0.1</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="1">
<Date>2020-12-04</Date>
<Version>4.0.0</Version>
<Comment>First build</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
<History>
<Update release="6">
<Date>2025-02-10</Date>
<Version>4.0.6</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="5">
<Date>2024-08-18</Date>
<Version>4.0.5</Version>
<Comment>Version bump</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="4">
<Date>2023-11-03</Date>
<Version>4.0.4</Version>
<Comment>Version bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="3">
<Date>2021-10-28</Date>
<Version>4.0.2</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="2">
<Date>2021-05-18</Date>
<Version>4.0.1</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="1">
<Date>2020-12-04</Date>
<Version>4.0.0</Version>
<Comment>First build</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>