Package init
This commit is contained in:
parent
11d3c952af
commit
3ebd84a939
BIN
Package-Constants-0.06.tar.gz
Normal file
BIN
Package-Constants-0.06.tar.gz
Normal file
Binary file not shown.
48
perl-Package-Constants.spec
Normal file
48
perl-Package-Constants.spec
Normal file
@ -0,0 +1,48 @@
|
||||
Name: perl-Package-Constants
|
||||
Epoch: 1
|
||||
Version: 0.06
|
||||
Release: 1
|
||||
Summary: List all constants declared in a package
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Package-Constants
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Package-Constants-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(strict) perl(if) perl(deprecate)
|
||||
BuildRequires: perl(warnings) perl(constant) perl(lib) perl(Test::More) perl(vars)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(deprecate)
|
||||
|
||||
%description
|
||||
Constants lists all the constants defined in a certain package.
|
||||
This can be useful for, among others, setting up an auto-generated
|
||||
@EXPORT/@EXPORT_OK for a Constants.pm file.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n Package-Constants-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES README
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:0.06-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user