3 %bcond_without tests # do not perform "make test"
6 %define pnam Plugin-ConfigLoader
7 Summary: Catalyst::Plugin::ConfigLoader - load config files of various types
8 Summary(pl.UTF-8): Catalyst::Plugin::ConfigLoader - wczytywanie różnych plików konfiguracyjnych
9 Name: perl-Catalyst-Plugin-ConfigLoader
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Catalyst/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d6cd604120535d5c0ab1160c3a097187
17 URL: http://search.cpan.org/dist/Catalyst-Plugin-ConfigLoader/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Catalyst >= 5.7008
22 BuildRequires: perl-Config-Any >= 0.08
23 BuildRequires: perl-Data-Visitor >= 0.24
24 BuildRequires: perl-MRO-Compat >= 0.09
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module will attempt to find and load a configuration file of
31 various types. Currently it supports YAML, JSON, XML, INI and Perl
34 To support the distinction between development and production
35 environments, this module will also attemp to load a local config
36 (e.g. myapp_local.yaml) which will override any duplicate settings.
38 %description -l pl.UTF-8
39 Ten moduł próbuje odnaleźć i wczytać pliki konfiguracyjne różnych
40 rodzajów. Aktualnie obsługuje formaty YAML, JSON, XML, INI i Perl.
42 Aby obsłużyć rozróżnienie między środowiskiem programistycznym a
43 produkcyjnym, moduł ten próbuje także wczytać lokalny plik
44 konfiguracyjny (np. myapp_local.yaml), który przykryje wszystkie
45 powtarzające się ustawienia.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} -MExtUtils::MakeMaker -we 'WriteMakefile(NAME=>"Catalyst::Plugin::ConfigLoader")' \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Catalyst/Plugin/*.pm