Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d38bdcba5b3fc8b9eb59a7309c72e431 > files > 2

perl-MIDI-ALSA-1.170.0-3.mga3.src.rpm

%define upstream_name    MIDI-ALSA
%define upstream_version 1.17

Name:		perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	%mkrel 3

Summary:	ALSA library access for Perl, plus some interface functions
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/MIDI-ALSA/
Source0:	http://search.cpan.org/CPAN/authors/id/P/PJ/PJB/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel, alsa-lib-devel, perl(Time::HiRes), perl(Test::Simple)


%description
This module offers a Perl interface to the ALSA library. It is a
call-compatible translation into Perl of the Lua module midialsa
which is in turn based on the Python modules alsaseq.py and alsamidi.py
by Patricio Paez.

It also offers some functions to translate events from and to the event
format used in Sean Burke's MIDI-Perl module.

Nothing is exported by default, but all the functions and constants can be
exported, e.g.: use MIDI::ALSA(client, connectfrom, connectto, id, input,
output); use MIDI::ALSA(':CONSTS');


%prep
%setup -q -n %{upstream_name}-%{upstream_version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make


%check
## tests require virmidi kernel module loaded and rw acces to /dev/snd/seq
#make test


%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%clean
rm -rf %{buildroot}


%files
%doc Changes README examples
%{perl_vendorarch}/MIDI/ALSA.pm
%{perl_vendorarch}/auto/MIDI/ALSA/ALSA.so
%{_mandir}/man3/MIDI::ALSA.3pm.*


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.170.0-3.mga3
+ Revision: 369298
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Dec 15 2012 shlomif <shlomif> 1.170.0-2.mga3
+ Revision: 331080
- A missing macro in the source0
- Made the distribution more Mageia-like.

* Thu Dec 13 2012 shlomif <shlomif> 1.17-1.mga3
+ Revision: 330228
- New version 1.17

* Sat Dec 08 2012 shlomif <shlomif> 1.16-1.mga3
+ Revision: 328296
- mkrel
- Importing perl-MIDI-ALSA from CentOS 6 from tux99-mga