File perl-Meta-Builder.spec of Package perl-Meta-Builder
#
# spec file for package perl-Meta-Builder
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Meta-Builder
Version: 0.003
Release: 0
%define cpan_name Meta-Builder
Summary: Tools for creating Meta objects to track custom metrics.
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Meta-Builder/
Source: http://www.cpan.org/authors/id/E/EX/EXODIST/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Fennec::Lite)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception)
#BuildRequires: perl(Meta::Builder)
#BuildRequires: perl(Meta::Builder::Base)
#BuildRequires: perl(Meta::Builder::Util)
%{perl_requires}
%description
Meta programming is becomming more and more popular. The popularity of Meta
programming comes from the fact that many problems are made significantly
easier. There are a few specialized Meta tools out there, for instance the
Class:MOP manpage which is used by the Moose manpage to track class
metadata.
Meta::Builder is designed to be a generic tool for writing Meta objects.
Unlike specialized tools, Meta::Builder makes no assumptions about what
metrics you will care about. Meta::Builder also mkaes it simple for others
to extend your meta-object based tools by providing hooks for other
packages to add metrics to your meta object.
If a specialized Meta object tool is available ot meet your needs please
use it. However if you need a simple Meta object to track a couple metrics,
use Meta::Builder.
Meta::Builder is also low-sugar and low-dep. In most cases you will not
want a class that needs a meta object to use your meta-object class
directly. Rather you will usually want to create a sugar class that exports
enhanced API functions that manipulate the meta object.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc README
%changelog