3 %bcond_without tests # do not perform "make test"
7 Summary: Config::Context - Add <Location> and <LocationMatch> style context matching to hierarchical configfile formats such as Config::General, XML::Simple and Config::Scoped
8 Summary(pl.UTF-8): Config::Context - dodawanie dopasowywania kontekstu w stylu <Location> i <LocationMatch> do hierarchicznych formatów takich jak Config::General, XML::Simple czy Config::Scoped
9 Name: perl-Config-Context
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: be34d48faef25c3236525cb092562918
17 URL: http://search.cpan.org/dist/Config-Context/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Clone
23 BuildRequires: perl-Config-General >= 2.27
24 BuildRequires: perl-Hash-Merge
25 # builds without that, but skips some tests
26 BuildRequires: perl-Config-Scoped
27 # builds without that, but skips some tests
28 BuildRequires: perl-XML-Simple
29 BuildRequires: perl-XML-SAX
30 BuildRequires: perl-XML-Filter-XInclude
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 This module provides a consistent interface to many hierarchical
37 configuration file formats such as Config::General, XML::Simple
40 It also provides Apache-style context matching. You can include blocks
41 of configuration that match or not based on run-time parameters.
43 %description -l pl.UTF-8
44 Ten moduł udostępnia spójny interfejs do wielu hierarchicznych
45 formatów plików konfiguracyjnych, takich jak Config::General,
46 XML::Simple czy Config::Scoped.
48 Udostępnia także dopasowywanie kontekstu w stylu Apache'a. Można
49 dołączać bloki konfiguracji pasujące lub nie pasujące do danych
50 parametrów w trakcie działania programu.
53 %setup -q -n %{pdir}-%{pnam}-%{version}
57 destdir=$RPM_BUILD_ROOT \
61 %{?with_tests:./Build test}
64 rm -rf $RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc Changes README TODO
74 %{perl_vendorlib}/Config/*.pm
75 %{perl_vendorlib}/Config/Context