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