56 lines
1.8 KiB
RPMSpec
56 lines
1.8 KiB
RPMSpec
|
|
Name: perl-MP3-Cut-Gapless
|
||
|
|
Version: 0.03
|
||
|
|
Release: 1%{?dist}
|
||
|
|
Summary: Split an MP3 file without gaps (based on pcutmp3)
|
||
|
|
License: GPLv2+
|
||
|
|
Group: Development/Libraries
|
||
|
|
URL: http://search.cpan.org/dist/MP3-Cut-Gapless/
|
||
|
|
Source0: http://www.cpan.org/authors/id/A/AG/AGRUNDMA/MP3-Cut-Gapless-%{version}.tar.gz
|
||
|
|
BuildRequires: perl(Audio::Cuefile::Parser)
|
||
|
|
BuildRequires: perl(Digest::MD5)
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
|
BuildRequires: perl(File::Path)
|
||
|
|
BuildRequires: perl(File::Spec)
|
||
|
|
Requires: perl(Audio::Cuefile::Parser)
|
||
|
|
Requires: perl(Digest::MD5)
|
||
|
|
Requires: perl(File::Path)
|
||
|
|
Requires: perl(File::Spec)
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
|
||
|
|
%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.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n MP3-Cut-Gapless-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
|
make %{?_smp_mflags}
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||
|
|
|
||
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||
|
|
|
||
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Changes TODO
|
||
|
|
%{perl_vendorarch}/auto/*
|
||
|
|
%{perl_vendorarch}/MP3*
|
||
|
|
%{_mandir}/man3/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Fri Aug 08 2014 Hans de Goede <hdegoede@redhat.com> - 0.03-1
|
||
|
|
- Specfile autogenerated by cpanspec 1.78.
|