perl-Clone/perl-Clone.spec

73 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Clone (Version 0.31)
#
# 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-Clone
License: Artistic
Group: Development/Libraries/Perl
Url: http://cpan.org/
Requires: perl = %{perl_version}
AutoReqProv: on
Summary: Recursively copy Perl datatypes
Version: 0.31
Release: 1
Source: http://cpan.org/modules/by-module/Clone/Clone-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module provides a clone() method which makes recursive copies of
nested hash, array, scalar and reference types, including tied
variables and objects.
Authors:
--------
Ray Finch <rdf at cpan dot org>
%prep
%setup -q -n Clone-%{version}
%build
chmod 644 Changes
perl Makefile.PL
%{__make} %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-, root, root)
%doc Changes
%{perl_vendorarch}/Clone.pm
%dir %{perl_vendorarch}/auto/Clone
%{perl_vendorarch}/auto/Clone/.packlist
%{perl_vendorarch}/auto/Clone/*
%{_mandir}/man3/Clone.3pm.gz
/var/adm/perl-modules/%{name}
%changelog