!1 package init

From: @caodongxia
Reviewed-by: @jeff200902,@myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2020-11-07 00:42:25 +08:00 committed by Gitee
commit 4e22f66ebc
3 changed files with 83 additions and 0 deletions

BIN
Devel-Cycle-1.12.tar.gz Normal file

Binary file not shown.

79
perl-Devel-Cycle.spec Normal file
View File

@ -0,0 +1,79 @@
%global _empty_manifest_terminate_build 0
Name: perl-Devel-Cycle
Version: 1.12
Release: 1
Summary: Find memory cycles in objects
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Devel-Cycle/
Source0: http://www.cpan.org/authors/id/L/LD/LDS/Devel-Cycle-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
Requires: perl(Scalar::Util)
Requires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This is a simple developer's tool for finding circular references in
objects and other types of references. Because of Perl's reference-count
based memory management, circular references will cause memory leaks.
%package help
Summary : Find memory cycles in objects
Provides: perl-Devel-Cycle-doc
%description help
This is a simple developer's tool for finding circular references in
objects and other types of references. Because of Perl's reference-count
based memory management, circular references will cause memory leaks.
%prep
%setup -q -n Devel-Cycle-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Thu Jun 11 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.12-1
- Specfile autogenerated by Perl_Bot

4
perl-Devel-Cycle.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: metacpan
src_repo: Devel-Cycle
mag_prefix: "auto/th/perl-Devel-Cycle-"
seperator: "."