Name: perl-ConfigReader Version: 0.5 Release: 1%{?dist} Summary: Read directives from a configuration file License: LGPL Group: Development/Libraries URL: http://search.cpan.org/dist/ConfigReader/ Source0: http://www.cpan.org/modules/by-module/ConfigReader/ConfigReader-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) %description The ConfigReader library is a set of classes which reads directives from a configuration file. The library is completely object oriented, and it is envisioned that parsers for new styles of configuration files can be easily added. %prep %setup -q -n ConfigReader-%{version} %build pod2man ConfigReader.pod ConfigReader.3 %install set -x rm -rf %{buildroot} install -m 644 -D DirectiveStyle.pm %{buildroot}%{perl_vendorlib}/ConfigReader/DirectiveStyle.pm install -m 644 -D Spec.pm %{buildroot}%{perl_vendorlib}/ConfigReader/Spec.pm install -m 644 -D Values.pm %{buildroot}%{perl_vendorlib}/ConfigReader/Values.pm install -m 644 -D ConfigReader.3 %{buildroot}%{_mandir}/man3/ConfigReader.3 find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING.LIB README %{perl_vendorlib}/ConfigReader %{_mandir}/man3/ConfigReader.3* %changelog * Wed Dec 13 2006 Andreas Thienemann 0.5-1 - Specfile autogenerated by cpanspec 1.69.1. - Major cleanups in the spec to make the package build.