File perl-CDDB_get.spec of Package perl-CDDB_get

#
# spec file for package perl-CDDB_get (Version 2.27)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           perl-CDDB_get
Version:        2.27
Release:        1
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License ..
Url:            http://armin.emx.at/cddb/
Summary:        Read the CDDB entry for an audio CD in your drive
Source:         CDDB_get-%version.tar.bz2
Source1:        cddb.pl.1.gz
Patch:          %name-2.23-tmpfile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl perl-macros
%{perl_requires}

%description
This module/script gets the CDDB info for an audio cd. You need LINUX,
SUNOS or *BSD, a cdrom drive and an active internet connection in order
to do that.



Authors:
--------
    Armin Obersteiner <armin@xos.net>

%prep
%setup -q -n CDDB_get-%version
%patch -p1

%build
perl Makefile.PL
make %{?_smp_mflags}

%check
make test

%install
%perl_make_install
%perl_process_packlist
install -d -m755  $RPM_BUILD_ROOT/%{_mandir}/man1
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README MANIFEST Artistic Changes Copying
%doc %_mandir/man?/*
%_bindir/cddb.pl
%perl_vendorlib/CDDB_get.pm
%perl_vendorlib/CDDB_cache.pm
%perl_vendorlib/cddb.pl
%perl_vendorlib/auto/CDDB_get
%perl_vendorlib/auto/CDDB_cache
%perl_vendorarch/auto/CDDB_get

%changelog
openSUSE Build Service is sponsored by