Package init

This commit is contained in:
overweight 2019-09-30 11:12:25 -04:00
commit bb498f63f3
2 changed files with 59 additions and 0 deletions

BIN
Filter-1.59.tar.gz Normal file

Binary file not shown.

59
perl-Filter.spec Normal file
View File

@ -0,0 +1,59 @@
Name: perl-Filter
Epoch: 2
Version: 1.59
Release: 2
Summary: Perl source filters
License: GPL+ or Artistic
URL: https://metacpan.org/release/Filter
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Filter-1.59.tar.gz
BuildRequires: coreutils findutils gcc make perl-devel perl-generators
BuildRequires: perl-interpreter perl(Config) perl(Getopt::Long) perl(strict)
BuildRequires: perl(Carp) perl(Exporter) perl(warnings) perl(XSLoader)
BuildRequires: perl(Cwd) perl(FindBin) perl(lib) sed
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(:VERSION) >= 5.6
Requires: perl(:MODULE_COMPAT_5.28.0) perl(Carp)
Suggests: bash gcc m4
%description
Source filters alter the program text of a module before Perl sees it, much as
a C preprocessor alters the source text of a C program before the compiler
sees it.
%package help
Summary: Help files for perl-Filter
%description help
The Help files for perl-Filter.
%prep
%setup -q -n Filter-%{version}
find examples -type f -exec chmod -x -- {} +
sed -i -e '1 s|.*|%(perl -MConfig -e 'print $Config{startperl}')|' \
examples/filtdef
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%{_libdir}/perl5/vendor_perl/auto/*
%{_libdir}/perl5/vendor_perl/Filter*
%doc examples Changes README
%files help
/usr/share/man/man3/*
%changelog
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:1.59-1
- Package init