generated from smedev/Template-for-SMEServer-Core-Perl
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.45-2.sme
- import to SME11
This commit is contained in:
parent
edf37b9f89
commit
7044662853
BIN
Clone-0.45.tar.gz
(Stored with Git LFS)
Normal file
BIN
Clone-0.45.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
117
perl-Clone.spec
117
perl-Clone.spec
@ -1,57 +1,90 @@
|
|||||||
%define name perl-Clone
|
Name: perl-Clone
|
||||||
%define version 1.0
|
Version: 0.45
|
||||||
%define release 1
|
Release: 2%{?org_tag}%{?dist}
|
||||||
Summary: This is what perl-Clone does.
|
Summary: Recursively copy Perl datatypes
|
||||||
Name: %{name}
|
License: GPL+ or Artistic
|
||||||
Version: %{version}
|
Group: Development/Libraries
|
||||||
Release: %{release}%{?dist}
|
URL: http://search.cpan.org/dist/Clone/
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/R/RD/RDF/Clone-%{version}.tar.gz
|
||||||
License: GNU GPL version 2
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Group: SMEserver/addon
|
BuildRequires: coreutils
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRequires: findutils
|
||||||
Prefix: %{_prefix}
|
BuildRequires: make
|
||||||
BuildArchitectures: noarch
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: smeserver-devtools
|
BuildRequires: perl-devel
|
||||||
Requires: smeserver-release >= 11.0
|
BuildRequires: perl-generators
|
||||||
AutoReqProv: no
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(B::COW) >= 0.004
|
||||||
|
# Run-time:
|
||||||
|
BuildRequires: perl(AutoLoader)
|
||||||
|
BuildRequires: perl(DynaLoader)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
|
# Tests:
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(utf8)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Optional tests:
|
||||||
|
BuildRequires: perl(Data::Dumper)
|
||||||
|
BuildRequires: perl(Hash::Util::FieldHash)
|
||||||
|
BuildRequires: perl(Scalar::Util)
|
||||||
|
BuildRequires: perl(Taint::Runtime)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%{?perl_default_filter}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied variables and objects.
|
This module provides a clone() method which makes recursive
|
||||||
|
copies of nested hash, array, scalar and reference types,
|
||||||
|
including tied variables and objects.
|
||||||
|
|
||||||
clone() takes a scalar argument and an optional parameter that can be used to limit the depth of the copy. To duplicate lists, arrays or hashes, pass them in by reference.
|
clone() takes a scalar argument and an optional parameter that
|
||||||
|
can be used to limit the depth of the copy. To duplicate lists,
|
||||||
|
arrays or hashes, pass them in by reference.
|
||||||
%changelog
|
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
|
||||||
- Initial code - create RPM [SME:99999]
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -q -n Clone-%{version}
|
||||||
%setup -q
|
find . -type f -exec chmod -c -x {} +
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%{__perl} Makefile.PL --skipdeps INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
|
||||||
rm -f %{name}-%{version}-filelist
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
||||||
> %{name}-%{version}-filelist
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||||
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||||
#--dir <dir> 'attr(755,user,grp)' \
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
#--file <file> 'attr(755,root,root)' \
|
|
||||||
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
cd ..
|
rm -rf %{buildroot}
|
||||||
rm -rf %{name}-%{version}
|
|
||||||
|
|
||||||
%pre
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes
|
||||||
|
%{perl_vendorarch}/auto/*
|
||||||
|
%{perl_vendorarch}/Clone*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%preun
|
%changelog
|
||||||
|
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.45-2.sme
|
||||||
|
- import to SME11
|
||||||
|
|
||||||
%post
|
* Thu Jan 13 2022 Gavin Carr <gavin@openfusion.net> 0.45-1
|
||||||
|
- Update to version 0.45.
|
||||||
|
|
||||||
%postun
|
* Sun Apr 29 2018 Gavin Carr <gavin@openfusion.com.au> 0.39-1
|
||||||
#uninstall
|
- Update to version 0.39.
|
||||||
%files -f %{name}-%{version}-filelist
|
|
||||||
%defattr(-,root,root)
|
* Mon Feb 07 2011 Gavin Carr <gavin@openfusion.com.au> 0.31-1
|
||||||
|
- Specfile autogenerated by cpanspec 1.78.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user