SPECS: perl-Class-Method-Modifiers.spec (NEW) - new
radek
radek at pld-linux.org
Fri Jan 30 17:15:32 CET 2009
Author: radek Date: Fri Jan 30 16:15:32 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Class-Method-Modifiers.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Class-Method-Modifiers.spec
diff -u /dev/null SPECS/perl-Class-Method-Modifiers.spec:1.1
--- /dev/null Fri Jan 30 17:15:32 2009
+++ SPECS/perl-Class-Method-Modifiers.spec Fri Jan 30 17:15:27 2009
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Class
+%define pnam Method-Modifiers
+Summary: Class::Method::Modifiers - provides Moose-like method modifiers
+#Summary(pl.UTF-8):
+Name: perl-Class-Method-Modifiers
+Version: 1.01
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f0398c468025d21493745619b1114a46
+URL: http://search.cpan.org/dist/Class-Method-Modifiers/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-MRO-Compat
+BuildRequires: perl-Test-Exception
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+In its most basic form, a method modifier is just a method that calls
+$self->SUPER::foo(@_).
+
+Class::Method::Modifiers provides three modifiers: before, around,
+and after. before and after are run just before and after the method
+they modify, but can not really affect that original method. around
+is run in place of the original method, with a hook to easily call
+that original method. See the MODIFIERS section for more details on
+how the particular modifiers work.
+
+# %description -l pl.UTF-8
+# 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} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Class/Method/*.pm
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/01/30 16:15:27 radek
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list