ccb7ee3
Name:           perl-Config-Grammar
ccb7ee3
Version:        1.10
49ad61f
Release:        4%{?dist}
ccb7ee3
Summary:        Grammar-based, user-friendly config parser
ccb7ee3
License:        GPL+ or Artistic
ccb7ee3
Group:          Development/Libraries
ccb7ee3
URL:            http://search.cpan.org/dist/Config-Grammar/
ccb7ee3
Source0:        http://www.cpan.org/authors/id/D/DS/DSCHWEI/Config-Grammar-%{version}.tar.gz
ccb7ee3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ccb7ee3
BuildArch:      noarch
ccb7ee3
BuildRequires:  perl(ExtUtils::MakeMaker) perl(Test::Simple)
ccb7ee3
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
ccb7ee3
ccb7ee3
%description
ccb7ee3
Config::Grammar is a module to parse configuration files. The
ccb7ee3
configuration may consist of multiple-level sections with assignments
ccb7ee3
and tabular data.  The parsed data will be returned as a hash
ccb7ee3
containing the whole configuration. Config::Grammar uses a grammar
ccb7ee3
that is supplied upon creation of a Config::Grammar object to parse
ccb7ee3
the configuration file and return helpful error messages in case of
ccb7ee3
syntax errors. Using the makepod method you can generate documentation
ccb7ee3
of the configuration file format.
ccb7ee3
ccb7ee3
%prep
ccb7ee3
%setup -q -n Config-Grammar-%{version}
ccb7ee3
ccb7ee3
%build
ccb7ee3
%{__perl} Makefile.PL INSTALLDIRS=vendor
ccb7ee3
%{__make} %{?_smp_mflags}
ccb7ee3
ccb7ee3
%install
ccb7ee3
%{__rm} -rf %{buildroot}
ccb7ee3
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
ccb7ee3
ccb7ee3
find %{buildroot} -type f -name .packlist -delete
ccb7ee3
%{_fixperms} %{buildroot}/*
ccb7ee3
ccb7ee3
%check
ccb7ee3
%{__make} test
ccb7ee3
ccb7ee3
%clean
ccb7ee3
%{__rm} -rf %{buildroot}
ccb7ee3
ccb7ee3
%files
ccb7ee3
%defattr(-, root, root, -)
ccb7ee3
%doc Changes README
ccb7ee3
%{perl_vendorlib}/Config/Grammar*
ccb7ee3
%{_mandir}/man3//Config::Grammar*
ccb7ee3
ccb7ee3
%changelog
49ad61f
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.10-4
49ad61f
- rebuild against perl 5.10.1
49ad61f
b0ca6d0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
b0ca6d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b0ca6d0
3a1efea
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
3a1efea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a1efea
ccb7ee3
* Tue Sep 09 2008 Terje Rosten <terje.rosten@ntnu.no> - 1.10-1
ccb7ee3
- initial build based on cpanspec