File perl-Config-YAML.spec of Package perl-Config-YAML

# spec file for package perl-Config-YAML (Version 1.42)
# Copyright (c) 2011 Stefan Jakobs <>

%define perl_version %(eval "`perl -V:version`"; echo $version)
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

%define real_name Config-YAML

Summary:        Simple configuration automation
Name:           perl-Config-YAML
Version:        1.42
Release:        1.0
License:        Artistic/GPL
Group:          Development/Libraries/Perl   
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:  perl-YAML
%if 0%{?suse_version}
Requires:       perl = %{perl_version}
BuildRequires:  perl-Test-Base perl-Spiffy
BuildRequires:  perl(ExtUtils::MakeMaker) 
Requires:       perl-YAML

Config::YAML is a somewhat object-oriented wrapper around the YAML
module which makes reading and writing configuration files simple.
Handling multiple config files (e.g. system and per-user
configuration, or a gallery app with per-directory configuration)
is a snap.

%setup -n %{real_name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS="vendor"  destdir="%{buildroot}" 
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%{__make} test

%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist

%{__rm} -rf %{buildroot}

%defattr(-, root, root, -)
%doc Changes README
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorlib}/Config/
%if 0%{?mandriva_version} < 201100
  %dir %{perl_vendorarch}/auto/Config/

* Thu Jun 16 2011 Stefan Jakobs <> - 1.42-1
- Initial package.