]> git.pld-linux.org Git - SPECS.git/blob - perl-Config-Context.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Config-Context.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Config
6 %define pnam    Context
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
10 Version:        0.10
11 Release:        0.1
12 # same as perl
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
21 %if %{with tests}
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
31 %endif
32 BuildArch:      noarch
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 This module provides a consistent interface to many hierarchical
37 configuration file formats such as Config::General, XML::Simple
38 and Config::Scoped.
39
40 It also provides Apache-style context matching. You can include blocks
41 of configuration that match or not based on run-time parameters.
42
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.
47
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.
51
52 %prep
53 %setup -q -n %{pdir}-%{pnam}-%{version}
54
55 %build
56 %{__perl} Build.PL \
57         destdir=$RPM_BUILD_ROOT \
58         installdirs=vendor
59 ./Build
60
61 %{?with_tests:./Build test}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 ./Build install
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc Changes README TODO
74 %{perl_vendorlib}/Config/*.pm
75 %{perl_vendorlib}/Config/Context
76 %{_mandir}/man3/*
This page took 0.727435 seconds and 3 git commands to generate.