File perl-Audio-CD.spec of Package perl-Audio-CD
#
# spec file for package perl-Audio-CD
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Audio-CD
Version: 0.04
Release: 0
%define cpan_name Audio-CD
Summary: Perl interface to libcdaudio (cd + cddb)
License: GPL-1+ or Artistic-1
Group: Development/Libraries/Perl
Summary: Audio::CD Perl module
Url: http://search.cpan.org/dist/Audio-CD/
Source: http://www.cpan.org/authors/id/D/DO/DOUGM/%{cpan_name}-%{version}.tar.gz
Patch: %{cpan_name}-%version.implicit_definitions_of_special_functions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
#BuildRequires: perl-macros # do we really need them ?
BuildRequires: libcdaudio-devel
#BuildArch: noarch
#BuildRequires: perl(Audio::CD)
%if 0%{?suse_version} > 1130
%{perl_requires}
%endif
%description
Audio::CD provides a Perl interface to libcdaudio by Tony Arcieri,
available from http://cdcd.undergrid.net/
Several classes provide glue for the libcdaudio functions and data
structures.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc README
%changelog