]> git.pld-linux.org Git - packages/perl-MP3-Info.git/blob - perl-MP3-Info.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MP3-Info.git] / perl-MP3-Info.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    MP3
6 %define         pnam    Info
7 Summary:        MP3::Info - manipulate / fetch info from MP3 audio files
8 Summary(pl.UTF-8):      MP3::Info - odczyt i operowanie na informacjach z plików dźwiękowych MP3
9 Name:           perl-MP3-Info
10 Version:        1.24
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/MP3/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  fb4bcc43764e3b46c3a7c74b50ed7a44
16 URL:            http://search.cpan.org/dist/MP3-Info/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 Obsoletes:      perl-MPEG-MP3Info
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 MP3::Info Perl module fetches and manipulates info from MP3 audio
25 files.
26
27 %description -l pl.UTF-8
28 Moduł Perla MP3::Info wyciąga informacje z plików MP3 i umożliwia
29 operowanie na nich.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %{?with_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 cp -f eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes README
56 %{perl_vendorlib}/MP3
57 %{_mandir}/man3/*
58 %dir %{_examplesdir}/%{name}-%{version}
59 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*
This page took 0.423674 seconds and 4 git commands to generate.