]>
Commit | Line | Data |
---|---|---|
af647acb JB |
1 | # |
2 | # Conditional build: | |
da25d689 | 3 | %bcond_without tests # do not perform "make test" |
67787597 | 4 | |
6eccef4c | 5 | %define pdir Audio |
6 | %define pnam Mad | |
67787597 | 7 | %include /usr/lib/rpm/macros.perl |
af647acb | 8 | Summary: Audio::Mad Perl module - interface to the mad MPEG decoder library |
e61b0bc4 | 9 | Summary(pl.UTF-8): Moduł Perla Audio::Mad - interfejs do biblioteki dekodera MPEG mad |
af647acb | 10 | Name: perl-Audio-Mad |
062a3255 JB |
11 | Version: 0.6 |
12 | Release: 1 | |
af647acb JB |
13 | License: GPL v2 |
14 | Group: Development/Languages/Perl | |
f3454013 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
062a3255 | 16 | # Source0-md5: ede73e114efea0956f8abdb4072fa0bf |
67787597 | 17 | URL: http://search.cpan.org/dist/Audio-Mad/ |
062a3255 | 18 | BuildRequires: libmad-devel |
c9e15ed3 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
0a6e8995 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
af647acb JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Audio::Mad is a Perl module designed to provide an abstract interface | |
25 | to the low level mad mpeg decoder library. Interfaces for mad_stream, | |
26 | mad_frame, mad_synth, and mad_timer_t are provided. Two addon | |
27 | interfaces Mad::Resample and Mad::Dither provide methods for | |
28 | manipulating raw mad_fixed_t data into usable strings. | |
29 | ||
ead6aec5 JR |
30 | %description -l pl.UTF-8 |
31 | Audio::Mad to moduł Perla stworzony by udostępnić abstrakcyjny | |
af647acb JB |
32 | interfejs do niskopoziomowej biblioteki dekodera MPEG - mad. Dostarcza |
33 | interfejsy do mad_stream, mad_frame, mad_synth i mad_timer_t. Dwa | |
ead6aec5 JR |
34 | dodatkowe interfejsy Mad::Resample i Mad::Dither udostępniają metody |
35 | do przekształcania surowych danych mad_fixed_t na użyteczne ciągi. | |
af647acb JB |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
0a6e8995 | 41 | %{__perl} Makefile.PL \ |
6c8ce1f7 | 42 | INSTALLDIRS=vendor |
ee06cc77 | 43 | %{__make} \ |
96d9e1d9 | 44 | CC="%{__cc}" \ |
ee06cc77 | 45 | OPTIMIZE="%{rpmcflags}" |
af647acb | 46 | |
da25d689 | 47 | %{?with_tests:%{__make} test} |
af647acb JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README | |
0a6e8995 | 61 | %{perl_vendorarch}/Audio/Mad.pm |
62 | %{perl_vendorarch}/Audio/Mad | |
63 | %dir %{perl_vendorarch}/auto/Audio/Mad | |
0a6e8995 | 64 | %attr(755,root,root) %{perl_vendorarch}/auto/Audio/Mad/*.so |
af647acb | 65 | %{_mandir}/man3/* |