File perl-IO-Digest.spec of Package perl-IO-Digest

#
# spec file for package perl-IO-Digest (Version 0.10)
#
# Copyright (c) 2009 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-IO-Digest
BuildRequires:  perl-PerlIO-via-dynamic
License:        Artistic License
Group:          Development/Libraries/Perl
Url:            http://cpan.org/
Requires:       perl = %{perl_version}
AutoReqProv:    on
Summary:        Calculate digests while reading or writing
Version:        0.10
Release:        139
Source:         http://cpan.org/modules/by-module/IO/IO-Digest-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This module allows you to calculate digests while reading or writing
file handles.  This avoids the case you need to reread the same content
to compute the digests after written a file.



Authors:
--------
    Chia-liang Kao <clkao at clkao dot org>

%prep
%setup -n IO-Digest-%{version}

%build
perl Makefile.PL
%{__make}

%install
%perl_make_install
%perl_process_packlist

%clean
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-, root, root)
%dir %{perl_vendorlib}/IO
%{perl_vendorlib}/IO/Digest.pm
%dir %{perl_vendorarch}/auto/IO
%dir %{perl_vendorarch}/auto/IO/Digest
%{perl_vendorarch}/auto/IO/Digest/.packlist
%{_mandir}/man3/IO::Digest.3pm.gz
/var/adm/perl-modules/%{name}

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Feb 16 2005 schwab@suse.de
- Don't remove BuildRoot in %%install.
* Tue Feb 15 2005 lmuelle@suse.de
- Initial SuSE package.
openSUSE Build Service is sponsored by