Projects
Multimedia
audiotools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
audiotools.spec
Changed
@@ -25,6 +25,7 @@ Group: Productivity/Multimedia/Sound/Utilities URL: http://audiotools.sourceforge.net/ Source: https://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: audiotools.patch BuildRequires: libmp3lame-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(alsa) @@ -40,9 +41,6 @@ BuildRequires: pkgconfig(twolame) BuildRequires: pkgconfig(vorbisenc) BuildRequires: pkgconfig(vorbisfile) -%if 0%{?suse_version} == 1315 -BuildRequires: python3 -%endif %description Python Audio Tools is a collection of audio handling programs that work from @@ -57,13 +55,14 @@ Lossless, and more. %prep -%setup -q +%autosetup -p1 + +%build sed -i '/^#!/s/python/python3/' audiotools-config cdda2track cddainfo \ cddaplay coverdump covertag coverview dvda2track dvdainfo track2cdda \ track2track trackcat trackcmp trackinfo tracklength tracklint trackplay \ trackrename tracksplit tracktag trackverify -%build python3 setup.py build make PYTHON=python3 %{?_smp_mflags} -C docs
View file
audiotools.patch
Added
@@ -0,0 +1,20 @@ +--- a/audiotools/__init__.py ++++ b/audiotools/__init__.py +@@ -1172,7 +1172,7 @@ class output_table_row(output_table_divi + + alignment may be 'left', 'center', 'right'""" + +- if alignment not in {"left", "center", "right"}: ++ if alignment not in ["left", "center", "right"]: + raise ValueError("alignment must be 'left', 'center', or 'right'") + if colspan == 1: + self.__columns__.append(output_table_col(text, alignment)) +@@ -1729,7 +1729,7 @@ def file_type(file): + return WaveAudio + elif ((len(header) >= 10) and + (header[0:3] == b"ID3") and +- (header[3:4] in {b"\x02", b"\x03", b"\x04"})): ++ (header[3:4] in [b"\x02", b"\x03", b"\x04"])): + # file contains ID3v2 tag + # so it may be MP3, MP2, FLAC or TTA +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.