From ba0d2c5f3cae3ba2436a22f412f3baae5f4bb3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 23 Feb 2012 14:41:20 +0100 Subject: [PATCH] Import --- .gitignore | 1 + perl-Filter.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Filter.spec diff --git a/.gitignore b/.gitignore index e69de29..8d4133d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Filter-1.39.tar.gz diff --git a/perl-Filter.spec b/perl-Filter.spec new file mode 100644 index 0000000..bf9695d --- /dev/null +++ b/perl-Filter.spec @@ -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 1.39-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..29d07a3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1bddf1632b2e1f78ad07aae5c476a137 Filter-1.39.tar.gz