perl-Class-Inspector/perl-Class-Inspector.spec

72 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-11-30 20:50:12 +08:00
Name: perl-Class-Inspector
2020-07-22 18:42:27 +08:00
Version: 1.36
Release: 2
2019-11-30 20:50:12 +08:00
Summary: Get information about a class and its structure
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Class-Inspector/
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Class-Inspector-%{version}.tar.gz
BuildArch: noarch
2019-12-03 16:09:32 +08:00
2019-11-30 23:11:56 +08:00
BuildRequires: make perl-generators
2019-12-03 16:09:32 +08:00
BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Spec) >= 0.80 perl(Test::More)
2019-11-30 20:50:12 +08:00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
2019-12-03 16:09:32 +08:00
2019-11-30 20:50:12 +08:00
%description
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
always very friendly, and usually involve a relatively high level of Perl
wizardry, or strange and unusual looking code. Class::Inspector attempts to
provide an easier, more friendly interface to this information.
2019-12-03 16:09:32 +08:00
%package_help
2019-11-30 20:50:12 +08:00
%prep
2019-12-03 16:24:36 +08:00
%autosetup -n Class-Inspector-%{version} -p1
2019-11-30 20:50:12 +08:00
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
2019-12-03 16:09:32 +08:00
%make_build
2019-11-30 20:50:12 +08:00
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -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 ';'
%{_fixperms} %{buildroot}/*
%check
make test
%files
%license LICENSE
%{perl_vendorlib}/*
2019-12-03 16:09:32 +08:00
%files help
%doc Changes README
2019-11-30 20:50:12 +08:00
%{_mandir}/man3/*.3*
2019-12-03 16:09:32 +08:00
2019-11-30 20:50:12 +08:00
%changelog
2023-01-29 16:55:43 +08:00
* Tue Oct 25 2022 wangjiang <wangjiang37@h-partners.com> - 1.36-2
- Rebuild for next release
2020-07-22 18:42:27 +08:00
* Wed Jul 22 2020 shixuantong <shixuantong@huawei.com> - 1.36-1
- update to 1.36-1
2019-12-03 16:09:32 +08:00
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.32-5
2019-11-30 20:50:12 +08:00
- Repackage for openEuler OS