3 %bcond_with tests # perform "make test" (opens /dev/mixer)
7 Summary: Audio::Mixer - Perl extension for sound mixer control
8 Summary(pl.UTF-8): Audio::Mixer - rozszerzenie Perla do sterowania mikserem dźwięku
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 5aaa808a4852ed68f952705172ece2a8
17 URL: http://search.cpan.org/dist/Audio-Mixer/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This is just a very simple Perl interface which allows to set various
24 sound mixer parameters. The most important probably 'vol' (volume).
25 The list of all mixer parameters can be obtained using
26 get_mixer_params() function.
28 %description -l pl.UTF-8
29 To jest bardzo prosty perlowy interfejs, pozwalający na ustawianie
30 różnych parametrów miksera dźwięku. Prawdopodobnie najważniejszym jest
31 'vol' (głośność). Listę wszystkich parametrów miksera można odczytać
32 funkcją get_mixer_params().
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %attr(755,root,root) %{perl_vendorarch}/Audio/volume.pl
59 %{perl_vendorarch}/Audio/Mixer.pm
60 %dir %{perl_vendorarch}/auto/Audio/Mixer
61 %{perl_vendorarch}/auto/Audio/Mixer/autosplit.ix
62 %attr(755,root,root) %{perl_vendorarch}/auto/Audio/Mixer/*.so