3 %bcond_with tests # do perform "make test"
4 # (fails probably because of libmad version different from reference one)
6 %include /usr/lib/rpm/macros.perl
9 Summary: Audio::MPEG Perl module - encoding and decoding of MPEG Audio
10 Summary(pl.UTF-8): Moduł Perla Audio::MPEG - kodowanie i dekodowanie dźwięku MPEG
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 9c5b09cf06c934a001b81c05f786a295
18 Patch0: %{name}-lame-fix.patch
19 Patch1: %{name}-build.patch
20 BuildRequires: lame-libs-devel
21 BuildRequires: libmad-devel
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module will allow a Perl program to verify an MP3 file (fixed and
28 variable bitrate), decode it into a high-resolution (24 bit) PCM
29 stream, apply filtering effects to the data (stereo->mono, fade
30 in/out, equalizer), transform that stream into an audio stream (WAV,
31 Sun AU, integer PCM, floating point PCM), and finally encode a PCM
34 %description -l pl.UTF-8
35 Ten moduł umożliwia programom w Perlu weryfikację plików MP3 (o
36 zmiennej i stałej prędkości strumienia), dekodowanie ich do strumienia
37 PCM o dużej rozdzielczości (24 bity), przepuszczanie przez filtry
38 efektów (stereo->moni, wchodzenie/wyciszanie, equalizer),
39 przekształcanie tego strumienia na strumień dźwiękowy (WAV, Sun AU,
40 całkowitoliczbowy PCM, zmiennoprzecinkowy PCM) i w końcu kodowanie
44 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 # "encode" tests and half of "wave" test fail
56 # please, check it again
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorarch}/Audio/MPEG.pm
72 %dir %{perl_vendorarch}/auto/Audio/MPEG
73 %attr(755,root,root) %{perl_vendorarch}/auto/Audio/MPEG/*.so