]> git.pld-linux.org Git - packages/perl-Audio-Play-MPG123.git/blob - perl-Audio-Play-MPG123.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Audio-Play-MPG123.git] / perl-Audio-Play-MPG123.spec
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:
6 %bcond_without  tests   # do not perform "make test"
7
8 %define         pdir    Audio
9 %define         pnam    Play-MPG123
10 Summary:        Audio::Play::MPG123 Perl module - a frontend to mpg123
11 Summary(pl.UTF-8):      Moduł Perla Audio::Play::MPG123 - frontend do mpg123
12 Name:           perl-Audio-Play-MPG123
13 Version:        0.63
14 Release:        2
15 License:        GPL v1 or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  bd5134e4a7b5a537a921e464dc264e5f
19 URL:            http://search.cpan.org/dist/Audio-Play-MPG123/
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 Requires:       mpg123 >= 0.59r
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is a frontend to the mpg123 player. It works by starting an
28 external mpg123 process with the `-R' option and feeding commands to
29 it.
30
31 %description -l pl.UTF-8
32 To jest frontend do odtwarzacza mpg123. Funkcjonuje poprzez
33 uruchomienie zewnętrznego procesu mpg123 z opcją -R i karmienie go
34 poleceniami.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
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 COPYING Changes README
58 %attr(755,root,root) %{_bindir}/mpg123sh
59 %dir %{perl_vendorlib}/Audio/Play
60 %{perl_vendorlib}/Audio/Play/MPG123.pm
61 %{_mandir}/man3/*
This page took 0.108344 seconds and 3 git commands to generate.