Author: radek Date: Mon Jul 31 21:58:32 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: perl-ex-override.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-ex-override.spec diff -u /dev/null SPECS/perl-ex-override.spec:1.1 --- /dev/null Mon Jul 31 23:58:32 2006 +++ SPECS/perl-ex-override.spec Mon Jul 31 23:58:27 2006 @@ -0,0 +1,72 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir ex +%define pnam override +Summary: ex::override - Perl pragma to override core functions +#Summary(pl): +Name: perl-ex-override +Version: 1.1 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 1247bd4ec9dae4cb2f250fd5af990668 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +"ex::override" is an easy way to override core perl functions. + + use ex::override + length => \&mylength, + open => \&myopen; + +Overriding a core function happens at compile time. Arguments are passed +to "ex::override" in a name based, or hash style. The key is the name +of the core function to override, the value is your subroutine to replace +the core's. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes +%{perl_vendorlib}/ex/*.pm +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/07/31 21:58:27 radek +- new + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
