3 %bcond_without tests # do not perform "make test"
7 Summary: Config::Grammar - A grammar-based, user-friendly config parser
8 Name: perl-Config-Grammar
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: ce904f687f1ee9c70521142a2e0f15c9
15 URL: http://search.cpan.org/dist/Config-Grammar/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Config::Grammar is a module to parse configuration files.
24 The configuration may consist of multiple-level sections with
25 assignments and tabular data. The parsed data will be returned as a
26 hash containing the whole configuration. Config::Grammar uses a
27 grammar that is supplied upon creation of a Config::Grammar object to
28 parse the configuration file and return helpful error messages in case
29 of syntax errors. Using the makepod method you can generate
30 documentation of the configuration file format.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorlib}/Config/*.pm
54 %{perl_vendorlib}/Config/Grammar