SPECS: perl-Class-C3.spec (NEW) - initial revision
migo
migo at pld-linux.org
Sat Apr 8 18:21:35 CEST 2006
Author: migo Date: Sat Apr 8 16:21:35 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
SPECS:
perl-Class-C3.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Class-C3.spec
diff -u /dev/null SPECS/perl-Class-C3.spec:1.1
--- /dev/null Sat Apr 8 18:21:35 2006
+++ SPECS/perl-Class-C3.spec Sat Apr 8 18:21:30 2006
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Class
+%define pnam C3
+Summary: Class::C3 - A pragma to use the C3 method resolution order algortihm
+#Summary(pl):
+Name: perl-Class-C3
+Version: 0.11
+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: d1e4397b2cb3e3dbedf91137601f0d96
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Exception >= 0.15
+BuildRequires: perl-Algorithm-C3
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is currently an experimental pragma to change Perl 5's standard method resolution order
+from depth-first left-to-right (a.k.a - pre-order) to the more sophisticated C3 method resolution
+order.
+
+C3 is the name of an algorithm which aims to provide a sane method resolution order under multiple
+inheritence. It was first introduced in the langauge Dylan (see links in the SEE ALSO section),
+and then later adopted as the prefered MRO (Method Resolution Order) for the new-style classes in
+Python 2.3. Most recently it has been adopted as the 'canonical' MRO for Perl 6 classes, and the
+default MRO for Parrot objects as well.
+
+# %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 ChangeLog README
+%{perl_vendorlib}/Class/*.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 2006/04/08 16:21:30 migo
+- initial revision
+
================================================================
More information about the pld-cvs-commit
mailing list