[perl-smartmatch] import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 8396e6159e3c2863d09b9a0b18ab92648b85d9bf
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Nov 3 14:10:47 2011 +0100

    import

 .gitignore           |    1 +
 perl-smartmatch.spec |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad33cb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/smartmatch-0.03-TRIAL.tar.gz
diff --git a/perl-smartmatch.spec b/perl-smartmatch.spec
new file mode 100644
index 0000000..e79ddca
--- /dev/null
+++ b/perl-smartmatch.spec
@@ -0,0 +1,64 @@
+# This file is licensed under the terms of GNU GPLv2+
+Name:           perl-smartmatch
+Version:        0.03
+Release:        1%{?dist}
+Summary:        Pluggable smart matching back-ends
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/smartmatch/
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DO/DOY/smartmatch-%{version}-TRIAL.tar.gz
+BuildRequires:  perl(B::Hooks::OP::Check) >= 0.14
+BuildRequires:  perl(ExtUtils::Depends)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Tests:
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Test::More) >= 0.88
+# Optional tests:
+BuildRequires:  perl(Test::Script) >= 1.05
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(B::Hooks::OP::Check) >= 0.14
+
+%{?perl_default_filter}
+# Remove underspecified dependencies
+%{?filter_setup:
+%filter_from_requires /^perl(B::Hooks::OP::Check)$/d
+%filter_setup}
+
+%description
+This module allows you to override the behavior of the smart match operator
+("~~"). "use smartmatch $matcher" hooks into the compiler to replace the
+smartmatch opcode with a call to a custom subroutine, specified either as
+a coderef or as a string, which will have "smartmatch::engine::" prepended to
+it and used as the name of a package in which to find a subroutine named
+"match".  The subroutine will be called with two arguments, the values on the
+left and right sides of the smart match operator, and should return the
+result.
+
+%prep
+%setup -q -n smartmatch-%{version}
+
+%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/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/smartmatch*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Jul 11 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.03-1
+- Initial version
diff --git a/sources b/sources
index e69de29..a26b69a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e7dcdc67ab12be626215a50ea7e2c130  smartmatch-0.03-TRIAL.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux