rpm: repackage
This commit is contained in:
parent
1fc44eafc9
commit
b84dde3277
BIN
Class-Inspector-1.32.tar.gz
Normal file
BIN
Class-Inspector-1.32.tar.gz
Normal file
Binary file not shown.
65
perl-Class-Inspector.spec
Normal file
65
perl-Class-Inspector.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Name: perl-Class-Inspector
|
||||||
|
Version: 1.32
|
||||||
|
Release: 6
|
||||||
|
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
|
||||||
|
|
||||||
|
# Correct for lots of packages, other common choices include eg. Module::Build
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(File::Spec) >= 0.80
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%{?perl_default_filter}
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Class-Inspector-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Remove OPTIMIZE=... from noarch packages (unneeded)
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
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} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||||
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Changes README
|
||||||
|
%license LICENSE
|
||||||
|
# For noarch packages: vendorlib
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
# For arch-specific packages: vendorarch
|
||||||
|
# %{perl_vendorarch}/*
|
||||||
|
%exclude %dir %{perl_vendorarch}/auto/
|
||||||
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Nov 28 2019 Qianbiao.NG <Qianbiao.NG@turnbig.net> - 1.32-6
|
||||||
|
- Repackage for openEuler OS
|
||||||
Loading…
x
Reference in New Issue
Block a user