]> git.pld-linux.org Git - packages/perl-Config-Grammar.git/commitdiff
adapter, cleanups auto/th/perl-Config-Grammar-1.10-1
authorElan Ruusamäe <glen@delfi.ee>
Fri, 21 Aug 2015 07:05:42 +0000 (10:05 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 21 Aug 2015 07:05:42 +0000 (10:05 +0300)
perl-Config-Grammar.spec

index 61fd71a10951fedd3f1a89b46796786efba5c33c..3c451d0f15885f9a077b12087314abe7be3e3ae5 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without tests           # do not perform "make test"
-#
+
 %define                pdir    Config
 %define                pnam    Grammar
 %include       /usr/lib/rpm/macros.perl
@@ -16,40 +16,19 @@ Source0:    http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}
 URL:           http://search.cpan.org/dist/Config-Grammar/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{with tests}
-%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Config::Grammar is a module to parse configuration files. The
-configuration may consist of multiple-level sections with assignments
-and tabular data. The parsed data will be returned as a hash
-containing the whole configuration. Config::Grammar uses a grammar
-that is supplied upon creation of a Config::Grammar object to parse
-the configuration file and return helpful error messages in case of
-syntax errors. Using the makepod method you can generate documentation
-of the configuration file format.
-
-The maketmpl method can generate a template configuration file. If
-your grammar contains regexp matches, the template will not be all
-that helpful as Config::Grammar is not smart enough to give you
-sensible template data based in regular expressions. The related
-function maketmplmin generates a minimal configuration template
-without examples, regexps or comments and thus allows an experienced
-user to fill in the configuration data more efficiently.
-
-
-The grammar is a multiple-level hash of hashes, which follows the
-structure of the configuration. Each section or variable is
-represented by a hash with the same structure. Each hash contains
-special keys starting with an underscore such as '_sections', '_vars',
-'_sub' or '_re' to denote meta data with information about that
-section or variable. Other keys are used to structure the hash
-according to the same nesting structure of the configuration itself.
-The starting hash given as parameter to 'new' contains the "root
-section".
+Config::Grammar is a module to parse configuration files.
 
+The configuration may consist of multiple-level sections with
+assignments and tabular data. The parsed data will be returned as a
+hash containing the whole configuration. Config::Grammar uses a
+grammar that is supplied upon creation of a Config::Grammar object to
+parse the configuration file and return helpful error messages in case
+of syntax errors. Using the makepod method you can generate
+documentation of the configuration file format.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
@@ -63,7 +42,6 @@ section".
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} pure_install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.085893 seconds and 4 git commands to generate.