1
0
perl-Algorithm-C3/perl-Algorithm-C3.spec

52 lines
1.4 KiB
RPMSpec
Raw Normal View History

%define cpan_name Algorithm-C3
Name: perl-%cpan_name
Version: 0.07
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version}
Group: Development/Libraries/Perl
License: Artistic
URL: http://search.cpan.org/dist/Algorithm-C3/
Summary: A module for merging hierarchies using the C3 algorithm
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%description
This module implements the C3 algorithm. I have broken this out into it's own
module because I found myself copying and pasting it way too often for
various needs. Most of the uses I have for C3 revolve around class building
and metamodels, but it could also be used for things like dependency
resolution as well since it tends to do such a nice job of preserving local
precendence orderings.
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Algorithm
%{perl_vendorarch}/auto/Algorithm
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README
%changelog -n %{name}
* Sun Oct 26 2008 - gerrit.beine@gmx.de
- first release 0.07