]>
Commit | Line | Data |
---|---|---|
02d78411 JB |
1 | # |
2 | # Conditional build: | |
02c2ab3e | 3 | %bcond_with tests # perform "make test" (opens /dev/mixer) |
20279356 | 4 | |
a3cc2a1d | 5 | %define pdir Audio |
6 | %define pnam Mixer | |
24e085e7 | 7 | Summary: Audio::Mixer - Perl extension for sound mixer control |
496763a9 | 8 | Summary(pl.UTF-8): Audio::Mixer - rozszerzenie Perla do sterowania mikserem dźwięku |
02d78411 | 9 | Name: perl-Audio-Mixer |
548d06de | 10 | Version: 0.7 |
279a66a7 | 11 | Release: 16 |
26611727 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
02d78411 | 14 | Group: Development/Languages/Perl |
810eb209 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
548d06de | 16 | # Source0-md5: 5aaa808a4852ed68f952705172ece2a8 |
20279356 | 17 | URL: http://search.cpan.org/dist/Audio-Mixer/ |
c86bd205 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
427bcd25 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
02d78411 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
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. | |
27 | ||
2d179ddf JR |
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(). | |
02d78411 JB |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
427bcd25 | 38 | %{__perl} Makefile.PL \ |
7e9222ca | 39 | INSTALLDIRS=vendor |
2d3ab606 | 40 | %{__make} \ |
55072fcf | 41 | CC="%{__cc}" \ |
2d3ab606 | 42 | OPTIMIZE="%{rpmcflags}" |
02d78411 | 43 | |
02c2ab3e | 44 | %{?with_tests:%{__make} test} |
02d78411 JB |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
427bcd25 | 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 | |
427bcd25 | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Audio/Mixer/*.so |
02d78411 | 63 | %{_mandir}/man3/* |