summaryrefslogtreecommitdiff
path: root/perl-Audio-DSP.spec
blob: ee87dc2e8f80d7c25431432939e5ac6c551337fa (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
#
# Conditional build:
%bcond_with	tests	# perform "make test" (requires working /dev/dsp)

%define		pdir	Audio
%define		pnam	DSP
Summary:	Audio::DSP Perl module - interface to *NIX digital audio device
Summary(pl.UTF-8):	Moduł Perla Audio::DSP - interfejs do uniksowego cyfrowego urządzenia cyfrowego dźwiękowego
Name:		perl-Audio-DSP
Version:	0.02
Release:	19
# 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:	7c3027a732d14665d4ffec0aff4b548e
URL:		http://search.cpan.org/dist/Audio-DSP/
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Audio::DSP is built around the OSS (Open Sound System) API and allows
Perl to interface with a digital audio device. The Audio::DSP object
stores I/O parameters and also supplies temporary storage for raw
audio data.

%description -l pl.UTF-8
Moduł Audio::DSP jest oparty na API systemu OSS (Open Sound System) i
pozwala Perlowi na dostęp do urządzenia cyfrowego dźwięku. Obiekt
Audio::DSP przechowuje parametry wejścia/wyjścia oraz tymczasowo
surowe dane dźwiękowe.

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

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make} \
	CC="%{__cc}" \
	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 Changes README
%{perl_vendorarch}/Audio/DSP.pm
%dir %{perl_vendorarch}/auto/Audio/DSP
%{perl_vendorarch}/auto/Audio/DSP/autosplit.ix
%attr(755,root,root) %{perl_vendorarch}/auto/Audio/DSP/*.so
%{_mandir}/man3/*