%global pkg_name YAML-Active %global pkg_version 1.06 %global rpm_pkg_version 1.06 %global rpm_pkg_release 1.n0i.6 Summary: Combine data and logic in YAML Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/M/MA/MARCEL/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Class::Accessor) BuildRequires: perl(Class::Accessor::Complex) BuildRequires: perl(Test::More) >= 0.70 BuildRequires: perl(YAML) Requires: perl(Class::Accessor) Requires: perl(Class::Accessor::Complex) %description YAML is an intuitive way to describe nested data structures. This module extends YAML's capabilities so that it ceases to be a static data structure and become something more active, with data and logic combined. This makes the logic reusable since it is bound to the data structure. Without "YAML::Active", you have to load the YAML data, then process it in some way. The logic describing which parts of the data have to be processed and how was separated from the data. Using "YAML::Active", the description of how to process the data can be encapsulated in the data structure itself. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Sun Oct 21 2007 Marius Feraru - 1.06-1.n0i.6 - version 1.06 * Sat Oct 20 2007 Marius Feraru - 1.05-1.n0i.5 - version 1.05 * Fri Oct 19 2007 Marius Feraru - 1.04-1.n0i.4 - version 1.04 - updated BR * Fri Oct 05 2007 Marius Feraru - 1.02-1.n0i.3 - version 1.02 * Tue May 22 2007 Marius Feraru - 1.00-2.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - rebuild on perl 5.8.8 * Mon Aug 01 2005 Marius Feraru 1.00-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7