[suggest] spec for perl-Algorithm-C3

Al Pacifico adpacifico at users.sourceforge.net
Fri Sep 22 04:58:42 CEST 2006


Name:           perl-Algorithm-C3
Version:        0.01
Release:        1%{?dist}
Summary:        A module for merging hierarchies using the C3 algorithm

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/Algorithm-C3/
Source0:
http://search.cpan.org/CPAN/authors/id/S/ST/STEVAN/Algorithm-C3-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)

BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl(Test::More)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))

%description
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 L<SEE ALSO> section), and
then later adopted as the preferred 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.

%prep
%setup -q -n Algorithm-C3-%{version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
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' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README Changes
%{perl_vendorlib}/*
%doc %{_mandir}/man3/*.3*


%changelog
* Sat Jul 15 2006 Al Pacifico <adpacifico at users.sourceforge.net> - 0.01-1
- Initial packaging, using fedora-newrpmspec to generate .spec template


-- 
Al Pacifico
Seattle, WA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20060921/629d9f21/attachment-0004.html>


More information about the users mailing list