]>
Commit | Line | Data |
---|---|---|
4932e780 | 1 | # |
2 | # Conditional build: | |
4932e780 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
4932e780 | 5 | %define pdir Audio |
6 | %define pnam FLAC-Header | |
5ddaf955 JB |
7 | Summary: Audio::FLAC::Header - interface to FLAC header metadata |
8 | Summary(pl.UTF-8): Audio::FLAC::HEADER - interfejs do metadanych nagłówków FLAC | |
4932e780 | 9 | Name: perl-Audio-FLAC-Header |
0ca029b6 | 10 | Version: 2.4 |
76dabca3 | 11 | Release: 16 |
4932e780 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Audio/%{pdir}-%{pnam}-%{version}.tar.gz | |
0ca029b6 | 16 | # Source0-md5: 743292694c050be1b10fb4a307f81e87 |
4932e780 | 17 | URL: http://search.cpan.org/dist/Audio-FLAC-Header/ |
18 | BuildRequires: flac-devel | |
a42644b9 | 19 | BuildRequires: perl-Test-Pod-Coverage |
5ddaf955 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
4932e780 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
4932e780 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
5ddaf955 JB |
25 | This module returns a hash containing basic information about a FLAC |
26 | file, a representation of the embedded cue sheet if one exists, as | |
27 | well as tag information contained in the FLAC file's Vorbis tags. | |
4932e780 | 28 | |
5ddaf955 JB |
29 | %description -l pl.UTF-8 |
30 | Ten moduł zwraca hasza zawierającego podstawowe informacje o pliku | |
31 | FLAC reprezentujące osadzone wskazówki, a także informacje ze | |
32 | znaczników Vorbis zawartych w pliku FLAC. | |
4932e780 | 33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} \ | |
4492b6d6 | 41 | CC="%{__cc}" \ |
4932e780 | 42 | OPTIMIZE="%{rpmcflags}" |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_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 TODO | |
58 | %dir %{perl_vendorarch}/Audio/FLAC | |
59 | %{perl_vendorarch}/Audio/FLAC/Header.pm | |
60 | %dir %{perl_vendorarch}/auto/Audio/FLAC | |
61 | %dir %{perl_vendorarch}/auto/Audio/FLAC/Header | |
4932e780 | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Audio/FLAC/Header/Header.so |
63 | %{_mandir}/man3/* |