fxies: code review feedback

This commit is contained in:
QianBiao.NG 2019-12-03 16:09:32 +08:00
parent 86306d7038
commit 1d991cf068

View File

@ -1,6 +1,6 @@
Name: perl-Class-Inspector Name: perl-Class-Inspector
Version: 1.32 Version: 1.32
Release: 6 Release: 5
Summary: Get information about a class and its structure Summary: Get information about a class and its structure
License: GPL+ or Artistic License: GPL+ or Artistic
@ -9,15 +9,14 @@ Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Class-Inspect
BuildArch: noarch BuildArch: noarch
# build
BuildRequires: make perl-generators BuildRequires: make perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Spec) >= 0.80 BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Spec) >= 0.80 perl(Test::More)
# Test
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter} %{?perl_default_filter}
%description %description
Class::Inspector allows you to get information about a loaded class. Class::Inspector allows you to get information about a loaded class.
Most or all of this information can be found in other ways, but they aren't Most or all of this information can be found in other ways, but they aren't
@ -26,21 +25,22 @@ wizardry, or strange and unusual looking code. Class::Inspector attempts to
provide an easier, more friendly interface to this information. provide an easier, more friendly interface to this information.
%package_help
%prep %prep
%setup -q -n Class-Inspector-%{version} %autosetup -q -n Class-Inspector-%{version} -p1
%build %build
# Remove OPTIMIZE=... from noarch packages (unneeded)
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %make_build
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
# Remove the next line from noarch packages (unneeded)
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
@ -52,14 +52,14 @@ make test
%files %files
%license LICENSE %license LICENSE
%doc Changes README
# For noarch packages: vendorlib
%{perl_vendorlib}/* %{perl_vendorlib}/*
# For arch-specific packages: vendorarch
# %{perl_vendorarch}/*
# %exclude %dir %{perl_vendorarch}/auto/ %files help
%doc Changes README
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.32-6 * Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.32-5
- Repackage for openEuler OS - Repackage for openEuler OS