3 %bcond_without tests # do not perform "make test"
6 %define pnam ConfigFromFile
7 Summary: MouseX::ConfigFromFile - An abstract Mouse role for setting attributes from a configfile
8 Summary(pl.UTF-8): MouseX::ConfigFromFile - abstrakcyjna rola Mouse do ustawiania atrybutów z pliku konfiguracyjnego
9 Name: perl-MouseX-ConfigFromFile
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MASAKI/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: f6dc7f738085611949510c07301402ca
16 URL: http://search.cpan.org/dist/MouseX-ConfigFromFile/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(MouseX::Types::Path::Class) >= 0.05
21 BuildRequires: perl-Mouse
22 BuildRequires: perl(Any::Moose) >= 0.05
23 BuildRequires: perl(Test::UseAllModules)
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This is an abstract role which provides an alternate constructor for
30 creating objects using parameters passed in from a configuration file.
31 The actual implementation of reading the configuration file is left to
34 It declares an attribute configfile and a class method
35 new_with_config, and requires that concrete roles derived from it
36 implement the class method get_config_from_file.
38 Attributes specified directly as arguments to new_with_config
39 supercede those in the configfile.
41 %description -l pl.UTF-8
42 MouseX::ConfigFromFile - abstrakcyjna rola Mouse do ustawiania atrybutów z pliku konfiguracyjnego
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/MouseX/*.pm