summaryrefslogtreecommitdiff
path: root/perl-Audio-SoundFile.spec
blob: e9385e6a6c60492df593869f0d083b0a88bc07fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define		pdir	Audio
%define		pnam	SoundFile
Summary:	Audio::SoundFile Perl module - interface to libsndfile, a sound I/O library
Summary(pl.UTF-8):   Moduł Perla Audio::SoundFile - interfejs do libsndfile
Name:		perl-Audio-SoundFile
Version:	0.15
Release:	4
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	3c89682c47079d1c35e3031cc497a7f5
Patch0:		%{name}-libsndfile1.patch
BuildRequires:	libsndfile-devel >= 1.0.0
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	perl-PDL
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This module provides interface to libsndfile. With this library, you
will be able to read, write, and manipulate sound data of more than 10
formats. Also, in addition to read/write interface using usual Perl
scalar, this module provides interface using PDL object directly.
Since PDL provides efficient method to handle large bytestream, sound
processing is much faster if this module and PDL is used in pair.

%description -l pl.UTF-8
Ten moduł udostępnia interfejs do libsndfile. Biblioteka ta pozwala na
odczyt, zapis i obróbkę danych dźwiękowych w ponad 10 formatach.
Ponadto, oprócz interfejsu używającego perlowych skalarów, ten moduł
udostępnia interfejs używający bezpośrednio obiektu PDL. Ponieważ PDL
udostępnia wydajne sposoby na obsługę dużych strumieni danych,
przetwarzanie dźwięku jest szybsze przy współpracy z PDL.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch0 -p1

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make} \
	OPTIMIZE="%{rpmcflags}"

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README*
%{perl_vendorarch}/Audio/SoundFile.pm
%{perl_vendorarch}/Audio/SoundFile
%dir %{perl_vendorarch}/auto/Audio/SoundFile
%dir %{perl_vendorarch}/auto/Audio/SoundFile/*
%{perl_vendorarch}/auto/Audio/SoundFile/*/*.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Audio/SoundFile/*/*.so
%{_mandir}/man3/*