This commit is contained in:
Petr Písař 2012-02-23 14:41:20 +01:00
parent b3444cb10c
commit ba0d2c5f3c
3 changed files with 63 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Filter-1.39.tar.gz

61
perl-Filter.spec Normal file
View File

@ -0,0 +1,61 @@
Name: perl-Filter
Version: 1.39
Release: 1%{?dist}
Summary: Perl source filters
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Filter/
Source0: http://www.cpan.org/modules/by-module/Filter/Filter-%{version}.tar.gz
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Getopt::Long)
# Run-time
BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
# Tests
BuildRequires: perl(Cwd)
# Optional tests
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%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.
%prep
%setup -q -n Filter-%{version}
# Clean examples
find examples -type f -exec chmod -x -- {} +
sed -i -e '1 s|.*|#!%{__perl}|' examples/filtdef
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
# Clean examples
find examples -name '*.bak' -exec rm -f {} +
%check
make test
%files
%doc examples Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Filter*
%{perl_vendorarch}/filter-util.pl
%{perl_vendorarch}/perlfilter.pod
%{_mandir}/man3/*
%changelog
* Tue Feb 14 2012 Petr Pisar <ppisar@redhat.com> 1.39-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
1bddf1632b2e1f78ad07aae5c476a137 Filter-1.39.tar.gz