]>
Commit | Line | Data |
---|---|---|
32e4b0e8 JB |
1 | # |
2 | # TODO: add subpackage with included version of mpg123, or add patches to | |
3 | # mpg123 package (this module works better with modified version) | |
4 | # | |
5 | # Conditional build: | |
6ba04971 | 6 | %bcond_without tests # do not perform "make test" |
50e45f38 | 7 | |
78b5bd07 | 8 | %define pdir Audio |
9 | %define pnam Play-MPG123 | |
50e45f38 | 10 | %include /usr/lib/rpm/macros.perl |
32e4b0e8 | 11 | Summary: Audio::Play::MPG123 Perl module - a frontend to mpg123 |
63061933 | 12 | Summary(pl.UTF-8): Moduł Perla Audio::Play::MPG123 - frontend do mpg123 |
32e4b0e8 | 13 | Name: perl-Audio-Play-MPG123 |
18785c6c | 14 | Version: 0.63 |
51f4e2c2 | 15 | Release: 2 |
c7ab3e2a | 16 | License: GPL v1 or Artistic |
32e4b0e8 | 17 | Group: Development/Languages/Perl |
e31997c3 | 18 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
18785c6c | 19 | # Source0-md5: bd5134e4a7b5a537a921e464dc264e5f |
50e45f38 | 20 | URL: http://search.cpan.org/dist/Audio-Play-MPG123/ |
195d12ed | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
0343844e | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
32e4b0e8 | 23 | Requires: mpg123 >= 0.59r |
50e45f38 | 24 | BuildArch: noarch |
32e4b0e8 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | This is a frontend to the mpg123 player. It works by starting an | |
29 | external mpg123 process with the `-R' option and feeding commands to | |
30 | it. | |
31 | ||
acc90625 | 32 | %description -l pl.UTF-8 |
32e4b0e8 | 33 | To jest frontend do odtwarzacza mpg123. Funkcjonuje poprzez |
acc90625 | 34 | uruchomienie zewnętrznego procesu mpg123 z opcją -R i karmienie go |
32e4b0e8 JB |
35 | poleceniami. |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
0343844e | 41 | %{__perl} Makefile.PL \ |
cc167bd4 | 42 | INSTALLDIRS=vendor |
32e4b0e8 JB |
43 | %{__make} |
44 | ||
6ba04971 | 45 | %{?with_tests:%{__make} test} |
32e4b0e8 JB |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc COPYING Changes README | |
59 | %attr(755,root,root) %{_bindir}/mpg123sh | |
0343844e | 60 | %dir %{perl_vendorlib}/Audio/Play |
61 | %{perl_vendorlib}/Audio/Play/MPG123.pm | |
32e4b0e8 | 62 | %{_mandir}/man3/* |