# # spec file for package perl-MP3-Cut-Gapless # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-MP3-Cut-Gapless Version: 0.03 Release: 1.0 %define cpan_name MP3-Cut-Gapless Summary: Split an MP3 file without gaps (based on pcutmp3) License: This program is free software and you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation and either version 2 of the License, or (at your option) any later version. Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/MP3-Cut-Gapless/ Source0: MP3-Cut-Gapless-0.03.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Audio::Cuefile::Parser) Requires: perl(Audio::Cuefile::Parser) %{perl_requires} %description This module performs sample-granular splitting of an MP3 file. Most MP3 splitters only split on frame boundaries which can leave gaps or noise between files due to MP3's bit reservoir. This module, which is based on the Java pcutmp3 tool, rewrites the LAME tag and adjusts the audio frames as necessary to make the split completely gapless when played with a compatible decoder that supports LAME encoder delay and padding. There are two main ways to use this module. 1. Using a cue sheet, you can split a large input file into a series of tracks. 2. Realtime transcoding can be performed by specifying an input file and a start/end time, after which the rewritten MP3 can be streamed to an audio device. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes TODO %changelog