Accepting request 54016 from devel:languages:perl

Accepted submit request 54016 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/54016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Clone?expand=0&rev=11
This commit is contained in:
Berthold Gunreben 2010-11-30 14:42:58 +00:00 committed by Git OBS Bridge
commit df02f145f0
4 changed files with 44 additions and 31 deletions

3
Clone-0.31.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22661ba219f7580747b41241d2570da5cd677119551a72120627106cbd1e1ca1
size 11482

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94432ba5cadbf9f78fb29a23f68481e70e24d2e77f1f669f2919b00cc3a15f39
size 11753

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 26 16:44:33 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- bzipped Source
-------------------------------------------------------------------
Tue Oct 19 08:38:24 UTC 2010 - coolo@novell.com

View File

@ -17,57 +17,64 @@
# norootforbuild
Name: perl-Clone
License: Artistic
Group: Development/Libraries/Perl
Url: http://cpan.org/
Requires: perl = %{perl_version}
AutoReqProv: on
%define cpan_name Clone
Summary: Recursively copy Perl datatypes
Version: 0.31
Release: 6
Source: http://cpan.org/modules/by-module/Clone/Clone-%{version}.tar.gz
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Clone/
#Source: http://www.cpan.org/authors/id/R/RD/RDF/Clone-0.31.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
Requires: perl = %{perl_version}
%description
This module provides a clone() method which makes recursive copies of
nested hash, array, scalar and reference types, including tied
variables and objects.
nested hash, array, scalar and reference types, including tied variables
and objects.
Authors:
--------
Ray Finch <rdf at cpan dot org>
For a slower, but more flexible solution see Storable's dclone().
%prep
%setup -q -n Clone-%{version}
%setup -q -n %{cpan_name}-%{version}
### rpmlint:
# spurious-executable-perm
# script-without-shebang
%{__chmod} 0644 Changes *.{xs,pm}
%build
chmod 644 Changes
perl Makefile.PL
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
### since 11.4 perl_process_packlist
### removes .packlist, perllocal.pod files
%if 0%{?suse_version} > 1130
%perl_process_packlist
%else
# do not perl_process_packlist
# remove .packlist file
%{__rm} -f $RPM_BUILD_ROOT%perl_vendorarch/auto/Clone/.packlist
# remove perllocal.pod file
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
%endif
%perl_gen_filelist
%clean
rm -rf ${RPM_BUILD_ROOT}
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%files -f %{name}.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