File perl-MP3-ID3Lib.spec of Package perl-MP3-ID3Lib

# vim: set sw=4 ts=4 et nu:

# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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-MP3-ID3Lib
Version:        0.12
Release:        0
Summary:        ID3v1/ID3v2 Tagging of MP3 files
Source:         http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/MP3-ID3Lib-%{version}.tar.gz
URL:            http://search.cpan.org/dist/MP3-ID3Lib
Group:          Development/Libraries/Perl
License:        GPL-2.0+ or Artistic-1.0
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires:  id3lib-devel
BuildRequires:  zlib-devel
BuildRequires:  perl-macros
BuildRequires:  gcc-c++ make

%description
This module allows you to edit and add ID3 tags in MP3 files.

ID3 tags are small pieces of information stored inside the MP3 file. They can
contain bits of metadata about the MP3, such as album name, song name, artist,
original artist, genre, composer, year of release, additional comment fields,
and many more.

%prep
%setup -q -n "MP3-ID3Lib-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}

%install
%perl_make_install
%perl_process_packlist

%check
%__make test

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc CHANGES README
%dir %{perl_vendorarch}/MP3
%{perl_vendorarch}/MP3/ID3Lib.pm
%{perl_vendorarch}/MP3/ID3Lib
%dir %{perl_vendorarch}/auto/MP3
%{perl_vendorarch}/auto/MP3/ID3Lib
%doc %{perl_man3dir}/MP3::ID3Lib.%{perl_man3ext}*
%doc %{perl_man3dir}/MP3::ID3Lib::*.%{perl_man3ext}*

%changelog
openSUSE Build Service is sponsored by